aboutsummaryrefslogtreecommitdiff
path: root/template/nginx/websocket.conf
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-11-20 16:56:53 +0800
committercrupest <crupest@outlook.com>2022-11-20 16:56:53 +0800
commitb40224b88c2f8bfc4990e2bb12ecb7916eb8a35c (patch)
treea3ade43e6d89f001b055c9277b70a3917023d92e /template/nginx/websocket.conf
parent5706b4c77e4eb3d6025b771801711ff49ea299e8 (diff)
downloadcrupest-b40224b88c2f8bfc4990e2bb12ecb7916eb8a35c.tar.gz
crupest-b40224b88c2f8bfc4990e2bb12ecb7916eb8a35c.tar.bz2
crupest-b40224b88c2f8bfc4990e2bb12ecb7916eb8a35c.zip
Try to fix nginx and timeline.
Diffstat (limited to 'template/nginx/websocket.conf')
-rw-r--r--template/nginx/websocket.conf4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/nginx/websocket.conf b/template/nginx/websocket.conf
new file mode 100644
index 0000000..ac56b69
--- /dev/null
+++ b/template/nginx/websocket.conf
@@ -0,0 +1,4 @@
+map $http_connection $connection_upgrade {
+ "~*Upgrade" $http_connection;
+ default keep-alive;
+}