1
0
Fork 0
mirror of https://github.com/DO1JLR/ansible_role_nginx.git synced 2024-08-16 16:19:48 +02:00
ansible_role_nginx/files/nginx/sites-available/default_tls.j2

17 lines
534 B
Text
Raw Normal View History

2020-11-02 04:51:35 +01:00
server {
listen 443 ssl http2 default_server;
listen [::]:443 ssl http2 default_server;
include snippets/tls_parameters.snippet.conf;
2020-11-02 04:51:35 +01:00
ssl_certificate /var/lib/acme/live/{{ inventory_hostname }}/fullchain;
ssl_certificate_key /var/lib/acme/live/{{ inventory_hostname }}/privkey;
access_log /var/log/nginx/log_{{ inventory_hostname }}.access.log;
error_log /var/log/nginx/log_{{ inventory_hostname }}.error.log;
location ^~ / {
return 403;
}
}