June
70a27ec79c
The server being reachable over v6 is needed for the new method of getting the cert directly via http challenge over v6.
14 lines
280 B
Text
14 lines
280 B
Text
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;
|
|
}
|
|
}
|