2
0
Fork 0

caddy: add snippets file

main
Ducky 2023-08-12 22:03:33 +01:00
parent 6e78c688a2
commit 4d41f1e92f
2 changed files with 25 additions and 0 deletions

5
.gitignore vendored
View File

@ -10,6 +10,11 @@
/etc/* /etc/*
!/etc/zio/ !/etc/zio/
# /etc/caddy/
!/etc/caddy/
/etc/caddy/*
!/etc/caddy/snippets.caddyfile
# /etc/skel/ # /etc/skel/
!/etc/skel/ !/etc/skel/
/etc/skel/* /etc/skel/*

View File

@ -0,0 +1,20 @@
(cors) {
@origin header Origin {args.0}
header @origin Access-Control-Allow-Origin "{args.0}"
header @origin Access-Control-Request-Method GET
}
(nobots) {
respond /robots.txt 200 {
body "User-agent: *
Disallow: /"
close
}
}
(tls-cf) {
tls {
dns cloudflare {args.0}
resolvers 1.1.1.1
}
}