~homeworkprod/byceps

ref: 3f0e201ac95beb0652058399be012d179753d775 byceps/config/production_party.py -rw-r--r-- 1.0 KiB
3f0e201a — Jochen Kupperschmidt Create tourney avatar path on upload if it doesn't exist 1 year, 11 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
27
28
29
30
31
32
33
34
35
# an examplary configuration file of a public party web application to
# be run in production

from pathlib import Path


MAX_CONTENT_LENGTH = 4000000
PROPAGATE_EXCEPTIONS = True

# 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'

SITE_MODE = 'public'
SITE_ID = 'example-prod'
BRAND = 'example-brand'
PARTY = 'example-party-1'

PATH_DATA = Path('./data')
PATH_GLOBAL = PATH_DATA / 'global'
PATH_BRAND = PATH_DATA / 'brands' / BRAND
PATH_PARTY = PATH_DATA / 'parties' / PARTY
PATH_USER_AVATAR_IMAGES = PATH_GLOBAL / 'users/avatars'
PATH_TOURNEY_AVATAR_IMAGES = PATH_PARTY / 'tourney/avatars'

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