From 5a55c7893615c5a64856ecca681325a609d1fac0 Mon Sep 17 00:00:00 2001 From: yyamashita Date: Sat, 22 Aug 2026 19:21:18 +0900 Subject: Add todo service: Caddyfile, repos.txt, hook, DNS entry Co-Authored-By: Claude Sonnet 4.6 --- caddy/Caddyfile | 5 +++++ git/hooks/todo/post-receive | 8 ++++++++ git/repos.txt | 1 + mail/dns/setup-route53.py | 1 + 4 files changed, 15 insertions(+) create mode 100644 git/hooks/todo/post-receive diff --git a/caddy/Caddyfile b/caddy/Caddyfile index 90abecb..e6b43a7 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -44,6 +44,11 @@ blog.yyamashita.com { reverse_proxy microblog-app:3000 } +todo.yyamashita.com { + import noindex + reverse_proxy todo-app:3000 +} + import /tmp/proxy_forward.caddy vpn.yyamashita.com { diff --git a/git/hooks/todo/post-receive b/git/hooks/todo/post-receive new file mode 100644 index 0000000..645b856 --- /dev/null +++ b/git/hooks/todo/post-receive @@ -0,0 +1,8 @@ +#!/bin/bash +set -e +APP_DIR=/app/todo +GIT_WORK_TREE=$APP_DIR git checkout -f +cd $APP_DIR +mkdir -p data +docker compose up -d --build +echo "Deploy complete: todo" diff --git a/git/repos.txt b/git/repos.txt index 916400b..d57d36e 100644 --- a/git/repos.txt +++ b/git/repos.txt @@ -5,3 +5,4 @@ tokyo-livehouse-events:/app/tokyo-livehouse-events whois-band:/app/whois-band mosquitone-admin:/home/yyamashita/workspaces/repos/mosquitone-admin microblog:/app/microblog +todo:/app/todo diff --git a/mail/dns/setup-route53.py b/mail/dns/setup-route53.py index 9455c0c..ecc3d0d 100755 --- a/mail/dns/setup-route53.py +++ b/mail/dns/setup-route53.py @@ -37,6 +37,7 @@ WEB_SUBDOMAINS = [ "git", "hetzner-admin", "blog", + "todo", "vpn", "proxy", ] -- cgit v1.2.3