mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-27 04:25:02 +01:00
17 lines
272 B
Plaintext
17 lines
272 B
Plaintext
|
server
|
||
|
{
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
location /
|
||
|
{
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|
||
|
#letsencrypt
|
||
|
location ^~ /.well-known/acme-challenge/ {
|
||
|
allow all;
|
||
|
root /var/lib/letsencrypt/;
|
||
|
default_type "text/plain";
|
||
|
try_files $uri =404;
|
||
|
}
|
||
|
}
|