June
70a27ec79c
The server being reachable over v6 is needed for the new method of getting the cert directly via http challenge over v6.
15 lines
280 B
Plaintext
15 lines
280 B
Plaintext
server {
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
server_name _;
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
autoindex on;
|
|
root /webroot-for-acme-challenge;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
}
|