Add fabric bundle for 'theo-server'
This commit is contained in:
parent
9e275a35f8
commit
a26e3088c5
23 changed files with 1032 additions and 0 deletions
66
machines/theo-server/deploy/theo-common/web.conf.mako
Normal file
66
machines/theo-server/deploy/theo-common/web.conf.mako
Normal file
|
@ -0,0 +1,66 @@
|
|||
## -*- mode: conf; -*-
|
||||
|
||||
<%text>############################################################</%text>
|
||||
#
|
||||
# config for Theo web app
|
||||
#
|
||||
<%text>############################################################</%text>
|
||||
|
||||
|
||||
<%text>###############################</%text>
|
||||
# rattail
|
||||
<%text>###############################</%text>
|
||||
|
||||
[rattail.config]
|
||||
include = %(here)s/rattail.conf
|
||||
|
||||
|
||||
<%text>###############################</%text>
|
||||
# pyramid
|
||||
<%text>###############################</%text>
|
||||
|
||||
[app:main]
|
||||
use = egg:Tailbone_Theo
|
||||
|
||||
pyramid.reload_templates = false
|
||||
pyramid.debug_all = false
|
||||
pyramid.default_locale_name = en
|
||||
pyramid.includes = pyramid_exclog
|
||||
|
||||
beaker.session.type = file
|
||||
beaker.session.data_dir = %(here)s/sessions/data
|
||||
beaker.session.lock_dir = %(here)s/sessions/lock
|
||||
beaker.session.secret = ${env.theo_beaker_secret}
|
||||
beaker.session.key = ${dbname}
|
||||
|
||||
exclog.extra_info = true
|
||||
|
||||
# required for tailbone
|
||||
rattail.config = %(__file__)s
|
||||
|
||||
[server:main]
|
||||
use = egg:waitress#main
|
||||
host = 0.0.0.0
|
||||
port = ${port}
|
||||
|
||||
# NOTE: this is needed for local reverse proxy stuff to work with HTTPS
|
||||
# https://docs.pylonsproject.org/projects/waitress/en/latest/reverse-proxy.html
|
||||
# https://docs.pylonsproject.org/projects/waitress/en/latest/arguments.html
|
||||
trusted_proxy = 127.0.0.1
|
||||
|
||||
# TODO: leave this empty if proxy serves as root site, e.g. http://rattail.example.com/
|
||||
url_prefix =
|
||||
|
||||
# TODO: or, if proxy serves as subpath of root site, e.g. http://rattail.example.com/backend/
|
||||
# url_prefix = /backend
|
||||
|
||||
|
||||
<%text>###############################</%text>
|
||||
# logging
|
||||
<%text>###############################</%text>
|
||||
|
||||
[handler_console]
|
||||
level = INFO
|
||||
|
||||
[handler_file]
|
||||
args = ('${envroot}/app/log/web.log', 'a', 'utf_8')
|
Loading…
Add table
Add a link
Reference in a new issue