ansible playbook to set up a laminar container Ci build
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible_laminar/nginx-registry

24 lines
647 B

upstream docker-registry {
server {{ registry }};
}
server {
listen 80;
listen [::]:80;
server_name {{ registry_domain }};
# required to avoid HTTP 411: see Issue #1486 (https://github.com/moby/moby/issues/1486)
chunked_transfer_encoding on;
location /v2/ {
proxy_set_header Host $http_host; # required for docker client's sake
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_read_timeout 900;
if ($request_method ~* "^(GET|HEAD)$") {
proxy_pass http://docker-registry;
}
}
}