diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-16 22:10:54 +0000 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-16 22:10:54 +0000 |
| commit | 4e0ae30e55a72d452898ebf087a4f74669f6c270 (patch) | |
| tree | e4b465005e123798788ae5ed667bbf0756a1cd66 /templates | |
| parent | a383390d27c496b7e33768914f0df19b80657d64 (diff) | |
autocommit Tue Jan 16 22:10:54 UTC 2018
Diffstat (limited to 'templates')
| -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; |
