summaryrefslogtreecommitdiff
path: root/caddy/Caddyfile
diff options
context:
space:
mode:
Diffstat (limited to 'caddy/Caddyfile')
-rw-r--r--caddy/Caddyfile32
1 files changed, 15 insertions, 17 deletions
diff --git a/caddy/Caddyfile b/caddy/Caddyfile
index d5624c5..90abecb 100644
--- a/caddy/Caddyfile
+++ b/caddy/Caddyfile
@@ -2,46 +2,45 @@
order forward_proxy before redir
}
-golive.yyamashita.com {
+(noindex) {
header Referrer-Policy "no-referrer"
header X-Robots-Tag "noindex, nofollow"
+}
+(crawler_bypass) {
@crawler_bypass header X-Crawler-Access "f9a3c1e847b2d056"
header @crawler_bypass -X-Robots-Tag
+}
+golive.yyamashita.com {
+ import noindex
+ import crawler_bypass
reverse_proxy tokyo-app:3000
}
whoisband.yyamashita.com {
- header Referrer-Policy "no-referrer"
- header X-Robots-Tag "noindex, nofollow"
-
- @crawler_bypass header X-Crawler-Access "f9a3c1e847b2d056"
- header @crawler_bypass -X-Robots-Tag
-
+ import noindex
+ import crawler_bypass
reverse_proxy whois-app:3000
}
+
code.yyamashita.com {
- header Referrer-Policy "no-referrer"
- header X-Robots-Tag "noindex, nofollow"
+ import noindex
reverse_proxy 172.19.0.1:8080
}
git.yyamashita.com {
- header Referrer-Policy "no-referrer"
- header X-Robots-Tag "noindex, nofollow"
+ import noindex
reverse_proxy cgit:80
}
hetzner-admin.yyamashita.com {
- header Referrer-Policy "no-referrer"
- header X-Robots-Tag "noindex, nofollow"
+ import noindex
reverse_proxy hetzner-admin:5000
}
blog.yyamashita.com {
- header Referrer-Policy "no-referrer"
- header X-Robots-Tag "noindex, nofollow"
+ import noindex
reverse_proxy microblog-app:3000
}
@@ -51,8 +50,7 @@ vpn.yyamashita.com {
tls {
key_type rsa4096
}
- header Referrer-Policy "no-referrer"
- header X-Robots-Tag "noindex, nofollow"
+ import noindex
route /ca.pem {
header Content-Type "application/x-pem-file"
header Content-Disposition "attachment; filename=\"vpn-ca.pem\""