From 72b316eba985ddca5d9cb23ee50edf5192bd74af Mon Sep 17 00:00:00 2001 From: Gabriel Poleze Ferreira Date: Fri, 3 Jun 2022 10:55:17 -0700 Subject: [PATCH] fixing the nginx routing --- src/ecrc-frontend/nginx.conf | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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