add variable reversepoxy cloud commander

This commit is contained in:
vincent 2019-10-06 20:19:51 +02:00
parent eda9e9c2d1
commit 0936e960f6

View File

@ -92,6 +92,7 @@ certbot_certs:
- git.{{domain.name}}
- supysonic.{{domain.name}}
- syno.{{domain.name}}
- file.{{domain.name}}
nginx_vhosts:
@ -183,6 +184,22 @@ nginx_vhosts:
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
proxy_pass http://localhost:8001;
}
- listen: "443 ssl"
server_name: "file.{{domain.name}}"
filename: "cloudcommander.conf"
state: "present"
template: "{{ nginx_vhost_template }}"
extra_parameters: |
include /etc/nginx/conf.d/{{domain.name}}.ssl;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host:$server_port;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
proxy_pass http://localhost:8000;
}
nginx_realIP_Proxy: 192.168.1.10/24