27 lines
898 B
Nginx Configuration File
27 lines
898 B
Nginx Configuration File
events { }
|
|
|
|
http {
|
|
server {
|
|
listen 80;
|
|
|
|
# Weiterleitung von /api/* an das Backend
|
|
location /api/ {
|
|
proxy_pass http://ff_admin_aio_backend:5000/; # Verweise auf den internen Backend-Service
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
|
|
# Weiterleitung aller anderen Anfragen an das Frontend
|
|
location / {
|
|
proxy_pass http://ff_admin_aio_frontend:80/; # Verweise auf den internen Frontend-Service
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade;
|
|
proxy_set_header Connection 'upgrade';
|
|
proxy_set_header Host $host;
|
|
proxy_cache_bypass $http_upgrade;
|
|
}
|
|
}
|
|
}
|