nginx: Listen for ACME challenges on port 80 too.

This should make Certbot renewals more reliable.

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2020-04-23 15:45:32 -07:00 committed by Tim Abbott
parent 257a026f13
commit 09ea778db1
1 changed files with 6 additions and 1 deletions

View File

@ -3,7 +3,12 @@
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
return 301 https://$host$request_uri;
location / {
return 301 https://$host$request_uri;
}
include /etc/nginx/zulip-include/certbot;
} }
<% end -%> <% end -%>