diff options
| author | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-19 15:19:00 +0900 |
|---|---|---|
| committer | yyamashita <yyamashita@hetzner.yyamashita.com> | 2026-06-19 15:19:00 +0900 |
| commit | 6e41cc1b7a6769608cacb456bae21aa0d7704f59 (patch) | |
| tree | b42d5b549493155790fefd88cce2ec07b0be3a60 | |
| parent | 93bd9a1d92e62c453230f0c1cc1058e745b30f40 (diff) | |
Add microblog service
- Caddy: route blog.yyamashita.com → microblog-app:3000
- git: add microblog post-receive hook and update work tree path to /app/microblog
- DNS: add blog subdomain to Route 53 WEB_SUBDOMAINS
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
| -rw-r--r-- | caddy/Caddyfile | 6 | ||||
| -rwxr-xr-x | git/hooks/microblog/post-receive | 8 | ||||
| -rw-r--r-- | git/repos.txt | 2 | ||||
| -rwxr-xr-x | mail/dns/setup-route53.py | 1 |
4 files changed, 16 insertions, 1 deletions
diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 6f73d8b..86242b8 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -34,3 +34,9 @@ hetzner-admin.yyamashita.com { header X-Robots-Tag "noindex, nofollow" reverse_proxy hetzner-admin:5000 } + +blog.yyamashita.com { + header Referrer-Policy "no-referrer" + header X-Robots-Tag "noindex, nofollow" + reverse_proxy microblog-app:3000 +} diff --git a/git/hooks/microblog/post-receive b/git/hooks/microblog/post-receive new file mode 100755 index 0000000..2627861 --- /dev/null +++ b/git/hooks/microblog/post-receive @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +APP_DIR=/app/microblog +GIT_WORK_TREE=$APP_DIR git checkout -f +cd $APP_DIR +mkdir -p data +docker compose up -d --build +echo "Deploy complete: microblog" diff --git a/git/repos.txt b/git/repos.txt index cbdf1f0..916400b 100644 --- a/git/repos.txt +++ b/git/repos.txt @@ -4,4 +4,4 @@ hetzner-infra:/app/infra tokyo-livehouse-events:/app/tokyo-livehouse-events whois-band:/app/whois-band mosquitone-admin:/home/yyamashita/workspaces/repos/mosquitone-admin -microblog:/home/yyamashita/workspaces/repos/microblog +microblog:/app/microblog diff --git a/mail/dns/setup-route53.py b/mail/dns/setup-route53.py index c508235..2a6aee9 100755 --- a/mail/dns/setup-route53.py +++ b/mail/dns/setup-route53.py @@ -36,6 +36,7 @@ WEB_SUBDOMAINS = [ "code", "git", "hetzner-admin", + "blog", ] |
