-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdefault_api.cfg
More file actions
38 lines (30 loc) · 1.26 KB
/
default_api.cfg
File metadata and controls
38 lines (30 loc) · 1.26 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
30
31
32
33
34
35
36
37
38
# Required by core
MAX_SESSION=99999999
# SECURITY: Change credentials for production! Use environment variables:
# export ZEEGUU_MYSQL_USER_PASSWORD=your_secure_password
SQLALCHEMY_DATABASE_URI = ("mysql+pymysql://zeeguu_test:zeeguu_test@localhost:3306/zeeguu_test")
SQLALCHEMY_TRACK_MODIFICATIONS=False
# Required by API
# SECURITY: Set DEBUG=False in production!
DEBUG=True
HOST="0.0.0.0"
API_PORT=9001
# SECURITY: Generate a secure key with: python -c "import secrets; print(secrets.token_hex(32))"
SECRET_KEY="CHANGE_ME_IN_PRODUCTION"
## The SMTP config information below is used for
## sending password reset requests.
SMTP_EMAIL = ''
# SECURITY: Use strong, random invitation codes in production
INVITATION_CODES=['test']
SEND_NOTIFICATION_EMAILS=False
# Wordstats preloading
# Set to True in production to preload all language dictionaries at startup
# Set to False in development to use lazy loading (faster startup)
PRELOAD_WORDSTATS=False
# Stanza model preloading
# Set to True in production to preload all language tokenizers at startup (~30s)
# Set to False in development for lazy loading (models load on first use per language)
PRELOAD_STANZA=False
# Flask Monitoring Dashboard
# Set to False in development to save ~3s on startup
ENABLE_MONITORING_DASHBOARD=False