
############################################################
#
# Tailbone web API
#
############################################################


##############################
# rattail
##############################

[rattail.config]
require = %(here)s/rattail.conf


##############################
# pyramid
##############################

[app:main]
# TODO: Tailbone is just the default, you may need a custom spec here
use = egg:Tailbone#webapi

pyramid.debug_all = false
pyramid.default_locale_name = en
# pyramid.includes = pyramid_exclog

beaker.session.type = file
beaker.session.data_dir = %(here)s/cache/sessions/data
beaker.session.lock_dir = %(here)s/cache/sessions/lock
# TODO: you should change this
beaker.session.secret = e:VHDVstO=H1%h1bV><&
beaker.session.key = tailbone

exclog.extra_info = true

# required for tailbone
rattail.config = %(__file__)s

[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 9090

# 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/api/
#url_prefix = /api


##############################
# logging
##############################

[handler_console]
level = INFO

[handler_file]
# TODO: you probably should change this to absolute path
args = ('app/log/webapi.log', 'a', 1000000, 100, 'utf_8')
