~homeworkprod/byceps

15eb08df5a775cc99f95abe15ed2d1483cb3d20a — Jochen Kupperschmidt 1 year, 26 days ago 428f0d2
Rename, tweak example configuration files
3 files changed, 12 insertions(+), 10 deletions(-)

R config/{development_admin.py => admin_dev.py}
R config/{development_party.py => example-site_dev.py}
R config/{production_party.py => example-site_prod.py}
R config/development_admin.py => config/admin_dev.py +1 -1
@@ 10,7 10,7 @@ RQ_DASHBOARD_ENABLED = True
APP_MODE = 'admin'

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

ROOT_REDIRECT_TARGET = 'admin/dashboard'

R config/development_party.py => config/example-site_dev.py +3 -4
@@ 1,5 1,4 @@
# an examplary configuration file of a public party web application to
# be run during development
# Examplary development configuration for a public site

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


@@ 9,8 8,8 @@ SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://byceps:boioioing@127.0.0.1/byce
REDIS_URL = 'redis://127.0.0.1:6379/0'

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

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

R config/production_party.py => config/example-site_prod.py +8 -5
@@ 1,8 1,11 @@
# an examplary configuration file of a public party web application to
# be run in production
# Examplary production configuration for a public site

# Limit incoming request content.
MAX_CONTENT_LENGTH = 4000000
PROPAGATE_EXCEPTIONS = True

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


@@ 16,8 19,8 @@ SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://byceps:boioioing@127.0.0.1/byce
REDIS_URL = 'unix:///var/run/redis/redis.sock?db=0'

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

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