22common : &common
33 # Default log level is info
44 loglevel : _env:LOGLEVEL:info
5+ # Enable the debugging /_versions endpoint
6+ debug_versions : _env:DEBUG_VERSIONS:false
57 # By default, the registry acts standalone (eg: doesn't query the index)
68 standalone : _env:STANDALONE:true
79 # The default endpoint to use (if NOT standalone) is index.docker.io
@@ -53,6 +55,20 @@ common: &common
5355 # Enable bugsnag (set the API key)
5456 bugsnag : _env:BUGSNAG
5557
58+ # CORS support is not enabled by default
59+ cors :
60+ origins : _env:CORS_ORIGINS:["null"]
61+ methods : _env:CORS_METHODS
62+ headers : _env:CORS_HEADERS:[Content-Type]
63+ expose_headers : _env:CORS_EXPOSE_HEADERS
64+ supports_credentials : _env:CORS_SUPPORTS_CREDENTIALS
65+ max_age : _env:CORS_MAX_AGE
66+ send_wildcard : _env:CORS_SEND_WILDCARD
67+ always_send : _env:CORS_ALWAYS_SEND
68+ automatic_options : _env:CORS_AUTOMATIC_OPTIONS
69+ vary_header : _env:CORS_VARY_HEADER
70+ resources : _env:CORS_RESOURCES
71+
5672local : &local
5773 << : *common
5874 storage : local
@@ -71,6 +87,24 @@ s3: &s3
7187 s3_access_key : {{ or (.deis_registry_s3accessKey) "" }}
7288 s3_secret_key : {{ or (.deis_registry_s3secretKey) "" }}
7389
90+ # Ceph Object Gateway Configuration
91+ # See http://ceph.com/docs/master/radosgw/ for details on installing this service.
92+ ceph-s3 : &ceph-s3
93+ << : *common
94+ storage : s3
95+ s3_region : ~
96+ s3_bucket : {{ .deis_registry_bucketName }}
97+ s3_encrypt : false
98+ s3_secure : false
99+ storage_path : /registry
100+ s3_access_key : {{ .deis_store_gateway_accessKey }}
101+ s3_secret_key : {{ .deis_store_gateway_secretKey }}
102+ boto_bucket : {{ .deis_registry_bucketName }}
103+ boto_host : {{ .deis_store_gateway_host }}
104+ boto_port : {{ .deis_store_gateway_port }}
105+ boto_debug : 0
106+ boto_calling_format : boto.s3.connection.OrdinaryCallingFormat
107+
74108# Google Cloud Storage Configuration
75109# See:
76110# https://developers.google.com/storage/docs/reference/v1/getting-startedv1#keys
@@ -139,8 +173,6 @@ elliptics:
139173 elliptics_logfile : _env:ELLIPTICS_LOGFILE:/dev/stderr
140174 elliptics_addr_family : _env:ELLIPTICS_ADDR_FAMILY:2
141175
142-
143-
144176# This is the default configuration when no flavor is specified
145177dev : &dev
146178 << : *local
@@ -164,5 +196,5 @@ prod:
164196deis :
165197 {{ if .deis_registry_s3accessKey }}<<: *s3
166198 {{ else if .deis_registry_swiftAuthURL }} <<: *openstack-swift
167- {{ else }} <<: *local
199+ {{ else }} <<: *ceph-s3
168200 {{ end }}
0 commit comments