diff --git a/dicos/90_nineschool.xml b/dicos/90_nineschool.xml index 219814c..6c4e0a3 100644 --- a/dicos/90_nineschool.xml +++ b/dicos/90_nineschool.xml @@ -2,6 +2,7 @@ + @@ -22,7 +23,7 @@ - + oui @@ -76,9 +77,21 @@ non nineschool + nineschool_nginx nineschool + + + non + nineschool_nginx + + + + + oui + nineboard_nginx + @@ -108,6 +121,7 @@ nineschool_dbpass nineschool + nineschool_nginx nineschool diff --git a/tmpl/nineschool-apache.conf b/tmpl/nineschool-apache.conf index 3c05d8a..6bb0a42 100644 --- a/tmpl/nineschool-apache.conf +++ b/tmpl/nineschool-apache.conf @@ -6,4 +6,16 @@ Alias /nineschool /var/www/html/nineschool/public Allow from All Options Indexes FollowSymLinks MultiViews php_admin_flag allow_url_fopen On - \ No newline at end of file + + +# Pour activer un serveur websocket sur l'application +# Attention choisir un port libre dans +# 5546 = nineskeletor +# 5556 = ninegate +# 5566 = nineboard +# 5576 = nineschool +# 5586 = ninesurvey +# 5587 = ninetraining +# 5596 = janus +ProxyPass "/wssnineschool" "ws://0.0.0.0:5576" retry=0 keepalive=On +ProxyPassReverse "/wssnineschool" "ws://0.0.0.0:5576" retry=0 \ No newline at end of file diff --git a/tmpl/nineschool-env.local b/tmpl/nineschool-env.local index dab03a1..479fa89 100644 --- a/tmpl/nineschool-env.local +++ b/tmpl/nineschool-env.local @@ -1,6 +1,7 @@ # SYMFONY APP_ENV=PROD -APP_SECRET=%%pwdreader("","/var/www/html/nineschool/.key") +%set keyfile = %%getVar('container_path_web','') + '/var/www/html/nineschool/.key' +APP_SECRET=%%pwdreader("",%%keyfile) #TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16 #TRUSTED_HOSTS='^(localhost|example\.com)$' diff --git a/tmpl/nineschool-nginx.conf b/tmpl/nineschool-nginx.conf new file mode 100644 index 0000000..4860252 --- /dev/null +++ b/tmpl/nineschool-nginx.conf @@ -0,0 +1,6 @@ + location /wssnineschool { + proxy_pass https://%%container_ip_web; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "upgrade"; + } \ No newline at end of file