X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/54d0b9bfa9c61573cd2d601052eede9de396d23d..refs/heads/master:/cookbooks/community/templates/default/web_only.yml.erb diff --git a/cookbooks/community/templates/default/web_only.yml.erb b/cookbooks/community/templates/default/web_only.yml.erb index cdced0a8a..e7fd3665c 100644 --- a/cookbooks/community/templates/default/web_only.yml.erb +++ b/cookbooks/community/templates/default/web_only.yml.erb @@ -129,7 +129,8 @@ hooks: run: - replace: filename: "/etc/nginx/conf.d/discourse.conf" - from: /return 301.+/ + from: /listen 80;/ to: | + listen 80; + listen [::]:80; rewrite ^/\.well-known/acme-challenge/(.*)$ http://acme.openstreetmap.org/.well-known/acme-challenge/$1 permanent; - return 301 https://$$ENV_DISCOURSE_HOSTNAME$request_uri;