upstream back {
server 127.0.0.1:3000;
}
upstream front {
server localhost:5173;
}
server {
listen 80;
listen [::]:80;
server_name localhost;
client_max_body_size 50M;
location / {
proxy_pass http://front;
}
location /repos {
proxy_pass http://front;
}
location /\w/new {
proxy_pass http://front;
}
location /api/set {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /api/status {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /redirect {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /callback {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
location /api/ {
proxy_pass http://back;
proxy_redirect off;
proxy_read_timeout 300s;
}
}