Deploy ..
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
-Date
|
||||
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains"
|
||||
Feature-Policy "geolocation none;midi none;notifications none;push none;sync-xhr none;microphone none;camera none;magnetometer none;gyroscope none;speaker self;vibrate none;fullscreen self;payment none;"
|
||||
Feature-Policy "geolocation none; midi none; notifications none; push none; sync-xhr none; microphone none; camera none; magnetometer none; gyroscope none; speaker self; vibrate none; fullscreen self; payment none"
|
||||
X-Content-Type-Options "nosniff"
|
||||
X-Frame-Options "DENY"
|
||||
X-XSS-Protection "1; mode=block"
|
||||
@@ -12,45 +12,56 @@
|
||||
}
|
||||
}
|
||||
|
||||
simplenotes.be {
|
||||
@static {
|
||||
path *.css *.js
|
||||
file
|
||||
(common) {
|
||||
@ignore {
|
||||
path *.php
|
||||
}
|
||||
respond @ignore "no" 404
|
||||
|
||||
encode gzip
|
||||
}
|
||||
|
||||
(nuxt) {
|
||||
@nuxt {
|
||||
path /_nuxt/*
|
||||
}
|
||||
|
||||
@fonts {
|
||||
path *.woff *.woff2
|
||||
file
|
||||
}
|
||||
header @nuxt Cache-Control "public, max-age=31536000" # 1 year
|
||||
}
|
||||
|
||||
simplenotes.be {
|
||||
import security
|
||||
import nuxt
|
||||
import common
|
||||
|
||||
@404 {
|
||||
expression {http.error.status_code} == 404
|
||||
}
|
||||
|
||||
route /* {
|
||||
file_server
|
||||
}
|
||||
|
||||
handle_errors {
|
||||
rewrite @404 /404.html
|
||||
file_server
|
||||
import security
|
||||
}
|
||||
|
||||
route /api/* {
|
||||
uri strip_prefix /api
|
||||
reverse_proxy http://api:8081
|
||||
route /* {
|
||||
file_server
|
||||
}
|
||||
|
||||
route /api/* {
|
||||
uri strip_prefix /api
|
||||
reverse_proxy http://localhost:8081
|
||||
}
|
||||
|
||||
header @static Cache-Control "public, max-age=31536000" # 1 year
|
||||
header @fonts Cache-Control "public, max-age=604800" # 7 days
|
||||
header Content-Security-Policy "default-src 'self' 'unsafe-inline';"
|
||||
|
||||
encode gzip
|
||||
root * /site
|
||||
log
|
||||
root * /var/www/simplenotes.be
|
||||
|
||||
log {
|
||||
output file /var/log/www/simplenotes.be.json
|
||||
format json
|
||||
}
|
||||
|
||||
import security
|
||||
}
|
||||
|
||||
www.simplenotes.be {
|
||||
@@ -58,9 +69,36 @@ www.simplenotes.be {
|
||||
}
|
||||
|
||||
docs.simplenotes.be {
|
||||
file_server
|
||||
root * /docs
|
||||
import security
|
||||
import common
|
||||
|
||||
file_server
|
||||
|
||||
root * /var/www/docs.simplenotes.be
|
||||
|
||||
log {
|
||||
output file /var/log/www/docs.simplenotes.be.json
|
||||
format json
|
||||
}
|
||||
|
||||
header Content-Security-Policy "default-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net;"
|
||||
}
|
||||
|
||||
portfolio.simplenotes.be {
|
||||
import security
|
||||
import common
|
||||
import nuxt
|
||||
|
||||
file_server
|
||||
root * /var/www/portfolio.simplenotes.be
|
||||
|
||||
log {
|
||||
output file /var/log/www/portfolio.simplenotes.be.json
|
||||
format json
|
||||
}
|
||||
|
||||
header @static Cache-Control "public, max-age=31536000" # 1 year
|
||||
|
||||
# header Content-Security-Policy "default-src 'self' 'unsafe-inline' https://cdn.jsdelivr.net;"
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user