mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
31 lines
616 B
Text
31 lines
616 B
Text
upstream frontend {
|
|
server frontend:5173;
|
|
}
|
|
|
|
upstream backend {
|
|
server backend:3000;
|
|
}
|
|
|
|
server {
|
|
listen 80;
|
|
|
|
location /api {
|
|
rewrite /backend/(.*) /$1 break;
|
|
proxy_pass http://backend;
|
|
}
|
|
|
|
location /socket.io {
|
|
rewrite /backend/(.*) /$1 break;
|
|
proxy_pass http://backend;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection "Upgrade";
|
|
proxy_set_header Host $host;
|
|
proxy_hide_header 'Access-Control-Allow-Origin';
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://frontend;
|
|
}
|
|
|
|
}
|