config repair

This commit is contained in:
2025-08-11 19:48:59 +02:00
parent 38b53c80a5
commit 5d0acb182f
2 changed files with 9 additions and 4 deletions

View File

@@ -1,11 +1,16 @@
server {
listen 80;
# Serwowanie plików Vue
# Przekieruj /odoo (bez slash) na /odoo/ (z slash)
location = /odoo {
return 301 /odoo/;
}
# Serwowanie plików Vue pod /odoo/
location /odoo/ {
root /usr/share/nginx/html;
alias /usr/share/nginx/html/;
index index.html;
try_files $uri $uri/ /index.html;
try_files $uri $uri/ /odoo/index.html;
}
# Proxy do backendu (niewidoczny z zewnątrz)