soporte argumentos para listen

This commit is contained in:
Mauro Torrez
2019-03-29 01:01:45 -03:00
parent e97e40e318
commit 999e91e220
3 changed files with 21 additions and 2 deletions

View File

@@ -44,7 +44,7 @@
- copy:
content: |
server {
listen 80;
listen 80 {{ nginx_http_listen_args | join (' ') }};
server_name _;
root /usr/share/nginx/html;
include /etc/nginx/conf.d/common/*.conf;
@@ -56,7 +56,7 @@
include /etc/nginx/conf.d/locations-http/*.conf;
}
server {
listen 443 ssl;
listen 443 ssl {{ nginx_https_listen_args | join (' ') }};
server_name _;
root /usr/share/nginx/html;
include /etc/nginx/conf.d/common/*.conf;