From 7959754767ef77c78b071985c488cf6baedde6e5 Mon Sep 17 00:00:00 2001 From: Kayou Date: Tue, 16 Jul 2024 15:54:01 +0200 Subject: [PATCH] update nginx conf, remove websocket port --- conf/nginx.conf | 17 ++++------------- manifest.toml | 1 - 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/conf/nginx.conf b/conf/nginx.conf index b3a299b..f1d6a1a 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -7,22 +7,13 @@ location __PATH__/ { # Common parameter to increase upload size limit in conjunction with dedicated php-fpm file client_max_body_size 100M; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection $connection_upgrade; + proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_pass http://127.0.0.1:__PORT_ROCKET__; } - -location __INSTALL_DIR__/notifications/hub { - proxy_set_header Host $host; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "upgrade"; - proxy_pass http://127.0.0.1:__PORT_WEBSOCKET__; -} - -location __INSTALL_DIR__/notifications/hub/negotiate { - proxy_pass http://127.0.0.1:__PORT_ROCKET__; -} \ No newline at end of file diff --git a/manifest.toml b/manifest.toml index caa6e9e..1b33cac 100644 --- a/manifest.toml +++ b/manifest.toml @@ -56,7 +56,6 @@ ram.runtime = "50M" [resources.data_dir] [resources.ports] - websocket.default = 3012 rocket.default = 8095 [resources.permissions]