mirror of
https://github.com/nginx-proxy/docker-letsencrypt-nginx-proxy-companion
synced 2026-07-29 11:50:12 +02:00
6fc80eb6fb
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
44 lines
1002 B
Plaintext
44 lines
1002 B
Plaintext
## ipv6-enabled
|
|
server {
|
|
server_name ipv6.example.test;
|
|
listen 80;
|
|
listen [::]:80;
|
|
access_log /var/log/nginx/access.log vhost;
|
|
location ^~ /.well-known/acme-challenge/ {
|
|
auth_basic off;
|
|
auth_request off;
|
|
allow all;
|
|
root /usr/share/nginx/html;
|
|
try_files $uri =404;
|
|
break;
|
|
}
|
|
}
|
|
## ipv6-disabled
|
|
server {
|
|
server_name plain.example.test;
|
|
listen 80;
|
|
access_log /var/log/nginx/access.log vhost;
|
|
location ^~ /.well-known/acme-challenge/ {
|
|
auth_basic off;
|
|
auth_request off;
|
|
allow all;
|
|
root /usr/share/nginx/html;
|
|
try_files $uri =404;
|
|
break;
|
|
}
|
|
}
|
|
## ipv6-unset
|
|
server {
|
|
server_name unset.example.test;
|
|
listen 80;
|
|
access_log /var/log/nginx/access.log vhost;
|
|
location ^~ /.well-known/acme-challenge/ {
|
|
auth_basic off;
|
|
auth_request off;
|
|
allow all;
|
|
root /usr/share/nginx/html;
|
|
try_files $uri =404;
|
|
break;
|
|
}
|
|
}
|