server { listen 80; listen [::]:80; server_name dskb.jianhengyiliao.com; return 301 https://$host$request_uri; } server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name dskb.jianhengyiliao.com; ssl_certificate /etc/letsencrypt/live/dskb.jianhengyiliao.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/dskb.jianhengyiliao.com/privkey.pem; include /etc/letsencrypt/options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; root /opt/jianhen-voc/frontend/dist; index index.html; location = /dbadmin { return 301 /dbadmin/; } location /dbadmin/ { proxy_pass http://127.0.0.1:4040/dbadmin/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Proto https; proxy_buffering off; } location = /index.html { add_header Cache-Control "no-store"; try_files $uri =404; } location / { try_files $uri $uri/ /index.html; } location /api/ { proxy_pass http://127.0.0.1:3000/api/; proxy_http_version 1.1; proxy_set_header Host $host; 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 X-Request-Id $request_id; proxy_set_header X-External-Request 1; proxy_set_header If-None-Match ""; proxy_set_header If-Modified-Since ""; proxy_hide_header ETag; proxy_hide_header Last-Modified; add_header Cache-Control "no-store" always; proxy_buffering off; proxy_read_timeout 600s; } location /parse/ { proxy_pass http://127.0.0.1:3000/parse/; proxy_http_version 1.1; proxy_set_header Host $host; 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 If-None-Match ""; proxy_set_header If-Modified-Since ""; proxy_hide_header ETag; proxy_hide_header Last-Modified; add_header Cache-Control "no-store" always; } location = /health { proxy_pass http://127.0.0.1:3000/health; } location = /assets/runtime-config.json { add_header Cache-Control "no-store"; try_files $uri =404; } }