docker config

This commit is contained in:
2025-08-11 17:10:06 +02:00
parent 6a4cce9048
commit 38b53c80a5
6 changed files with 66 additions and 1 deletions

19
frontend/nginx.conf Normal file
View File

@@ -0,0 +1,19 @@
server {
listen 80;
# Serwowanie plików Vue
location /odoo/ {
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html;
}
# Proxy do backendu (niewidoczny z zewnątrz)
location /odoo/api/ {
proxy_pass http://backend:8000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}