nginx_site: Add support for disabling plain text
This commit is contained in:
parent
42fddcc278
commit
2a750a57f3
2 changed files with 4 additions and 0 deletions
2
roles/nginx_site/defaults/main.yml
Normal file
2
roles/nginx_site/defaults/main.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
---
|
||||||
|
nginx_site_plaintext: true
|
|
@ -48,6 +48,7 @@ server {
|
||||||
root /srv/web/{{ nginx_site_name }};
|
root /srv/web/{{ nginx_site_name }};
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
|
{% if nginx_site_plaintext %}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
|
@ -64,3 +65,4 @@ server {
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue