fd683f4241
This PS adds the NFS provisioner and Docker Registry to the OSH-Infra Repo, these are being used as initial candidates for moving as they are simple charts and allow the chart runner logic to be developed in the gate playbooks. Change-Id: Ie80b8578aafd3fe7252d3dcb603ea6af7586776e
29 lines
1.0 KiB
Smarty
29 lines
1.0 KiB
Smarty
# Docker registry proxy for api version 2
|
|
|
|
upstream docker-registry {
|
|
server {{ tuple "docker_registry" "internal" "registry" . | include "helm-toolkit.endpoints.host_and_port_endpoint_uri_lookup" }};
|
|
}
|
|
|
|
# No client auth or TLS
|
|
# TODO(bacongobbler): experiment with authenticating the registry if it's using TLS
|
|
server {
|
|
listen {{ tuple "docker_registry" "public" "registry" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }};
|
|
server_name localhost;
|
|
|
|
# disable any limits to avoid HTTP 413 for large image uploads
|
|
client_max_body_size 0;
|
|
|
|
# required to avoid HTTP 411: see Issue #1486 (https://github.com/docker/docker/issues/1486)
|
|
chunked_transfer_encoding on;
|
|
|
|
location / {
|
|
# Do not allow connections from docker 1.5 and earlier
|
|
# docker pre-1.6.0 did not properly set the user agent on ping, catch "Go *" user agents
|
|
if ($http_user_agent ~ "^(docker\/1\.(3|4|5(?!\.[0-9]-dev))|Go ).*$" ) {
|
|
return 404;
|
|
}
|
|
|
|
include docker-registry.conf;
|
|
}
|
|
}
|