Advertisement
Guest User

Untitled

a guest
Feb 27th, 2012
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  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)
  6. debug = False
  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!
  16. log_file = /var/log/glance/registry.log
  17.  
  18. # Send logs to syslog (/dev/log) instead of to file specified by `log_file`
  19. use_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
  24. sql_connection = mysql://[username]:[passwd]@192.168.0.254/glance
  25.  
  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.
  33. sql_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.
  37. api_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`
  41. limit_param_default = 25
  42.  
  43. [pipeline:glance-registry]
  44. pipeline = context registryapp
  45. # NOTE: use the following pipeline for keystone
  46. # pipeline = authtoken auth-context registryapp
  47. pipeline = authtoken keystone_shim registryapp
  48.  
  49. [app:registryapp]
  50. paste.app_factory = glance.registry.server:app_factory
  51.  
  52. [filter:context]
  53. #context_class = glance.registry.context.RequestContext
  54. paste.filter_factory = glance.common.context:filter_factory
  55.  
  56. [filter:authtoken]
  57. paste.filter_factory = keystone.middleware.auth_token:filter_factory
  58. service_protocol = http
  59. service_host = 127.0.0.1
  60. service_port = 5000
  61. auth_host = 127.0.0.1
  62. auth_port = 35357
  63. auth_protocol = http
  64. auth_uri = http://127.0.0.1:5000/
  65. admin_token = 11121314151617181920
  66.  
  67. [filter:auth-context]
  68. paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory
  69.  
  70. [filter:keystone_shim]
  71. context_class = glance.registry.context.RequestContext
  72. paste.filter_factory = keystone.middleware.glance_auth_token:filter_factory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement