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