add inital implementation for a websocket, disabled by default for now
This commit is contained in:
parent
7aa609c246
commit
e7f83f674e
15 changed files with 191 additions and 2 deletions
|
|
@ -34,6 +34,19 @@ server {
|
|||
root /srv/pandora;
|
||||
}
|
||||
|
||||
location /api/ws/ {
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_redirect off;
|
||||
proxy_read_timeout 999999999;
|
||||
if (!-f $request_filename) {
|
||||
proxy_pass http://127.0.0.1:2622;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $remote_addr;
|
||||
proxy_set_header X-Forwarded-Proto http;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue