-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.py
42 lines (34 loc) · 1.01 KB
/
config.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
"""
Configuration variables, including database, email, VAPID, and Telegram tokens.
Author: Jonas Beuchert
Date: November 2021
"""
# Website URL (omit '/' at end, include 'https://')
website_url = "https://snappergps.info"
# PostgreSQL
database_url = 'todo'
database_password \
= 'todo'
database_user = 'todo'
database_name = 'todo'
# Which user notfications to use
use_telegram_notifications = True
use_email_notifications = True
use_push_notifications = True
# E-mail (for emailed user notfications and VAPID claims for push notifications)
smtp_server = "todo"
sender_email = "todo"
email_password = "todo"
smtp_port = 465
# VAPID keys (push notifications)
public_vapid_key = "todo"
private_vapid_key = "todo"
# Telegram bot's API token
telegram_token = "todo"
# API token of Telegram bot for error reporting
server_bot_token = "todo"
# Telegram chat ID to be contacted in case of an error
# on the server
server_bot_contact_chat_id = "todo"
# Owner name (appears in some notifications as sender)
sender_name = "todo"