blob: ea2cf1d3c100761087a1c13d4d2b77d7e3385836 [file] [log] [blame]
Anthony Youngb6838a12011-09-13 17:13:32 -07001[DEFAULT]
2# Show more verbose log output (sets INFO log level output)
3verbose = True
4
5# Show debugging output in logs (sets DEBUG log level output)
6debug = False
7
8# Address to bind the registry server
9bind_host = 0.0.0.0
10
11# Port the bind the registry server to
12bind_port = 9191
13
14# Log to this file. Make sure you do not set the same log
15# file for both the API and registry servers!
16log_file = /var/log/glance/registry.log
17
18# Send logs to syslog (/dev/log) instead of to file specified by `log_file`
19use_syslog = False
20
21# SQLAlchemy connection string for the reference implementation
22# registry server. Any valid SQLAlchemy connection string is fine.
23# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
Anthony Younga8416442011-09-13 20:07:44 -070024sql_connection = %SQL_CONN%
Anthony Youngb6838a12011-09-13 17:13:32 -070025
26# Period in seconds after which SQLAlchemy should reestablish its connection
27# to the database.
28#
29# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
30# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
31# notice this, you can lower this value to ensure that SQLAlchemy reconnects
32# before MySQL can drop the connection.
33sql_idle_timeout = 3600
34
35# Limit the api to return `param_limit_max` items in a call to a container. If
36# a larger `limit` query param is provided, it will be reduced to this value.
37api_limit_max = 1000
38
39# If a `limit` query param is not provided in an api request, it will
40# default to `limit_param_default`
41limit_param_default = 25
42
43[pipeline:glance-registry]
44pipeline = context registryapp
45# NOTE: use the following pipeline for keystone
46# pipeline = authtoken keystone_shim context registryapp
47
48[app:registryapp]
49paste.app_factory = glance.registry.server:app_factory
50
51[filter:context]
52context_class = glance.registry.context.RequestContext
53paste.filter_factory = glance.common.context:filter_factory
54
55[filter:authtoken]
56paste.filter_factory = keystone.middleware.auth_token:filter_factory
57service_protocol = http
58service_host = 127.0.0.1
59service_port = 5000
60auth_host = 127.0.0.1
61auth_port = 5001
62auth_protocol = http
63auth_uri = http://127.0.0.1:5000/
64admin_token = 999888777666
65
66[filter:keystone_shim]
67paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory