forked from mrchainman/Gotify-Nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.py.sample
More file actions
executable file
·28 lines (20 loc) · 846 Bytes
/
settings.py.sample
File metadata and controls
executable file
·28 lines (20 loc) · 846 Bytes
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
#!/usr/bin/python3
from os import getenv
##########################################
# Nextcloud settings
url = getenv('NEXTCLOUD_URL', 'https://nextcloudexample.com')
user = getenv('NEXTCLOUD_USER', 'username')
pw = getenv('NEXTCLOUD_PASSWORD', 'secretpw')
##########################################
# Gotify settings
urlpush = getenv('GOTIFY_URL', 'https://gotifyexample.com')
token = getenv('GOTIFY_TOKEN', 'TOKEN')
##########################################
# General settings
# Frequency for checking new notifications
delay = int(getenv('NOTIFICATION_DELAY', 30))
# Priority for the notification sent through this channel
# If this is set below 10, there won't be any sound when receiving a message
notification_priority = getenv('NOTIFICATION_PRIORITY', '10')
# Optional log file
log_file = getenv('LOG_PATH', 'logs/gotify-nc.log')