| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 1 | [DEFAULT] | 
 | 2 | # Show more verbose log output (sets INFO log level output) | 
 | 3 | verbose = True | 
 | 4 |  | 
 | 5 | # Show debugging output in logs (sets DEBUG log level output) | 
| Anthony Young | a531b77 | 2011-09-20 09:59:54 -0700 | [diff] [blame] | 6 | debug = True | 
| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 7 |  | 
 | 8 | # Address to bind the registry server | 
 | 9 | bind_host = 0.0.0.0 | 
 | 10 |  | 
 | 11 | # Port the bind the registry server to | 
 | 12 | bind_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 Young | a531b77 | 2011-09-20 09:59:54 -0700 | [diff] [blame] | 16 | log_file = %DEST%/glance/registry.log | 
 | 17 |  | 
 | 18 | # Where to store images | 
| Anthony Young | a27523a | 2011-09-20 10:57:38 -0700 | [diff] [blame] | 19 | filesystem_store_datadir = %DEST%/glance/images | 
| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 20 |  | 
 | 21 | # Send logs to syslog (/dev/log) instead of to file specified by `log_file` | 
 | 22 | use_syslog = False | 
 | 23 |  | 
 | 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 Young | a841644 | 2011-09-13 20:07:44 -0700 | [diff] [blame] | 27 | sql_connection = %SQL_CONN% | 
| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 28 |  | 
 | 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. | 
 | 36 | sql_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. | 
 | 40 | api_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` | 
 | 44 | limit_param_default = 25 | 
 | 45 |  | 
 | 46 | [pipeline:glance-registry] | 
| Anthony Young | f12d3ab | 2011-09-20 00:33:51 -0700 | [diff] [blame] | 47 | #pipeline = context registryapp | 
| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 48 | # NOTE: use the following pipeline for keystone | 
| Anthony Young | f12d3ab | 2011-09-20 00:33:51 -0700 | [diff] [blame] | 49 | pipeline = authtoken keystone_shim context registryapp | 
| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 50 |  | 
 | 51 | [app:registryapp] | 
 | 52 | paste.app_factory = glance.registry.server:app_factory | 
 | 53 |  | 
 | 54 | [filter:context] | 
 | 55 | context_class = glance.registry.context.RequestContext | 
 | 56 | paste.filter_factory = glance.common.context:filter_factory | 
 | 57 |  | 
 | 58 | [filter:authtoken] | 
 | 59 | paste.filter_factory = keystone.middleware.auth_token:filter_factory | 
 | 60 | service_protocol = http | 
 | 61 | service_host = 127.0.0.1 | 
 | 62 | service_port = 5000 | 
 | 63 | auth_host = 127.0.0.1 | 
| Anthony Young | a449dd8 | 2011-09-30 15:52:18 -0700 | [diff] [blame] | 64 | auth_port = 35357 | 
| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 65 | auth_protocol = http | 
 | 66 | auth_uri = http://127.0.0.1:5000/ | 
| Jesse Andrews | b96871e | 2011-10-02 09:02:46 -0700 | [diff] [blame] | 67 | admin_token = %SERVICE_TOKEN% | 
| Anthony Young | b6838a1 | 2011-09-13 17:13:32 -0700 | [diff] [blame] | 68 |  | 
 | 69 | [filter:keystone_shim] | 
 | 70 | paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory |