ansible-hessnet/roles/nginx_server/templates/nginx-http.j2

15 lines
324 B
Plaintext
Raw Normal View History

2020-04-21 06:21:08 +00:00
# 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;
}
}