119 lines
3 KiB
INI
119 lines
3 KiB
INI
###
|
|
# app configuration
|
|
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
|
|
###
|
|
|
|
[app:main]
|
|
use = egg:make_post_sell
|
|
|
|
pyramid.reload_templates = true
|
|
pyramid.debug_authorization = true
|
|
pyramid.debug_notfound = true
|
|
pyramid.debug_routematch = true
|
|
pyramid.default_locale_name = en
|
|
pyramid.includes = pyramid_debugtoolbar pyramid_tm
|
|
|
|
# By default, the toolbar only appears for clients from IP addresses
|
|
# '127.0.0.1' and '::1'.
|
|
#debugtoolbar.hosts = 127.0.0.1 ::1
|
|
debugtoolbar.hosts = 0.0.0.0/0
|
|
|
|
sqlalchemy.url = sqlite:///%(here)s/make_post_sell.sqlite
|
|
|
|
retry.attempts = 3
|
|
|
|
###
|
|
# session / cookie configuration.
|
|
# http://docs.pylonsproject.org/docs/pyramid/en/latest/api/session.html
|
|
###
|
|
session.hashalg = sha512
|
|
session.secret = test-secret
|
|
session.timeout = 31104000
|
|
session.max_age = 31104000
|
|
session.reissue_time = 15552000
|
|
session.samesite = None
|
|
|
|
###
|
|
# app "business logic" settings
|
|
###
|
|
|
|
app.root_domain = blanka.foxhop.net
|
|
app.root_url = http://blanka.foxhop.net:6501
|
|
|
|
app.bucket.secure_uploads = plan-period-files
|
|
app.bucket.secure_uploads.region = nyc3
|
|
app.bucket.secure_uploads.post_endpoint = https://nyc3.digitaloceanspaces.com
|
|
#app.bucket.secure_uploads.get_endpoint = https://plan-period-files.nyc3.digitaloceanspaces.com
|
|
# testing cdn in development.
|
|
app.bucket.secure_uploads.get_endpoint = https://plan-period-files.nyc3.cdn.digitaloceanspaces.com
|
|
app.bucket.secure_uploads.access_key = ${MPS_APP_SECURE_UPLOADS_ACCESS_KEY}
|
|
app.bucket.secure_uploads.secret_key = ${MPS_APP_SECURE_UPLOADS_SECRET_KEY}
|
|
|
|
|
|
# set this to the path of your private DKIM key.
|
|
# reference: https://russell.ballestrini.net/quickstart-to-dkim-signed-email-with-python/
|
|
app.email.dkim_private_key_path = ${MPS_APP_DKIM_PRIVATE_KEY_PATH}
|
|
app.email.dkim_selector = ${MPS_APP_DKIM_SELECTOR}
|
|
|
|
# choices: rsa-sha256 or ed25519-sha256
|
|
#app.email.dkim_signature_algorithm = ed25519-sha256
|
|
|
|
|
|
|
|
[pshell]
|
|
setup = make_post_sell.scripts.pshell.setup
|
|
|
|
###
|
|
# wsgi server configuration
|
|
###
|
|
|
|
[alembic]
|
|
# path to migration scripts
|
|
script_location = make_post_sell:scripts/alembic
|
|
sqlalchemy.url = sqlite:///%(here)s/make_post_sell.sqlite
|
|
|
|
[server:main]
|
|
use = egg:waitress#main
|
|
#listen = localhost:6501
|
|
#listen = 192.168.1.216:6501
|
|
listen = 0.0.0.0:6501
|
|
|
|
###
|
|
# logging configuration
|
|
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
|
|
###
|
|
|
|
[loggers]
|
|
keys = root, make_post_sell, sqlalchemy
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = INFO
|
|
handlers = console
|
|
|
|
[logger_make_post_sell]
|
|
level = DEBUG
|
|
handlers =
|
|
qualname = make_post_sell
|
|
|
|
[logger_sqlalchemy]
|
|
level = WARN
|
|
handlers =
|
|
qualname = sqlalchemy.engine
|
|
# "level = INFO" logs SQL queries.
|
|
# "level = DEBUG" logs SQL queries and results.
|
|
# "level = WARN" logs neither. (Recommended for production systems.)
|
|
|
|
[handler_console]
|
|
class = StreamHandler
|
|
args = (sys.stderr,)
|
|
level = NOTSET
|
|
formatter = generic
|
|
|
|
[formatter_generic]
|
|
format = %(asctime)s %(levelname)-5.5s [%(name)s:%(lineno)s][%(threadName)s] %(message)s
|