cos tam dziala

This commit is contained in:
Patryk Koreń
2026-07-06 23:17:37 +02:00
parent e7ec832f5b
commit ff707dd762
26 changed files with 494 additions and 60 deletions

29
nginx.conf Normal file
View File

@@ -0,0 +1,29 @@
server {
listen 80;
# =========================
# FRONTEND (Vite)
# =========================
location / {
proxy_pass http://frontend:5173;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
# =========================
# BACKEND (Bun API)
# =========================
location /api/ {
rewrite ^/api/(.*)$ /$1 break;
proxy_pass http://backend:3000;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}