From e15cbdf21822eaba3a5a8b904015f3f4ba5c41c5 Mon Sep 17 00:00:00 2001 From: Arnaud Fornerot Date: Mon, 6 Dec 2021 16:12:51 +0100 Subject: [PATCH] configuration reverse proxy wss --- dicos/90_ninesurvey.xml | 10 +++++++++- tmpl/ninesurvey-nginx.conf | 6 ++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tmpl/ninesurvey-nginx.conf diff --git a/dicos/90_ninesurvey.xml b/dicos/90_ninesurvey.xml index 65bd03d..9f0835b 100644 --- a/dicos/90_ninesurvey.xml +++ b/dicos/90_ninesurvey.xml @@ -2,6 +2,7 @@ + @@ -22,7 +23,7 @@ - + oui @@ -76,9 +77,15 @@ non ninesurvey + ninesurvey_nginx ninesurvey + + + non + ninesurvey_nginx + @@ -108,6 +115,7 @@ ninesurvey_dbpass ninesurvey + ninesurvey_nginx ninesurvey diff --git a/tmpl/ninesurvey-nginx.conf b/tmpl/ninesurvey-nginx.conf new file mode 100644 index 0000000..b98991e --- /dev/null +++ b/tmpl/ninesurvey-nginx.conf @@ -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"; + } \ No newline at end of file