2023-04-02 21:51:06 -04:00
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
|
2023-04-04 01:14:07 -04:00
|
|
|
location /api {
|
|
|
|
proxy_pass http://friendsserver:4000;
|
|
|
|
|
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host;
|
2023-04-02 21:51:06 -04:00
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
|
|
|
}
|
|
|
|
|
2023-04-04 01:14:07 -04:00
|
|
|
location /socket.io {
|
2023-04-02 21:51:06 -04:00
|
|
|
proxy_pass http://friendsserver:4000;
|
|
|
|
|
2023-04-04 01:14:07 -04:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host;
|
|
|
|
|
2023-04-02 21:51:06 -04:00
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2023-04-04 01:14:07 -04:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_pass http://friendsclient:3000;
|
|
|
|
|
2023-04-02 21:51:06 -04:00
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
|
|
proxy_set_header Host $host;
|
2023-04-04 01:14:07 -04:00
|
|
|
|
|
|
|
proxy_http_version 1.1;
|
|
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
|
|
proxy_set_header Connection "upgrade";
|
2023-04-02 21:51:06 -04:00
|
|
|
}
|
|
|
|
}
|