nginx_site: Add support for disabling plain text

This commit is contained in:
Timo Makinen 2024-05-10 15:14:53 +00:00
parent 42fddcc278
commit 2a750a57f3
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,2 @@
---
nginx_site_plaintext: true

View file

@ -48,6 +48,7 @@ server {
root /srv/web/{{ nginx_site_name }};
{% endif %}
}
{% if nginx_site_plaintext %}
server {
listen 80;
@ -64,3 +65,4 @@ server {
{% endif %}
}
}
{% endif %}