registration fix

This commit is contained in:
2026-04-25 10:49:38 +02:00
parent 02386b0752
commit 5d1e82761a
2 changed files with 15 additions and 1 deletions
+13
View File
@@ -9,6 +9,18 @@ server {
gzip_proxied any;
gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml+rss application/javascript application/json;
location /api/ {
proxy_pass http://la2_portal_api:3001;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
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;
proxy_cache_bypass $http_upgrade;
}
location / {
root /usr/share/nginx/html;
try_files $uri $uri/ /index.html;
@@ -18,3 +30,4 @@ server {
add_header X-Content-Type-Options "nosniff" always;
add_header X-XSS-Protection "1; mode=block" always;
}
+2 -1
View File
@@ -1,7 +1,7 @@
import axios from 'axios';
const api = axios.create({
baseURL: import.meta.env.VITE_API_URL || 'api',
baseURL: import.meta.env.VITE_API_URL ? `${import.meta.env.VITE_API_URL}/api` : '/api',
headers: {
'Content-Type': 'application/json'
}
@@ -26,3 +26,4 @@ api.interceptors.response.use(
);
export default api;