Botanica/apps/web/nginx.conf

16 lines
463 B
Nginx Configuration File

server {
listen 8080;
server_name _;
root /usr/share/nginx/html;
index index.html;
server_tokens off;
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy same-origin always;
location = /health { proxy_pass http://api:3000/health; }
location /api/ {
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto;
proxy_pass http://api:3000;
}
location / { try_files $uri $uri/ /index.html; }
}