18 lines
348 B
Plaintext
18 lines
348 B
Plaintext
server{
|
|
listen 80 default_server;
|
|
listen [::]:80 default_server;
|
|
location '/.well-known/acme-challenge' {
|
|
root /var/www/letsencrypt;
|
|
default_type "text/plain";
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
location / {
|
|
return 301 https://$host$request_uri;
|
|
}
|
|
|
|
location = /basic_status {
|
|
stub_status;
|
|
}
|
|
}
|