-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
42 lines (28 loc) · 860 Bytes
/
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
import os
basedir = os.path.abspath(os.path.dirname(__file__))
DEBUG = True
# secrets
SECRET_KEY = os.urandom(64)
# socket server listening + port
RECEIVER_HOST = "0.0.0.0"
RECEIVER_PORT = 7180
# flask app frontend port
APP_PORT = 7179
# Sync to Gateway URL
PORTAL_SYNC_URL = "https://httpbin.org/post"
# The SQLAlchemy connection string.
SQLALCHEMY_DATABASE_URI = "sqlite:///" + basedir + "radiodata.db"
SQLALCHEMY_TRACK_MODIFICATIONS = False
# Celery
CELERY_BROKER_URL = "redis://localhost:6379/0"
CELERY_RESULT_BACKEND = "redis://localhost:6379/0"
CELERY_ACCEPT_CONTENT = "pickle,json"
# Flask-WTF flag for CSRF
CSRF_ENABLED = True
# App name
APP_NAME = "Electrobit CatM Python Asyncio Socket Server"
# Flask Mail
MAIL_USERNAME = "[email protected]"
MAIL_PASSWORD = ""
MAIL_DEFAULT_SENDER = "[email protected]"
MAIL_USE_TLS = True