fix URLs
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
VITE_API_URL=http://localhost:3000
|
||||
VITE_AUTHENTIK_URL=https://authentik.yourdomain.com
|
||||
VITE_AUTHENTIK_URL=https://auth.firesuite.feuerwehr-rems.at
|
||||
VITE_CLIENT_ID=your_client_id_here
|
||||
|
||||
@@ -65,6 +65,16 @@ http {
|
||||
add_header Content-Type text/plain;
|
||||
}
|
||||
|
||||
# Proxy API requests to backend
|
||||
location /api/ {
|
||||
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;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
}
|
||||
|
||||
# Cache static assets
|
||||
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ {
|
||||
expires 1y;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
export const config = {
|
||||
apiUrl: import.meta.env.VITE_API_URL || 'http://localhost:3000',
|
||||
authentikUrl: import.meta.env.VITE_AUTHENTIK_URL || 'https://authentik.yourdomain.com',
|
||||
authentikUrl: import.meta.env.VITE_AUTHENTIK_URL || 'https://auth.firesuite.feuerwehr-rems.at',
|
||||
clientId: import.meta.env.VITE_CLIENT_ID || 'your_client_id_here',
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user