From 9e6078af9b003fac53ece72364064845446a9d59 Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Sun, 20 Sep 2026 15:51:34 +0700 Subject: [PATCH] feat(infra): add hamc.asepharyana.my.id (hermyhq) Caddy routing + systemd unit - Caddy: hamc.asepharyana.my.id -> 127.0.0.1:4023 (import proxy) - systemd: hermyhq.service (Next.js 16 standalone, profile /nix/var/nix/profiles/hermyhq, env /etc/hermyhq/hermyhq.env) --- infra/caddy/Caddyfile.prod | 5 ++++- infra/systemd/hermyhq.service | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 infra/systemd/hermyhq.service diff --git a/infra/caddy/Caddyfile.prod b/infra/caddy/Caddyfile.prod index c4d13c6..7b1a493 100644 --- a/infra/caddy/Caddyfile.prod +++ b/infra/caddy/Caddyfile.prod @@ -175,4 +175,7 @@ mcpedia.asepharyana.my.id { mcp.asepharyana.my.id { import proxy 4021 -} \ No newline at end of file +} +hamc.asepharyana.my.id { + import proxy 4023 +} diff --git a/infra/systemd/hermyhq.service b/infra/systemd/hermyhq.service new file mode 100644 index 0000000..9782173 --- /dev/null +++ b/infra/systemd/hermyhq.service @@ -0,0 +1,18 @@ +[Unit] +Description=Hermy HQ — Hermes mission control dashboard (Next.js 16 standalone) +After=network.target postgresql.service + +[Service] +Type=simple +User=code +Group=code +Environment=NODE_ENV=production +Environment=HOSTNAME=127.0.0.1 +Environment=PORT=4023 +EnvironmentFile=/etc/hermyhq/hermyhq.env +ExecStart=/nix/var/nix/profiles/hermyhq/bin/hermyhq +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target