files/glance-registry.conf
b6838a1c
 [DEFAULT]
 # Show more verbose log output (sets INFO log level output)
 verbose = True
 
 # Show debugging output in logs (sets DEBUG log level output)
a531b772
 debug = True
b6838a1c
 
 # Address to bind the registry server
 bind_host = 0.0.0.0
 
 # Port the bind the registry server to
 bind_port = 9191
 
 # Log to this file. Make sure you do not set the same log
 # file for both the API and registry servers!
8957fead
 #log_file = %DEST%/glance/registry.log
a531b772
 
 # Where to store images
a27523a8
 filesystem_store_datadir = %DEST%/glance/images
b6838a1c
 
 # Send logs to syslog (/dev/log) instead of to file specified by `log_file`
5855a644
 use_syslog = %SYSLOG%
b6838a1c
 
 # SQLAlchemy connection string for the reference implementation
 # registry server. Any valid SQLAlchemy connection string is fine.
 # See: http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/connections.html#sqlalchemy.create_engine
a841644e
 sql_connection = %SQL_CONN%
b6838a1c
 
 # Period in seconds after which SQLAlchemy should reestablish its connection
 # to the database.
 #
 # MySQL uses a default `wait_timeout` of 8 hours, after which it will drop
 # idle connections. This can result in 'MySQL Gone Away' exceptions. If you
 # notice this, you can lower this value to ensure that SQLAlchemy reconnects
 # before MySQL can drop the connection.
 sql_idle_timeout = 3600
 
 # Limit the api to return `param_limit_max` items in a call to a container. If
 # a larger `limit` query param is provided, it will be reduced to this value.
 api_limit_max = 1000
 
 # If a `limit` query param is not provided in an api request, it will
 # default to `limit_param_default`
 limit_param_default = 25
 
 [pipeline:glance-registry]
f12d3ab0
 #pipeline = context registryapp
b6838a1c
 # NOTE: use the following pipeline for keystone
f12d3ab0
 pipeline = authtoken keystone_shim context registryapp
b6838a1c
 
 [app:registryapp]
 paste.app_factory = glance.registry.server:app_factory
 
 [filter:context]
 context_class = glance.registry.context.RequestContext
 paste.filter_factory = glance.common.context:filter_factory
 
 [filter:authtoken]
 paste.filter_factory = keystone.middleware.auth_token:filter_factory
 service_protocol = http
 service_host = 127.0.0.1
 service_port = 5000
 auth_host = 127.0.0.1
a449dd85
 auth_port = 35357
b6838a1c
 auth_protocol = http
 auth_uri = http://127.0.0.1:5000/
b96871e4
 admin_token = %SERVICE_TOKEN%
b6838a1c
 
 [filter:keystone_shim]
 paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory