mirror of
https://github.com/cupcakearmy/old.nicco.io.git
synced 2024-11-01 00:24:16 +01:00
more secure headers
This commit is contained in:
parent
6db6fb8c9b
commit
cb59013ef8
@ -2,6 +2,12 @@ server {
|
|||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
|
|
||||||
|
add_header Content-Security-Policy "default-src 'self'; report-uri csp@nicco.io";
|
||||||
|
add_header X-Content-Type-Options "nosniff";
|
||||||
|
add_header X-Frame-Options "deny";
|
||||||
|
add_header Strict-Transport-Security "max-age=31536000";
|
||||||
|
add_header Referrer-Policy "origin";
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
try_files $uri /index.html;
|
try_files $uri /index.html;
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
"build:dev": "webpack -d",
|
"build:dev": "webpack -d",
|
||||||
"build:dev:watch": "webpack -d -w",
|
"build:dev:watch": "webpack -d -w",
|
||||||
"build:prod": "webpack -p",
|
"build:prod": "webpack -p",
|
||||||
|
"build:prod:watch": "webpack -p -w",
|
||||||
"dev": "webpack-dev-server -d"
|
"dev": "webpack-dev-server -d"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
Loading…
Reference in New Issue
Block a user