Skip to content

Commit

Permalink
Start splitting Caddyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
vcsjones authored Dec 4, 2024
1 parent b5f767f commit d7ee0a0
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions _server/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
}

import caddy.d/*

*.pds.vcsjones.dev, pds.vcsjones.dev {
tls {
on_demand
Expand Down Expand Up @@ -48,27 +50,6 @@ www.vcsjones.dev, vcsjones.com, www.vcsjones.com {
redir https://vcsjones.dev{uri}
}

asn.vcsjones.dev {
import tls
import tls-headers
encode gzip

header * {
X-XSS-Protection "0"
Referrer-Policy no-referrer
X-Frame-Options DENY
X-Content-Type-Options nosniff
Cross-Origin-Resource-Policy "same-origin"
Cross-Origin-Embedder-Policy "require-corp"
Cross-Origin-Opener-Policy "same-origin"
Cache-Control "public, max-age=3600"
Content-Security-Policy "default-src 'none'; connect-src 'self'; style-src 'self'; script-src 'self' 'wasm-unsafe-eval'; frame-ancestors 'none'; form-action 'none'; block-all-mixed-content; base-uri 'none';"
}

root * /var/wwwroot/asn.vcsjones.dev
file_server
}

vcsjones.dev {
import tls
import tls-headers
Expand Down

0 comments on commit d7ee0a0

Please sign in to comment.