85 lines
1.7 KiB
INI
85 lines
1.7 KiB
INI
###
|
|
# app configuration
|
|
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/environment.html
|
|
###
|
|
|
|
[app:main]
|
|
use = egg:aem_gestion
|
|
|
|
pyramid.reload_templates = false
|
|
pyramid.debug_authorization = false
|
|
pyramid.debug_notfound = false
|
|
pyramid.debug_routematch = false
|
|
pyramid.default_locale_name = en
|
|
pyramid.includes =
|
|
pyramid_chameleon
|
|
pyramid_layout
|
|
pyramid_mailer
|
|
pyramid_tm
|
|
|
|
sqlalchemy.url = mysql://phuoc:phuoc!@10.69.6.8/bd_aem?charset=utf8
|
|
# sqlalchemy.url = mysql://root:phuoc@srv-dc/bd_aem?charset=utf8
|
|
sqlalchemy.pool_recycle = 3600
|
|
|
|
aem_gestion.justifs_url = aem_gestion:static/JUSTIFS/
|
|
aem_gestion.justifs_dir = /mnt/JUSTIFS
|
|
aem_gestion.admin_email = no-reply@marietton.com
|
|
|
|
# Mailer configuration
|
|
# mail.host = smtp-av.nerim.net
|
|
# mail.port = 25
|
|
mail.host = ssl0.ovh.net
|
|
mail.port = 465
|
|
mail.username = no-reply@marietton.com
|
|
mail.password = PYk3Xw36y
|
|
mail.ssl = yes
|
|
|
|
|
|
[server:main]
|
|
use = egg:waitress#main
|
|
host = 0.0.0.0
|
|
port = 6544
|
|
url_scheme = https
|
|
|
|
###
|
|
# logging configuration
|
|
# http://docs.pylonsproject.org/projects/pyramid/en/latest/narr/logging.html
|
|
###
|
|
|
|
[loggers]
|
|
keys = root, aem_gestion, sqlalchemy
|
|
|
|
[handlers]
|
|
keys = console
|
|
|
|
[formatters]
|
|
keys = generic
|
|
|
|
[logger_root]
|
|
level = WARN
|
|
handlers = console
|
|
|
|
[logger_aem_gestion]
|
|
level = WARN
|
|
handlers =
|
|
qualname = aem_gestion
|
|
|
|
|
|
[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][%(threadName)s] %(message)s
|
|
|