84 lines
1.7 KiB
INI
84 lines
1.7 KiB
INI
###
|
|
# app configuration
|
|
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
|
|
###
|
|
|
|
[app:main]
|
|
use = egg:cao_sunyata
|
|
|
|
pyramid.reload_templates = false
|
|
pyramid.debug_authorization = false
|
|
pyramid.debug_notfound = false
|
|
pyramid.debug_routematch = false
|
|
pyramid.default_locale_name = en
|
|
|
|
sqlalchemy.url = sqlite:///%(here)s/cao_sunyata.sqlite
|
|
# images location
|
|
images_dir = /pyramid/cao_sunyata/cao_sunyata/static/img/
|
|
|
|
# reCaptcha keys
|
|
site_key = 6LeDvVUgAAAAAOqD_-h93kd5aW8CmpeVvKYu-m0p
|
|
secret_key = 6LeDvVUgAAAAAGASZXCmcmhh-KtBWTZjXpLpKdNt
|
|
|
|
# Mailer configuration
|
|
# mail.host = localhost
|
|
# mail.port = 25
|
|
admin_email = contact@meditation-sunyata.paris
|
|
mail.host = pro1.mail.ovh.net
|
|
mail.port = 587
|
|
mail.tls = True
|
|
mail.username = contact@meditation-sunyata.paris
|
|
mail.password = 88.tanhkhong
|
|
|
|
[pshell]
|
|
setup = cao_sunyata.pshell.setup
|
|
|
|
###
|
|
# wsgi server configuration
|
|
###
|
|
|
|
[server:main]
|
|
use = egg:waitress#main
|
|
listen = *:9180
|
|
url_scheme = https
|
|
|
|
###
|
|
# logging configuration
|
|
# https://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
|
|
###
|
|
|
|
[loggers]
|
|
keys = root, cao_sunyata, sqlalchemy
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = WARN
|
|
handlers = console
|
|
|
|
[logger_cao_sunyata]
|
|
level = WARN
|
|
handlers =
|
|
qualname = cao_sunyata
|
|
|
|
[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
|