Skip to content

Commit 3462efd

Browse files
authored
Listen on IPv6 when redirecting HTTP -> HTTPS
When running on a dual-stack host, we can ask `nginx` to listen on IPv6 in our user configs, but the bundled configs should themselves listen on IPv6 when applicable. My fork [has been doing this for a while](https://github.com/staticfloat/docker-nginx-certbot/blob/master/src/nginx_conf.d/certbot.conf) (along with specifying `reuseport` but I don't think that's so critical), so I don't believe there are any major incompatibilities involved with turning this on.
1 parent 1f82537 commit 3462efd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nginx_conf.d/redirector.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
server {
22
# Listen on plain old HTTP and catch any hostname for redirect to HTTPS
33
listen 80 default_server;
4+
listen [::]:80 default_server;
45

56
# Pass this particular URL off to the certbot server for it to be able to
67
# authenticate with letsencrypt and get the HTTPS certificates.

0 commit comments

Comments
 (0)