Skip to content

Commit

Permalink
update security headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroldwong committed Apr 3, 2024
1 parent b9cf231 commit c8ccaf2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ http {

#gzip on;

server_tokens off;

server {
listen 80;
server_name localhost;
Expand All @@ -36,6 +38,11 @@ http {
root /usr/share/nginx/html;
index index.html index.htm;

add_header Cache-Control "no-cache";
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com";
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
add_header X-Content-Type-Options "nosniff";

rewrite ^/admin(.*)(?<!\.html)$ /admin.html last;
rewrite ^/workgroups(.*)(?<!\.html)$ /workgroup.html last;
rewrite ^/summary(.*)(?<!\.html)$ /summary.html last;
Expand Down
4 changes: 2 additions & 2 deletions vendor/css/neon.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**** Isotope Filtering ****/
@import url("http://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic");
@import url("http://fonts.googleapis.com/css?family=Montserrat:400,700");
@import url("https://fonts.googleapis.com/css?family=Noto+Sans:400,700,400italic");
@import url("https://fonts.googleapis.com/css?family=Montserrat:400,700");
.isotope-item {
z-index: 2;
}
Expand Down

0 comments on commit c8ccaf2

Please sign in to comment.