Implemented SSL_ENABLED

This commit is contained in:
2025-12-04 10:48:45 +01:00
parent a731b5cd4b
commit fc0bdbea9a
6 changed files with 11 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
{% if SSL_ENABLED | bool %}
listen {{ WEB_PORT }} ssl http2;
listen [::]:{{ WEB_PORT }} ssl http2;
@@ -12,4 +13,8 @@ ssl_session_tickets on;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
ssl_stapling_verify on;
{% include 'roles/sys-svc-letsencrypt/templates/ssl_credentials.j2' %}
{% include 'roles/sys-svc-letsencrypt/templates/ssl_credentials.j2' %}
{% else %}
listen {{ WEB_PORT }};
listen [::]:{{ WEB_PORT }};
{% endif %}