blob: 351b09fb17084b92f63d59801fd1ae0f788a26c2 [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)
Anthony Younga531b772011-09-20 09:59:54 -07006debug = True
Anthony Youngb6838a12011-09-13 17:13:32 -07007
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!
Anthony Younga531b772011-09-20 09:59:54 -070016log_file = %DEST%/glance/registry.log
17
18# Where to store images
Anthony Younga27523a2011-09-20 10:57:38 -070019filesystem_store_datadir = %DEST%/glance/images
Anthony Youngb6838a12011-09-13 17:13:32 -070020
21# Send logs to syslog (/dev/log) instead of to file specified by `log_file`
James E. Blair5855a642011-10-26 15:44:27 -040022use_syslog = %SYSLOG%
Anthony Youngb6838a12011-09-13 17:13:32 -070023
24# SQLAlchemy connection string for the reference implementation
25# registry server. Any valid SQLAlchemy connection string is fine.
26# See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
Anthony Younga8416442011-09-13 20:07:44 -070027sql_connection = %SQL_CONN%
Anthony Youngb6838a12011-09-13 17:13:32 -070028
29# Period in seconds after which SQLAlchemy should reestablish its connection
30# to the database.
31#
32# MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
33# idle connections. This can result in 'MySQL Gone Away' exceptions. If you
34# notice this, you can lower this value to ensure that SQLAlchemy reconnects
35# before MySQL can drop the connection.
36sql_idle_timeout = 3600
37
38# Limit the api to return `param_limit_max` items in a call to a container. If
39# a larger `limit` query param is provided, it will be reduced to this value.
40api_limit_max = 1000
41
42# If a `limit` query param is not provided in an api request, it will
43# default to `limit_param_default`
44limit_param_default = 25
45
46[pipeline:glance-registry]
Anthony Youngf12d3ab2011-09-20 00:33:51 -070047#pipeline = context registryapp
Anthony Youngb6838a12011-09-13 17:13:32 -070048# NOTE: use the following pipeline for keystone
Anthony Youngf12d3ab2011-09-20 00:33:51 -070049pipeline = authtoken keystone_shim context registryapp
Anthony Youngb6838a12011-09-13 17:13:32 -070050
51[app:registryapp]
52paste.app_factory = glance.registry.server:app_factory
53
54[filter:context]
55context_class = glance.registry.context.RequestContext
56paste.filter_factory = glance.common.context:filter_factory
57
58[filter:authtoken]
59paste.filter_factory = keystone.middleware.auth_token:filter_factory
60service_protocol = http
61service_host = 127.0.0.1
62service_port = 5000
63auth_host = 127.0.0.1
Anthony Younga449dd82011-09-30 15:52:18 -070064auth_port = 35357
Anthony Youngb6838a12011-09-13 17:13:32 -070065auth_protocol = http
66auth_uri = http://127.0.0.1:5000/
Jesse Andrewsb96871e2011-10-02 09:02:46 -070067admin_token = %SERVICE_TOKEN%
Anthony Youngb6838a12011-09-13 17:13:32 -070068
69[filter:keystone_shim]
70paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory