diff options
Diffstat (limited to 'templates/registry.conf')
| -rw-r--r-- | templates/registry.conf | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/registry.conf b/templates/registry.conf index 7f3200f..522a5ee 100644 --- a/templates/registry.conf +++ b/templates/registry.conf @@ -1,15 +1,15 @@ -upstream {{ inventory_hostsname }} { +upstream {{ inventory_hostname }} { server registry:5000; } server { listen 443; - server_name {{ inventory_hostsname }}; + server_name {{ inventory_hostname }}; # SSL ssl on; - ssl_certificate /etc/nginx/conf.d/{{ inventory_hostsname }}.crt; - ssl_certificate_key /etc/nginx/conf.d/{{ inventory_hostsname }}.key; + ssl_certificate /etc/nginx/conf.d/{{ inventory_hostname }}.crt; + ssl_certificate_key /etc/nginx/conf.d/{{ inventory_hostname }}.key; # disable any limits to avoid HTTP 413 for large image uploads client_max_body_size 0; @@ -29,7 +29,7 @@ server { auth_basic_user_file /etc/nginx/conf.d/registry.password; add_header 'Docker-Distribution-Api-Version' 'registry/2.0' always; - proxy_pass http://{{ inventory_hostsname }}; + proxy_pass http://{{ inventory_hostname }}; proxy_set_header Host $http_host; # required for docker client's sake proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
