parastoo-dashboards/parastoo_dashboard/nginx.conf

24 lines
731 B
Nginx Configuration File

server {
listen 80;
server_name parastoo.zebellkhan.com;
root /usr/share/nginx/html;
index index.html;
charset utf-8;
gzip on;
gzip_types text/html text/css application/javascript application/json;
location /api/ {
proxy_pass http://parastoo-sync:8095;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 180s;
proxy_connect_timeout 20s;
}
location /health { proxy_pass http://parastoo-sync:8095/health; }
location / { try_files $uri $uri/ /index.html; }
location ~* \.(woff2|woff|ttf|js|css|json|png|jpg|gif|ico|svg)$ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}