summaryrefslogtreecommitdiff
path: root/salt/openbook/ansible/files/registry.conf
diff options
context:
space:
mode:
authorCarlos Konstanski <ckonstanski@pippiandcarlos.com>2018-01-16 11:57:33 -0700
committerCarlos Konstanski <ckonstanski@pippiandcarlos.com>2018-01-16 11:57:33 -0700
commita392d817352de0ea6c84ca0c2023ad1506830486 (patch)
tree141251cd93e6e540c9c8f09b19b68681f65d7e6c /salt/openbook/ansible/files/registry.conf
parentbaa361feff5a9952b7c43f33db4f2ae1d5e0e85d (diff)
Openbook CI: make new self-signed cert for CI/CD stack
Issue: IS-56
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;