c3lf-system-3/deploy/nginx-ws-proxy.conf
2024-04-25 23:54:06 +02:00

27 lines
No EOL
674 B
Text

http {
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream websocket {
server staging.c3lf.de:443;
}
server {
listen 8082;
access_log /home/jedi/Projects/c3lf-system-3/deploy/foo.log;
location / {
proxy_pass https://websocket;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_set_header Origin "https://staging.c3lf.de/";
proxy_set_header Host $host;
}
}
}
events {}
pid /home/jedi/Projects/c3lf-system-3/deploy/nginx.pid;