caddy: add snippets file
parent
6e78c688a2
commit
4d41f1e92f
|
@ -10,6 +10,11 @@
|
|||
/etc/*
|
||||
!/etc/zio/
|
||||
|
||||
# /etc/caddy/
|
||||
!/etc/caddy/
|
||||
/etc/caddy/*
|
||||
!/etc/caddy/snippets.caddyfile
|
||||
|
||||
# /etc/skel/
|
||||
!/etc/skel/
|
||||
/etc/skel/*
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue