32 lines
983 B
Plaintext
32 lines
983 B
Plaintext
|
|
# Temporary acceptance ports; change to 80 / 8182 only during the reviewed cutover.
|
||
|
|
server {
|
||
|
|
listen 28181;
|
||
|
|
server_name 192.168.28.10;
|
||
|
|
root /usr/share/nginx/html;
|
||
|
|
index index.html;
|
||
|
|
client_max_body_size 60m;
|
||
|
|
location / {
|
||
|
|
try_files $uri $uri/ /index.html;
|
||
|
|
add_header Cache-Control "no-store" always;
|
||
|
|
}
|
||
|
|
location ^~ /static/ {
|
||
|
|
try_files $uri =404;
|
||
|
|
add_header Cache-Control "public, max-age=31536000, immutable" always;
|
||
|
|
}
|
||
|
|
location /prod-api/ {
|
||
|
|
proxy_pass http://127.0.0.1:28183/;
|
||
|
|
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 Connection "";
|
||
|
|
proxy_connect_timeout 10s;
|
||
|
|
proxy_read_timeout 120s;
|
||
|
|
proxy_buffering off;
|
||
|
|
}
|
||
|
|
location ~ /\. {
|
||
|
|
deny all;
|
||
|
|
}
|
||
|
|
}
|