aboutsummaryrefslogtreecommitdiff
path: root/nginx.conf
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-02-18 11:43:05 +0100
committerlonkaars <l.leblansch@gmail.com>2021-02-18 11:43:05 +0100
commit5f7ba73f128eddb5c3e4e11dd0025aa1c8d2f385 (patch)
treedd47fb691999da383514c7cbbe484bd2470db88b /nginx.conf
parent27c1340dbbf18638f680be8557a531180abfd53a (diff)
more progress? (broken)
Diffstat (limited to 'nginx.conf')
-rw-r--r--nginx.conf18
1 files changed, 12 insertions, 6 deletions
diff --git a/nginx.conf b/nginx.conf
index 403bfe8..f94cba2 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -5,24 +5,30 @@ events {}
http {
server {
- listen 2080 default_server;
+ listen 2080 default;
server_name localhost;
location / {
- proxy_pass http://localhost:3000;
+ proxy_pass http://127.0.0.1:3000;
}
location /api {
- proxy_pass http://localhost:5000/;
+ proxy_pass http://127.0.0.1:5000/;
}
location /socket.io {
- # include proxy_params;
- proxy_http_version 1.1;
+ proxy_pass http://127.0.0.1:5000/socket.io;
+
+ proxy_redirect off;
proxy_buffering off;
+
+ proxy_set_header Host $host;
+ proxy_set_header X-Real-IP $remote_addr;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+
+ proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
- proxy_pass http://localhost:5000/socket.io;
}
}
}