proxy job from docker-registry/3.5.1
Nginx provides proxy and auth functionalities for Docker Registry
Github source:
857b9ca
or
master branch
Properties¶
docker
¶
proxy
¶
address
¶IP address where to listen for incoming connections. (For all interfaces, do not use 0.0.0.0, use *)
- Default
'*'
auth_basic
¶If defined, it will enable Auth Basic authentication in the proxy
- Example
user: '{PLAIN}password' user2: $(openssl passwd -crypt PASSWORD)
backend
¶
hosts
¶A list of the IP addresses of each Docker proxy to load-balance
- Default
- 127.0.0.1
port
¶TCP Port that each backend registry is listening on
- Default
5000
keepalive_timeout
¶Time to keep a keep-alive connection open
- Default
75s
keepalive_timeout_header
¶Show Keep-alive header
- Default
20s
loglevel
¶Error loglevel
- Default
error
only_auth_for_admin
¶If true, only administrative actions require authentication
- Default
false
port
¶Port to listen to for all incoming connections. Defaults to 443 if ssl, otherwise 80
readonly_port
¶Port to listen to for only GET incoming connections. Defaults to 444 if ssl, otherwise 81
ssl
¶
cert
¶PEM-encoded SSL certificate for HTTPS proxy operation
dhparam
¶Custom DH param for nginx to use
key
¶PEM-encoded private key for HTTPS proxy operation
protocols
¶TLS Protocols to enable in the Docker proxy (space separated)
- Default
TLSv1.1 TLSv1.2
worker_priority
¶Priority of the worker processes
- Default
0
worker_processes
¶Number of worker processes
- Default
auto
Templates¶
Templates are rendered and placed onto corresponding
instances during the deployment process. This job's templates
will be placed into /var/vcap/jobs/proxy/
directory
(learn more).
bin/ctl
(frombin/ctl
)bin/monit_debugger
(frombin/monit_debugger
)config/auth/registry
(fromconfig/auth/registry.erb
)config/nginx.conf
(fromconfig/nginx.conf
)data/properties.sh
(fromdata/properties.sh.erb
)helpers/ctl_setup.sh
(fromhelpers/ctl_setup.sh
)helpers/ctl_utils.sh
(fromhelpers/ctl_utils.sh
)tls/cert.pem
(fromtls/cert.pem
)tls/dhparam.pem
(fromtls/dhparam.pem
)tls/key.pem
(fromtls/key.pem
)
Packages¶
Packages are compiled and placed onto corresponding
instances during the deployment process. Packages will be
placed into /var/vcap/packages/
directory.