diff --git a/src/ecrc-frontend/nginx.conf b/src/ecrc-frontend/nginx.conf index ebb13fde..b34c908a 100644 --- a/src/ecrc-frontend/nginx.conf +++ b/src/ecrc-frontend/nginx.conf @@ -33,9 +33,17 @@ http { listen 8080; server_name localhost; - location / { - root /usr/share/nginx/html; - index index.html index.htm; + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-Content-Type-Options "nosniff"; + add_header X-XSS-Protection "1; mode=block"; + add_header Cache-Control "no-cache, no-store, must-revalidate, private"; + add_header Pragma "no-cache"; + + location /criminalrecordcheck { + root /usr/share/nginx/html/; + try_files $uri /criminalrecordcheck/index.html; } + + error_page 403 /404.html; } } \ No newline at end of file