25 Commits
Author SHA1 Message Date
Jannik ddf678fb9c feat: Add Hermes setup sub-script and in-container CLI installation
Fixes Hermes CLI not found in PATH by installing hermes-agent inside paperclip_app container. Symlinks hermes executable to PATH, mounts persistent volumes for venv and hermes-data, configures shared API keys, and integrates setup script into deployment.
2026-10-02 05:10:10 +02:00
Jannik aabbf6c28a refactor: Move Paperclip-specific .env generation to service.pre_start script 2026-10-01 20:07:56 +02:00
Jannik 78d4a4894e feat: Generic service.init system + Hermes setup script
- NEW: services/hermes/service.init — wartet auf Hermes-API, konfiguriert
  Provider aus shared.env (OpenRouter bevorzugt), gibt Dashboard-URL aus
- NEW: services/paperclip/service.init — extrahiert PaperClip-Setup aus
  main() in eigenständiges Skript (Patch, Onboarding, Bootstrap-URL)
- NEW: run_service_inits() in deploy_script.sh — ruft automatisch alle
  service.init-Skripte nach dem Start auf
- CLEANUP: main() in deploy_script.sh ist jetzt schlank und generisch
2026-10-01 20:04:56 +02:00
Jannik 60d48a43b4 refactor: Single source of truth for API keys via services/shared.env
- NEW: services/shared.env.age — encrypted shared API keys (OpenRouter, Mistral, Minimax, Poe)
- REMOVE: services/hermes/.env.age — no service-specific secrets needed
- UPDATE: services/paperclip/.env.age — now only DB password + auth secret
- UPDATE: docker-compose.yml (paperclip + hermes) — use env_file for shared.env
- UPDATE: deploy_script.sh — decrypt shared.env.age first, read API keys from there
- UPDATE: .gitignore — add services/shared.env
- UPDATE: README.md — document shared.env pattern
2026-10-01 19:57:17 +02:00
Jannik c1ebd84e11 Patch Paperclip backend to respect OPENAI_BASE_URL during connection validation 2026-10-01 18:58:44 +02:00
Jannik 4d64e09cd6 Auto-configure OpenAI API Key from OpenRouter/Mistral to bypass UI Onboarding screen 2026-10-01 18:45:32 +02:00
Jannik 20a746e6e9 Cleanup debug block output now that the deployment successfully starts and healthchecks pass 2026-10-01 18:37:59 +02:00
Jannik 7b29df68a0 Fix premature Connection Refused by polling for server health instead of a hardcoded 5s sleep, since Paperclip takes ~10-15s to fully start 2026-10-01 18:35:49 +02:00
Jannik 5a04aa0409 Enhance debug output to diagnose Connection Refused despite server logging that it bound to the port 2026-10-01 18:30:55 +02:00
Jannik d2abff8b4d Fix onboard command failing to write config due to 5s timeout; run in background with 15s sleep instead 2026-10-01 18:26:56 +02:00
Jannik a475b9b19c Fix script hanging by adding a 5s timeout to the onboard command, since --yes implicitly starts the server in the foreground 2026-10-01 18:25:10 +02:00
Jannik c554e74dfb Fix EACCES permission denied by running Paperclip onboard command as node user 2026-10-01 18:13:32 +02:00
Jannik 3c2e9cdf53 Add debug diagnostics to deploy script to troubleshoot 502 2026-10-01 18:10:35 +02:00
Jannik fcba2a3b3a Fix 502 Bad Gateway by ensuring HOST is 0.0.0.0 and auto-generating missing BETTER_AUTH_SECRET 2026-10-01 18:07:37 +02:00
Jannik 183623962f Auto-reload script via exec when git pull fetches updates 2026-10-01 17:59:49 +02:00
Jannik 2a753ffcde Fix onboard command to not force local_trusted mode and restart container 2026-10-01 17:57:47 +02:00
Jannik 62161c98dd Fix onboard command to not force local_trusted mode 2026-10-01 17:57:03 +02:00
Jannik 973727a56d Auto-initialize Paperclip config with onboard command before bootstrapping 2026-10-01 17:53:28 +02:00
Jannik eef9c6caac Update ntfy URL topic to PaperClip 2026-10-01 17:47:38 +02:00
Jannik 7e6b45d6a1 Add ntfy push notifications to deploy script, including bootstrap URL 2026-10-01 17:46:57 +02:00
Jannik f4b8e6dda3 Add automatic Paperclip bootstrap URL generation to deploy script 2026-10-01 17:43:56 +02:00
Jannik eaa5d2770b Add fallback to restart caddy if reload fails 2026-10-01 17:35:23 +02:00
Jannik af49559498 Configure weekly reboot and system updates in deploy script 2026-10-01 17:29:12 +02:00
Jannik fc49ad230f Add paperclip service configuration (Docker Compose, Caddy, .env.age) and update deploy_script.sh 2026-10-01 17:22:55 +02:00
Jannik 6ff71851e3 Add deploy_script.sh and configure caddy volume 2026-10-01 17:18:09 +02:00