configuration reverse proxy wss
This commit is contained in:
parent
2167813aee
commit
e15cbdf218
@ -2,6 +2,7 @@
|
||||
<creole>
|
||||
<files>
|
||||
<file filelist='ninesurvey' name='/etc/eole/eole-db.d/ninesurvey-db.yml' rm='True' mkdir='True'/>
|
||||
<file filelist='ninesurvey_nginx' name='/etc/nginx/web.d/ninesurvey.conf' source='ninesurvey-nginx.conf' rm='True' mkdir='True' />
|
||||
</files>
|
||||
|
||||
<containers>
|
||||
@ -22,7 +23,7 @@
|
||||
<family name='ninesurvey' icon='ticket'>
|
||||
<variable name="ninegate_test_ninegate" type="oui/non" hidden='True' exists='False'><value>non</value></variable>
|
||||
|
||||
<variable name='activer_ninesurvey' type='oui/non' description='Activer ninesurvey'>
|
||||
<variable name='activer_ninesurvey' type='oui/non' description='Activer Ninesurvey'>
|
||||
<value>oui</value>
|
||||
</variable>
|
||||
|
||||
@ -76,9 +77,15 @@
|
||||
<condition name='hidden_if_in' source='activer_apache'>
|
||||
<param>non</param>
|
||||
<target type='filelist'>ninesurvey</target>
|
||||
<target type='filelist'>ninesurvey_nginx</target>
|
||||
<target type='servicelist'>ninesurvey</target>
|
||||
</condition>
|
||||
|
||||
<!-- AFFICHAGE EN FONCTION DE REVERSE PROXY -->
|
||||
<condition name='hidden_if_in' source='activer_revprox'>
|
||||
<param>non</param>
|
||||
<target type='filelist'>ninesurvey_nginx</target>
|
||||
</condition>
|
||||
|
||||
<!-- AFFICHAGE EN FONCTION DE ninesurvey -->
|
||||
<condition name='hidden_if_in' source='activer_ninesurvey'>
|
||||
@ -108,6 +115,7 @@
|
||||
<target type='variable'>ninesurvey_dbpass</target>
|
||||
|
||||
<target type='filelist'>ninesurvey</target>
|
||||
<target type='filelist'>ninesurvey_nginx</target>
|
||||
<target type='servicelist'>ninesurvey</target>
|
||||
</condition>
|
||||
|
||||
|
6
tmpl/ninesurvey-nginx.conf
Normal file
6
tmpl/ninesurvey-nginx.conf
Normal file
@ -0,0 +1,6 @@
|
||||
location /wssninesurvey {
|
||||
proxy_pass https://%%container_ip_web;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
Loading…
Reference in New Issue
Block a user