Improve SSL handling #25

Merged
lukas merged 8 commits from feat/better-ssl into main 2021-05-14 21:58:12 +00:00
2 changed files with 5 additions and 2 deletions
Showing only changes of commit 979027e192 - Show all commits

View File

@ -27,7 +27,8 @@ http {
#gzip on; #gzip on;
resolver 127.0.0.11 valid=30; resolver 127.0.0.11 valid=30;
ssl_certificate /etc/nginx/{{ base_domain }}.crt; {% if self_signed == true %}
ssl_certificate_key /etc/nginx/{{ base_domain }}.key; include /etc/nginx/snippets/self-signed.conf;
{% endif %}
include /etc/nginx/conf.d/*.conf; include /etc/nginx/conf.d/*.conf;
} }

View File

@ -0,0 +1,2 @@
ssl_certificate /etc/ssl/{{ base_domain }}.crt;
ssl_certificate_key /etc/ssl/{{ base_domain }}.key;