diff options
author | lonkaars <l.leblansch@gmail.com> | 2021-02-18 11:43:05 +0100 |
---|---|---|
committer | lonkaars <l.leblansch@gmail.com> | 2021-02-18 11:43:05 +0100 |
commit | 5f7ba73f128eddb5c3e4e11dd0025aa1c8d2f385 (patch) | |
tree | dd47fb691999da383514c7cbbe484bd2470db88b /nginx.conf | |
parent | 27c1340dbbf18638f680be8557a531180abfd53a (diff) |
more progress? (broken)
Diffstat (limited to 'nginx.conf')
-rw-r--r-- | nginx.conf | 18 |
1 files changed, 12 insertions, 6 deletions
@@ -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; } } } |