Add push notifications for forgotten departures #26
|
@ -24,3 +24,9 @@ guideline_url = https://fasttube.de/wp-content/uploads/2020/12/Cororna-Regeln-St
|
||||||
|
|
||||||
# JSON indentation for debugging
|
# JSON indentation for debugging
|
||||||
json_indent = 4
|
json_indent = 4
|
||||||
|
|
||||||
|
# VAPID credentials for push notifications
|
||||||
|
# private key: base64url encoded private part of an EC-Prime256v1 keypair. See INSTALL.md
|
||||||
|
# sender info: usually mailto link to responsible party to contact about issues
|
||||||
|
push_private_key = abcdefghijklm_NOPQRSTUVWXYZ-0123456789
|
||||||
|
push_sender_info = mailto:it@fasttube.de
|
||||||
|
|
|
@ -9,10 +9,10 @@ class Config:
|
||||||
def findConfigFile():
|
def findConfigFile():
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1:
|
||||||
return sys.argv[1]
|
return sys.argv[1]
|
||||||
elif Path('config.ini').is_file():
|
|
||||||
return 'config.ini'
|
|
||||||
elif Path('/etc/ftracker/config.ini').is_file():
|
elif Path('/etc/ftracker/config.ini').is_file():
|
||||||
return '/etc/ftracker/config.ini'
|
return '/etc/ftracker/config.ini'
|
||||||
|
elif Path('config.ini').is_file():
|
||||||
|
return 'config.ini'
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue