Elffuss BraidHub

kikocis/dataspace-portal public

main · 582 BRawPermalink
1access_log off;
2error_log /dev/stderr;
3disable_symlinks if_not_owner;
4
5server {
6 listen ${NGINX_BIND}:${NGINX_PORT};
7 server_name localhost;
8
9 root /usr/share/nginx/html;
10
11 location / {
12 index do-not-use-me.html;
13 try_files $uri @index;
14 }
15
16 location @index {
17 add_header Cache-Control no-cache;
18 expires 0;
19 index index.html;
20 try_files /index.html =404;
21 }
22
23 location ~* ^/assets/config/app-configuration\.json$ {
24 add_header Cache-Control "no-store, no-cache, must-revalidate";
25 expires -1;
26 }
27}