monitoring/README.md

61 lines
1.1 KiB
Markdown
Raw Normal View History

## Installation
2016-01-25 17:25:45 +01:00
```bash
./install.sh
2016-04-28 17:25:27 +02:00
systemctl daemon-reload
systemctl enable mongodb
systemctl enable uwsgi-ffmap
2016-04-28 17:38:05 +02:00
systemctl enable uwsgi-tiles
2016-04-28 17:25:27 +02:00
systemctl start mongodb
systemctl start uwsgi-ffmap
2016-04-28 17:38:05 +02:00
systemctl start uwsgi-tiles
2016-04-28 17:36:10 +02:00
cd ffmap/db/
./init_db.py
# Then apply NGINX Config
```
## Debian Dependencies
2016-01-25 17:25:45 +01:00
```bash
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
2016-01-25 17:25:45 +01:00
```nginx
2017-08-02 20:40:38 +02:00
server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
...
2017-08-02 20:40:38 +02:00
2016-01-22 21:10:19 +01:00
location / {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3031;
2016-02-17 02:47:13 +01:00
client_max_body_size 30M;
2016-01-22 21:10:19 +01:00
}
location /tiles {
include uwsgi_params;
uwsgi_pass 127.0.0.1:3032;
}
2017-08-02 20:40:38 +02:00
location /static/ {
root /usr/share/ffmap/;
expires max;
add_header Cache-Control "public";
}
...
2017-08-02 20:40:38 +02:00
}
```
2017-08-02 21:50:19 +02:00
## Admin anlegen
* User über WebUI anlegen
* Dann als root:
```
# mongo
> use freifunk;
> db.users.update({"nickname": "asdil12"}, {"$set": {"admin": true}});
> exit
```