From 55e6c6d2150fca97272cff6e874a8e3d8b8cd000 Mon Sep 17 00:00:00 2001
From: Patrick Spek
Date: Tue, 10 May 2022 09:30:51 +0200
Subject: Try different setup for the goaccess websocket
---
playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil | 7 +++++++
1 file changed, 7 insertions(+)
(limited to 'playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil')
diff --git a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil
index f80c4b6..0551c3a 100644
--- a/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil
+++ b/playbooks.d/webserver-nginx/share/sites.d/https/nl.tyil
@@ -18,6 +18,13 @@ server {
try_files $1 =404;
}
+ location /goaccess-ws {
+ proxy_pass http://localhost:7890;
+ proxy_http_version 1.1;
+ proxy_set_header Upgrade $http_upgrade;
+ proxy_set_header Connection "Upgrade";
+ }
+
location / {
return 301 https://www.tyil.nl$request_uri;
}
--
cgit v1.1