~homeworkprod/byceps

ref: 15032ed31fb6d725e84482437ebf4e4aedc41cb1 byceps/config/example-site_prod.py -rw-r--r-- 785 bytes
15032ed3 — Jochen Kupperschmidt Update Click, Flask, Jinja, Werkzeug to v2.0.0 each 5 months ago
                                                                                
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
# Exemplary production configuration for a public site

# Limit incoming request content.
MAX_CONTENT_LENGTH = 4000000

# Enable this if you want a tool like Sentry
# handle exceptions rather than Flask.
PROPAGATE_EXCEPTIONS = False

# Set a custom secret key for running in production!
# To generate one:
#     $ python -c 'import os; print(os.urandom(24))'
SECRET_KEY = b'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

SESSION_COOKIE_SECURE = True

SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://byceps:boioioing@127.0.0.1/byceps'

REDIS_URL = 'unix:///var/run/redis/redis.sock?db=0'

APP_MODE = 'site'
SITE_ID = 'example-site'

MAIL_DEBUG = False
MAIL_DEFAULT_SENDER = 'BYCEPS <noreply@site.example>'
MAIL_SUPPRESS_SEND = False