configuration reverse proxy wss
This commit is contained in:
parent
9959c36717
commit
81acd8f27e
@ -2,6 +2,7 @@
|
||||
<creole>
|
||||
<files>
|
||||
<file filelist='ninegitea' name='/etc/eole/eole-db.d/ninegitea-db.yml' rm='True' mkdir='True'/>
|
||||
<file filelist='ninegitea_nginx' name='/etc/nginx/web.d/ninegitea.conf' source='ninegitea-nginx.conf' rm='True' mkdir='True' />
|
||||
</files>
|
||||
|
||||
<containers>
|
||||
@ -24,7 +25,7 @@
|
||||
<family name='ninegitea'>
|
||||
<variable name="ninegate_test_ninegate" type="oui/non" hidden='True' exists='False'><value>non</value></variable>
|
||||
|
||||
<variable name='activer_ninegitea' type='oui/non' description='Activer ninegitea'>
|
||||
<variable name='activer_ninegitea' type='oui/non' description='Activer Ninegitea'>
|
||||
<value>oui</value>
|
||||
</variable>
|
||||
|
||||
@ -70,9 +71,15 @@
|
||||
<condition name='hidden_if_in' source='activer_apache'>
|
||||
<param>non</param>
|
||||
<target type='filelist'>ninegitea</target>
|
||||
<target type='filelist'>ninegitea_nginx</target>
|
||||
<target type='servicelist'>ninegitea</target>
|
||||
</condition>
|
||||
|
||||
<!-- AFFICHAGE EN FONCTION DE REVERSE PROXY -->
|
||||
<condition name='hidden_if_in' source='activer_revprox'>
|
||||
<param>non</param>
|
||||
<target type='filelist'>ninegitea_nginx</target>
|
||||
</condition>
|
||||
|
||||
<!-- AFFICHAGE EN FONCTION DE ninegitea -->
|
||||
<condition name='hidden_if_in' source='activer_ninegitea'>
|
||||
@ -102,6 +109,7 @@
|
||||
<target type='variable'>ninegitea_dbpass</target>
|
||||
|
||||
<target type='filelist'>ninegitea</target>
|
||||
<target type='filelist'>ninegitea_nginx</target>
|
||||
<target type='servicelist'>ninegitea</target>
|
||||
</condition>
|
||||
|
||||
|
6
tmpl/ninegitea-nginx.conf
Normal file
6
tmpl/ninegitea-nginx.conf
Normal file
@ -0,0 +1,6 @@
|
||||
location /wssninegitea {
|
||||
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