summaryrefslogtreecommitdiff
path: root/salt/openbook/ansible/files/registry.conf
diff options
context:
space:
mode:
Diffstat (limited to 'salt/openbook/ansible/files/registry.conf')
-rw-r--r--salt/openbook/ansible/files/registry.conf6
1 files changed, 3 insertions, 3 deletions
diff --git a/salt/openbook/ansible/files/registry.conf b/salt/openbook/ansible/files/registry.conf
index e97729a..70ebf7e 100644
--- a/salt/openbook/ansible/files/registry.conf
+++ b/salt/openbook/ansible/files/registry.conf
@@ -4,12 +4,12 @@ upstream docker-registry {
server {
listen 443;
- server_name {% raw %}{{ cn }}{% endraw %};
+ server_name {% raw %}{{ inventory_hostsname }}{% endraw %};
# SSL
ssl on;
- ssl_certificate /etc/nginx/conf.d/{% raw %}{{ cn }}{% endraw %}.crt;
- ssl_certificate_key /etc/nginx/conf.d/{% raw %}{{ cn }}{% endraw %}.key;
+ ssl_certificate /etc/nginx/conf.d/{% raw %}{{ inventory_hostsname }}{% endraw %}.crt;
+ ssl_certificate_key /etc/nginx/conf.d/{% raw %}{{ inventory_hostsname }}{% endraw %}.key;
# disable any limits to avoid HTTP 413 for large image uploads
client_max_body_size 0;