This repository has been archived on 2025-02-12. You can view files and clone it, but cannot push or open issues or pull requests.
ff-admin-aio/nginx.conf
2025-01-26 10:54:51 +01:00

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;
}
}
}