Skip to content

Commit

Permalink
floxy: enable WebSocket support in reverse proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
alerei committed Oct 25, 2024
1 parent 9aa172b commit 78e7a69
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flecs/modules/floxy/src/impl/floxy_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ location )";
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
#proxy_set_header Connection $connection_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
Expand Down Expand Up @@ -208,6 +208,7 @@ server {
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-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
Expand Down
5 changes: 5 additions & 0 deletions pkg/fs/etc/nginx/floxy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ http {

include /var/lib/flecs/floxy/servers/*.conf;

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

server {
listen 8951;
server_name flecs-floxy;
Expand Down

0 comments on commit 78e7a69

Please # to comment.