Skip to content

Commit

Permalink
Merge pull request #471 from bcgov/bug/nginx-routing
Browse files Browse the repository at this point in the history
fixing the nginx routing
  • Loading branch information
TayGov authored Jun 3, 2022
2 parents ed84f93 + 72b316e commit 4c8d291
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/ecrc-frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 4c8d291

Please sign in to comment.