Skip to content

Instantly share code, notes, and snippets.

@jmvrbanac
Last active November 17, 2015 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmvrbanac/7d119a9ea7b18f92c412 to your computer and use it in GitHub Desktop.
Save jmvrbanac/7d119a9ea7b18f92c412 to your computer and use it in GitHub Desktop.
Gunicorn Barbican Config
[composite:main]
use = egg:Paste#urlmap
/: barbican_version
/v1: barbican_api
[pipeline:barbican_version]
pipeline = versionapp
[pipeline:barbican_api]
pipeline = unauthenticated-context apiapp
[pipeline:barbican-profile]
pipeline = unauthenticated-context egg:Paste#cgitb egg:Paste#httpexceptions profile apiapp
[pipeline:barbican-api-keystone]
pipeline = keystone_authtoken context apiapp
[app:apiapp]
paste.app_factory = barbican.api.app:create_main_app
[app:versionapp]
paste.app_factory = barbican.api.app:create_version_app
[filter:simple]
paste.filter_factory = barbican.api.middleware.simple:SimpleFilter.factory
[filter:unauthenticated-context]
paste.filter_factory = barbican.api.middleware.context:UnauthenticatedContextMiddleware.factory
[filter:context]
paste.filter_factory = barbican.api.middleware.context:ContextMiddleware.factory
[filter:keystone_authtoken]
paste.filter_factory = keystonemiddleware.auth_token:filter_factory
identity_uri = http://localhost:35357
admin_tenant_name = service
admin_user = barbican
admin_password = orange
auth_version = v3.0
[server:main]
use = egg:gunicorn#main
import multiprocessing
bind = '0.0.0.0:9311'
user = 1010
group = 1010
timeout = 30
backlog = 2048
keepalive = 2
workers = 1
# TODO(jmvrbanac): Enable when we hookup Postgres
# workers = multiprocessing.cpu_count() * 2
loglevel = 'info'
errorlog = '-'
accesslog = '-'
syslog = True
syslog_addr = 'unix:///dev/log#dgram'
syslog_prefix = 'barbican'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment