ansible-hessnet/roles/nginx_server/templates/nginx-http.j2
2020-04-21 08:21:08 +02:00

15 lines
324 B
Django/Jinja

# HTTP for LetsEncrypt
server {
listen [::]:80 default_server;
server_name {{ domain_name }};
location /.well-known/acme-challenge {
root /usr/share/nginx/letsencrypt;
try_files $uri $uri/ =404;
}
location / {
rewrite ^ https://{{ domain_name }}$request_uri? permanent;
}
}