diff options
| author | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-16 21:01:03 +0000 |
|---|---|---|
| committer | ckonstanski <ckonstanski@pippiandcarlos.com> | 2018-01-16 21:01:03 +0000 |
| commit | 202f5fad0c6ca43120163f7cf30e23f72ab1a2c2 (patch) | |
| tree | c3bd80d9ad53a5136862dcd0bfdf8af738c5b1cc /templates | |
| parent | 25804923a7ad337c60319552333fe6578019411f (diff) | |
autocommit Tue Jan 16 21:01:03 UTC 2018
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/registry.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/registry.conf b/templates/registry.conf index d4a3ba2..7f3200f 100644 --- a/templates/registry.conf +++ b/templates/registry.conf @@ -1,4 +1,4 @@ -upstream docker-registry { +upstream {{ inventory_hostsname }} { server registry:5000; } @@ -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://docker-registry; + proxy_pass http://{{ inventory_hostsname }}; 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; |
