summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryyamashita <yyamashita@hetzner.yyamashita.com>2026-11-01 09:26:42 +0900
committeryyamashita <yyamashita@hetzner.yyamashita.com>2026-11-01 09:26:42 +0900
commit1ea99f191a8662e9aeb1c3e9a6fd0d6696f0338e (patch)
tree6377bc45a8eddf95d20ca8873f1303dc4e1ba4dd
parentc6903d50f8c68359732858a141e8fab12cde6636 (diff)
studio: /healthz を認証なしにして status から監視する
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
-rw-r--r--caddy/Caddyfile4
-rw-r--r--status/targets.txt2
2 files changed, 4 insertions, 2 deletions
diff --git a/caddy/Caddyfile b/caddy/Caddyfile
index bbdaf35..ab7d955 100644
--- a/caddy/Caddyfile
+++ b/caddy/Caddyfile
@@ -52,7 +52,9 @@ todo.yyamashita.com {
studio.yyamashita.com {
import noindex
# パスワードの平文はサーバーの /root/studio-basic-auth.txt(root のみ読める)
- basic_auth {
+ # /healthz は status の死活監視用に認証なしで通す
+ @protected not path /healthz
+ basic_auth @protected {
studio $2a$14$SIhdKTJ7lmZe/lYM2AP4Su0W4T1n4w5qLY6BBT4HDlpy/kYaVrR0C
}
reverse_proxy studio-app:8000
diff --git a/status/targets.txt b/status/targets.txt
index 7e25783..4a4f23d 100644
--- a/status/targets.txt
+++ b/status/targets.txt
@@ -6,7 +6,7 @@ golive https://golive.yyamashita.com
whoisband https://whoisband.yyamashita.com
blog https://blog.yyamashita.com
todo https://todo.yyamashita.com
-studio https://studio.yyamashita.com
+studio https://studio.yyamashita.com/healthz
git https://git.yyamashita.com
code https://code.yyamashita.com
hetzner-admin https://hetzner-admin.yyamashita.com