diff options
Diffstat (limited to 'salt/openbook/ansible/files/registry.conf')
| -rw-r--r-- | salt/openbook/ansible/files/registry.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/salt/openbook/ansible/files/registry.conf b/salt/openbook/ansible/files/registry.conf index 70ebf7e..04edb64 100644 --- a/salt/openbook/ansible/files/registry.conf +++ b/salt/openbook/ansible/files/registry.conf @@ -1,4 +1,4 @@ -upstream docker-registry { +upstream {% raw %}{{ inventory_hostsname }}{% endraw %} { 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://{% raw %}{{ inventory_hostsname }}{% endraw %}; 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; |
