Go to file
Dominik Heidler 1b4ae0fe51 Merge pull request #75 from adridolf/mapv2
fff-map: Add layer for KeyExchange v2
2017-10-16 12:10:00 +02:00
alfred-monitoring-proxy Handle even larger requests 2016-02-17 02:47:13 +01:00
contrib - removed obsolete script 2017-03-22 18:10:41 +01:00
ffmap Merge pull request #75 from adridolf/mapv2 2017-10-16 12:10:00 +02:00
.gitignore add alfred support and dynamic map creation 2015-10-10 17:42:44 +02:00
README.md Update README.md 2017-08-02 21:50:19 +02:00
install.sh fff-map: Add layer for KeyExchange v2 2017-10-16 12:07:34 +02:00
setup.py add alfred support and dynamic map creation 2015-10-10 17:42:44 +02:00

README.md

Installation

./install.sh
systemctl daemon-reload
systemctl enable mongodb
systemctl enable uwsgi-ffmap
systemctl enable uwsgi-tiles
systemctl start mongodb
systemctl start uwsgi-ffmap
systemctl start uwsgi-tiles
cd ffmap/db/
./init_db.py
# Then apply NGINX Config

Debian Dependencies

apt-get install python python3 mongodb python3-requests python3-lxml python3-pip python3-flask python3-dateutil python3-numpy python3-scipy python-mapnik python3-pip uwsgi-plugin-python uwsgi-plugin-python3 nginx tilestache
pip3 install pymongo

NGINX Config

server {
	listen 443 ssl default_server;
	listen [::]:443 ssl default_server;

...

	location / {
		include uwsgi_params;
		uwsgi_pass 127.0.0.1:3031;
		client_max_body_size 30M;
	}

	location /tiles {
		include uwsgi_params;
		uwsgi_pass 127.0.0.1:3032;
	}
	
	location /static/ {
		root /usr/share/ffmap/;
		expires max;
		add_header Cache-Control "public";
	}

...

}

Admin anlegen

  • User über WebUI anlegen
  • Dann als root:
# mongo
> use freifunk;
> db.users.update({"nickname": "asdil12"}, {"$set": {"admin": true}});
> exit