1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 04:45:22 -04:00

firebase hosting config

This commit is contained in:
Jake Jarvis 2018-02-23 17:55:07 -05:00
parent 0782000454
commit 0b56eda8e0
3 changed files with 73 additions and 0 deletions

5
.firebaserc Normal file
View File

@ -0,0 +1,5 @@
{
"projects": {
"default": "jakejarvis-com"
}
}

11
.gitignore vendored Normal file
View File

@ -0,0 +1,11 @@
.vscode/
.npm
node_modules
lib
firebase-debug.log
npm-debug.log
package-lock.json
yarn.lock
.npmrc
.DS_Store

57
firebase.json Normal file
View File

@ -0,0 +1,57 @@
{
"hosting": {
"public": "public",
"rewrites": [ {
"source": "**",
"destination": "/index.html"
}],
"headers": [
{
"source": "**/*",
"headers": [{
"key": "X-Content-Type-Options",
"value": "nosniff"
}]
},
{
"source" : "**/",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=180"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Frame-Options",
"value": "DENY"
},
{
"key": "X-UA-Compatible",
"value": "ie=edge"
},
{
"key": "X-XSS-Protection",
"value": "1; mode=block"
}
]
},
{
"source" : "**/*.@(jpg|jpeg|gif|png|ico)",
"headers" : [{
"key" : "Cache-Control",
"value" : "max-age=604800"
}]
},
{
"source" : "**/*.@(css|js)",
"headers" : [{
"key" : "Cache-Control",
"value" : "max-age=86400"
}]
}
]
}
}