-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.py.example
More file actions
29 lines (22 loc) · 1.01 KB
/
config.py.example
File metadata and controls
29 lines (22 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
import base64
# you can use "python -m smtpd -c DebuggingServer -n localhost:1025" for
# testing purposes here
SMTP_HOST = 'localhost'
SMTP_PORT = 1025
SMTP_FROM = 'test@foobar.com'
# If users reply to service emails, they will send mails to the SMTP_REPLY_TO_EMAIL
SMTP_REPLY_TO_EMAIL = 'some_real_email@foobar.com'
SMTP_USE_STARTTLS = False
SMTP_USER = 'some_loginname'
SMTP_PASS = 'secret'
NODES_JSON_URL = 'https://example.com/nodes.json'
# generate via 'python3 -c "import base64,secrets; print(base64.b64encode(secrets.token_bytes(16)).decode())"'
FLASK_SECRET_KEY = base64.b64decode('EnWBoh8WjLErOfNHb+86vA=='); raise "REPLACE THIS KEY!"
# if you are behind a proxy, set the globally reachable url here
APP_URL = "http://[2a02:790:ff:914:eab1:fcff:fef6:4d16]:8080/"
NODE_LINKS = {
"Map": "https://hannover.freifunk.net/karte/#/de/map/{node.nodeid}",
"Stats": "https://stats.ffh.zone/d/000000021/router-fur-meshviewer?orgId=1&from=now-7d&to=now-1m&var-node={node.nodeid}"
}
DEBUG = False