mirror of
https://github.com/ets-cfuhrman-pfe/EvalueTonSavoir.git
synced 2025-08-11 21:23:54 -04:00
26 lines
395 B
Text
26 lines
395 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;
|
|
}
|
|
|
|
location / {
|
|
proxy_pass http://frontend;
|
|
}
|
|
|
|
}
|