mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-09 11:47:14 +02:00
Refactored server roles for better readability
This commit is contained in:
16
roles/sys-svc-letsencrypt/templates/letsencrypt.conf.j2
Normal file
16
roles/sys-svc-letsencrypt/templates/letsencrypt.conf.j2
Normal file
@@ -0,0 +1,16 @@
|
||||
server
|
||||
{
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
location /
|
||||
{
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
#letsencrypt
|
||||
location ^~ /.well-known/acme-challenge/ {
|
||||
allow all;
|
||||
root {{ LETSENCRYPT_WEBROOT_PATH }};
|
||||
default_type "text/plain";
|
||||
try_files $uri =404;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user