Skip to content

Commit

Permalink
fixed nginx config files for use with doko3000.io websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Jan 2, 2021
1 parent 472b9a5 commit b024d30
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docker/nginx-https-letsencrypt.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ server {
proxy_pass http://doko3000:5000;
}

location /socket.io {
location /doko3000.io {
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://doko3000:5000/socket.io;
proxy_pass http://doko3000:5000/doko3000.io;
}

# static files might be delivered faster by nginx
Expand Down
4 changes: 2 additions & 2 deletions docker/nginx-https.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ server {
proxy_pass http://doko3000:5000;
}

location /socket.io {
location /doko3000.io {
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://doko3000:5000/socket.io;
proxy_pass http://doko3000:5000/doko3000.io;
}

# static files might be delivered faster by nginx
Expand Down
4 changes: 2 additions & 2 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ server {
proxy_pass http://doko3000:5000;
}

location /socket.io {
location /doko3000.io {
proxy_http_version 1.1;
proxy_buffering off;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_pass http://doko3000:5000/socket.io;
proxy_pass http://doko3000:5000/doko3000.io;
}

# static files might be delivered faster by nginx
Expand Down

0 comments on commit b024d30

Please sign in to comment.