Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

socket.io prefix is not required in nginx config #1434

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions packaging/deb/extras/digits.nginx-site
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
# DIGITS NGINX site

upstream digits {
server localhost:34448;
}

server {
listen 80; #AUTOCONFIG port (DO NOT DELETE THIS LINE)

# Main server
location / {
client_max_body_size 500M; # Increase this if you receive error 413

proxy_pass http://127.0.0.1:34448;
proxy_pass http://digits;
proxy_redirect off;

proxy_set_header Host $host:$server_port;
Expand All @@ -20,7 +24,7 @@ server {

# Socketio
location /socket.io {
proxy_pass http://127.0.0.1:34448/socket.io;
proxy_pass http://digits;
proxy_redirect off;
proxy_buffering off;

Expand Down