This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
bee-frontend-ARCHIVED/docker/nginx/config/nginx.conf
2024-08-24 22:27:08 +00:00

27 lines
625 B
Nginx Configuration File

upstream host-backend-nginx {
server template-backend-nginx:80;
}
server{
listen 80 default_server;
client_max_body_size 10000M;
root /var/www/html/dist;
index index.html;
location / {
try_files $uri$args $uri$args/ /index.html;
}
location /api/ {
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_set_header Host $http_host;
proxy_set_header X-NginX-Proxy true;
proxy_pass http://host-backend-nginx;
}
}