diff options
author | 2016-10-18 14:58:26 +0200 | |
---|---|---|
committer | 2016-10-18 17:13:59 +0200 | |
commit | 98081e863591d4f43447184fa69acc9f43d9ba63 (patch) | |
tree | 99e18487138431438902dd3246ce492e6af845da /roles/nginx/templates/snippets | |
parent | nginx: Fix conditional that deletes default config (diff) | |
download | ansible-roles-98081e863591d4f43447184fa69acc9f43d9ba63.tar.xz |
nginx: Provide new mechanism for default page manipulation
Important changes:
- The well-known path is moved to the separate snippet acme.conf
- It is possible to disable default page
- The autodetection mechanism for default page is provided
Diffstat (limited to 'roles/nginx/templates/snippets')
-rw-r--r-- | roles/nginx/templates/snippets/acme.conf.j2 | 4 | ||||
-rw-r--r-- | roles/nginx/templates/snippets/common.conf.j2 | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/roles/nginx/templates/snippets/acme.conf.j2 b/roles/nginx/templates/snippets/acme.conf.j2 new file mode 100644 index 0000000..4980312 --- /dev/null +++ b/roles/nginx/templates/snippets/acme.conf.j2 @@ -0,0 +1,4 @@ +location ^~ /.well-known/ { + root {{ nginx_well_known_path }}; + allow all; +} diff --git a/roles/nginx/templates/snippets/common.conf.j2 b/roles/nginx/templates/snippets/common.conf.j2 index 727da03..0a8e29e 100644 --- a/roles/nginx/templates/snippets/common.conf.j2 +++ b/roles/nginx/templates/snippets/common.conf.j2 @@ -3,8 +3,4 @@ location ~ /\.ht { deny all; } -location ^~ /.well-known/ { - root {{ nginx_well_known_path }}; -} - charset utf-8; |