Fix some issues:

- "main_name" is name/name[0] not filename
- improve some tests
- better proxy protocol handling (not necessary to declare ports twice)
This commit is contained in:
Emilien Mantel
2019-12-30 17:28:34 +01:00
parent 4a2478a4fb
commit 9b286f9b96
2 changed files with 31 additions and 14 deletions

View File

@@ -147,7 +147,7 @@
- ' DZ no;'
- ' TN no;'
- '}'
nginx_default_site: 'first-test'
nginx_default_site: 'test.local'
nginx_default_site_ssl: 'test-ssl-predeployed.local'
nginx_sites:
- name:
@@ -156,7 +156,7 @@
- 'test2-alias.local'
template: '_base'
filename : 'first-test'
override_try_files: '$uri $uri /index.htm /index.html'
override_try_files: '$uri/ $uri =404'
headers:
'X-Frame-Options': 'deny always'
'X-ansible-default': '1'
@@ -264,8 +264,6 @@
- 'www.test-ssl-redirect-many2.local'
- name: 'test-ssl-proxy-protocol.local'
proto: ['http', 'https']
listen: [80, 20080]
listen_ssl: [443, 20443]
http_proxy_protocol_port: [20080]
https_proxy_protocol_port: [20443]
template: '_base'