27 lines
625 B
Nginx Configuration File
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;
|
|
}
|
|
} |