From 4e0ae30e55a72d452898ebf087a4f74669f6c270 Mon Sep 17 00:00:00 2001 From: ckonstanski Date: Tue, 16 Jan 2018 22:10:54 +0000 Subject: autocommit Tue Jan 16 22:10:54 UTC 2018 --- templates/registry.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'templates') 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; -- cgit v1.3