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

@@ -21,7 +21,7 @@ from odoo_api.client import OdooAPIClient
load_dotenv()
SECRET_KEY = os.getenv('SECRET_KEY')
ALGORITHM = os.getenv('ALGORITHM')
ACCESS_TOKEN_EXPIRE_MINUTES = os.getenv('ACCESS_TOKEN_EXPIRE_MINUTES')
ACCESS_TOKEN_EXPIRE_MINUTES = int(os.getenv('ACCESS_TOKEN_EXPIRE_MINUTES'))
ODDO_URL = os.getenv('ODDO_URL')
DB_NAME = os.getenv('DB_NAME')

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)