Files
collection-portal/nginx/nginx.conf
Herik Hiteshkumar Modi 9e2448ea44 Fix/cache burst (#153)
* TP-22534| build timestamp exposed through nginx

* TP-22534| build timestamp exposed through nginx

* TP-22534| build timestamp exposed through nginx

* TP-22534| build timestamp exposed through nginx

* TP-22534| build timestamp exposed through nginx

* TP-22534| build timestamp exposed through nginx

* TP-22534| build timestamp exposed through nginx

* TP-22534| build timestamp exposed through nginx

* TP-22534| polling utility for version check

* TP-22534| hardcoded /version instead getUrl

* TP-22534| debounce for confirmation popup

* TP-22534| logs to debug

* TP-22534| confirmation popup throttled to 1 minute

* TP-22534| confirmationCb instead of laert popup

* TP-22534| soft nudge instead of native confirm

* TP-22534| background changed

* TP-22534| depdendency issue fix
2023-03-29 16:10:42 +05:30

34 lines
672 B
Nginx Configuration File

server {
listen 8080;
client_max_body_size 100M;
gzip on;
gzip_comp_level 4;
gzip_types text/css application/javascript;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
location /version {
root /version;
index version.json;
try_files $uri $uri/ /version.json;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location /api {
proxy_set_header X-Forwarded-For $remote_addr;
set $upstream_endpoint NGINX_PROXY_BASE_URL;
proxy_pass $upstream_endpoint;
rewrite /api/(.*) /$1 break;
}
}