[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757C7EVSBC8YTA09PTJQH0P":3,"skill-same:01M757C7EVSBC8YTA09PTJQH0P":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":14,"repositoryHtmlUrl":39,"repositoryHomepageUrl":6,"ownerHtmlUrl":40,"ownerBlogUrl":41,"ownerDescription":42,"updatedAt":43,"install":44,"resources":57},"01M757C7EVSBC8YTA09PTJQH0P","hermes-dashboard-traefik",null,"Expose Hermes Dashboard via Traefik with SSL and systemd.","SatangThevalue\u002Fai-skills","SatangThevalue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F17944930?v=4","01M756VHQQ58XSM5PDS03W79VY","Sa-Tang","01M756VHRNYXRY7HM230S4YHVV",0,"MIT","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fhermes-dashboard-traefik\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: hermes-dashboard-traefik\ndescription: Expose Hermes Dashboard via Traefik with SSL and systemd.\nversion: 0.1.0\nauthor: Tonthong\nlicense: MIT\nplatforms: [linux]\nmetadata:\n  hermes:\n    tags: [Hermes, DevOps, Traefik, Security, Systemd]\n---\n\n# Expose Hermes Dashboard via Traefik with SSL and systemd\n\nThis skill provides a step-by-step workflow to configure, run, and expose the Hermes Web Dashboard securely behind a Traefik reverse proxy using SSL certificates and a systemd user service.\n\nThis guide does not cover configuring third-party OAuth providers, which should be set up via Nous Portal or custom configurations if needed.\n\n## When to Use\n\n- Exposing the local Hermes Web Dashboard to a remote domain (e.g., `https:\u002F\u002Fdashboard.example.com`).\n- Setting up the dashboard to run persistently in the background on system boot using systemd.\n- Restricting dashboard access using secure password hashes instead of plaintext keys.\n\n## Prerequisites\n\n- Traefik reverse proxy running in a Docker container on the host.\n- Python 3 with the `web` extras installed in the active Hermes virtual environment (e.g. `uv pip install -e \".[web,pty]\"`).\n- Standard Dynamic File Provider path mapped in the Traefik static configuration (e.g. `providers.file.directory` point to `\u002Fetc\u002Ftraefik\u002Fdynamic`).\n\n## How to Run\n\n1. Generate and configure the security keys for Basic Auth.\n2. Create and enable the Systemd service using the `terminal` tool.\n3. Apply the dynamic routing configuration file to Traefik using the `write_file` tool.\n\n## Quick Reference\n\n- **Config Path:** `~\u002F.hermes\u002Fconfig.yaml`\n- **Dashboard keys:**\n  - `dashboard.basic_auth.username`\n  - `dashboard.basic_auth.password_hash`\n  - `dashboard.basic_auth.secret`\n- **Systemd user service path:** `~\u002F.config\u002Fsystemd\u002Fuser\u002Fhermes-dashboard.service`\n\n## Procedure\n\n### Step 1: Generate Scrypt Password Hash\nDo not write plaintext passwords. Generate a secure scrypt hash using the Python helper from the Hermes directory:\n```bash\npython3 -c \"from plugins.dashboard_auth.basic import hash_password; print(hash_password('YOUR_SECURE_PASSWORD'))\"\n```\n\n### Step 2: Configure basic auth in config.yaml\nWrite the configuration options to the config file (replace the variables with your generated values):\n```bash\nhermes config set dashboard.basic_auth.username \"YOUR_USERNAME\"\nhermes config set dashboard.basic_auth.password_hash \"scrypt$16384$8$1$...\"\n# Generate a random 32-byte secret hex for JWT signing\nhermes config set dashboard.basic_auth.secret \"$(python3 -c 'import secrets; print(secrets.token_hex(32))')\"\n```\n\n### Step 3: Create Systemd User Service\nWrite a user service configuration to run the dashboard headless in the background. Use the `write_file` tool to save this to `~\u002F.config\u002Fsystemd\u002Fuser\u002Fhermes-dashboard.service`:\n```ini\n[Unit]\nDescription=Hermes Agent Web Dashboard\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=\u002Fhome\u002FYOUR_USER\u002F.local\u002Fbin\u002Fhermes dashboard --host 0.0.0.0 --port 9119 --no-open\nRestart=always\nRestartSec=5\nWorkingDirectory=\u002Fhome\u002FYOUR_USER\n\n[Install]\nWantedBy=default.target\n```\n*Note: Bind host to `0.0.0.0` to allow the Docker bridge network to communicate with it, or `127.0.0.1` if Traefik is running on host network.*\n\n### Step 4: Start and Enable the Dashboard Service\nRun the following commands using the `terminal` tool to start the service:\n```bash\nsystemctl --user daemon-reload\nsystemctl --user enable hermes-dashboard --now\n```\n\n### Step 5: Configure Traefik Dynamic File Route\nWrite the dynamic configuration using the `write_file` tool to your Traefik dynamic configuration directory (e.g. `\u002Fhome\u002Fuser\u002Fdocker\u002Ftraefik\u002Fconfig\u002Fdynamic\u002Fhermes.yml`):\n```yaml\nhttp:\n  routers:\n    hermes-dashboard:\n      rule: Host(`dashboard.example.com`)\n      entryPoints:\n        - websecure\n      service: hermes-dashboard-srv\n      tls:\n        certResolver: namecom # replace with your certResolver name\n\n  services:\n    hermes-dashboard-srv:\n      loadBalancer:\n        servers:\n          # Use host gateway IP to route out of docker container to VPS localhost port\n          - url: http:\u002F\u002F10.0.2.1:9119 \n```\n*Note: Retrieve host IP address inside the docker network bridge by checking `docker network inspect \u003Cnetwork_name>`.*\n\n## Pitfalls\n\n- **Inside-Gateway Systemd Restarts:** Do not run `systemctl --user restart hermes-dashboard` inside an agent session spawned by the gateway. The gateway will kill the process tree before it can complete, resulting in a blocked command. Run `kill \u003CPID>` instead to let systemd restart it automatically, or execute restarts from outside.\n- **Docker host.docker.internal resolution:** On Linux, `host.docker.internal` might resolve to the default docker bridge interface (`10.0.0.1`) rather than the custom user bridge (e.g. `10.0.2.1`). **Always verify the real gateway IP** via `docker network inspect \u003Cnetwork_name>` — look for the `Gateway` field under `IPAM.Config`. Hardcode that IP in the Traefik `hermes.yml` service URL.\n- **Traefik file provider: single file vs directory:** If you need multiple dynamic config files (e.g. `dynamic.yml` + `hermes.yml`), change `providers.file.filename` → `providers.file.directory` in `traefik.yml`. Mount the directory (not individual files) in `docker-compose.yml`. A single `filename` setting silently ignores any additional `.yml` files in the same folder.\n- **HTTP 429 from Traefik is usually transient:** A burst of requests (browser auto-refresh, agent health checks) can trigger rate limiting. If the site returns 302 when retried seconds later, the 429 was momentary — not a configuration bug. Check `dynamic.yml` for an explicit `rateLimit` middleware before troubleshooting further.\n- **Kanban reviewer iteration exhaustion:** The `reviewer` profile can exhaust its 150-iteration budget if it attempts `delegate_task` for subagent verification inside a Kanban worker context. When a Kanban task ends up `blocked` after a crash: run `hermes kanban unblock \u003Ctask_id>` then `hermes kanban dispatch` to retry cleanly.\n\n## Verification\n\nTest the response using the `terminal` tool to verify dynamic SSL routing and basic auth redirect are operational:\n```bash\ncurl -I -k https:\u002F\u002Fdashboard.example.com\n```\nYou should get a `302 Found` response directing you to `\u002Flogin?next=%2F`.\n","# Expose Hermes Dashboard via Traefik with SSL and systemd\n\nThis skill provides a step-by-step workflow to configure, run, and expose the Hermes Web Dashboard securely behind a Traefik reverse proxy using SSL certificates and a systemd user service.\n\nThis guide does not cover configuring third-party OAuth providers, which should be set up via Nous Portal or custom configurations if needed.\n\n## When to Use\n\n- Exposing the local Hermes Web Dashboard to a remote domain (e.g., `https:\u002F\u002Fdashboard.example.com`).\n- Setting up the dashboard to run persistently in the background on system boot using systemd.\n- Restricting dashboard access using secure password hashes instead of plaintext keys.\n\n## Prerequisites\n\n- Traefik reverse proxy running in a Docker container on the host.\n- Python 3 with the `web` extras installed in the active Hermes virtual environment (e.g. `uv pip install -e \".[web,pty]\"`).\n- Standard Dynamic File Provider path mapped in the Traefik static configuration (e.g. `providers.file.directory` point to `\u002Fetc\u002Ftraefik\u002Fdynamic`).\n\n## How to Run\n\n1. Generate and configure the security keys for Basic Auth.\n2. Create and enable the Systemd service using the `terminal` tool.\n3. Apply the dynamic routing configuration file to Traefik using the `write_file` tool.\n\n## Quick Reference\n\n- **Config Path:** `~\u002F.hermes\u002Fconfig.yaml`\n- **Dashboard keys:**\n  - `dashboard.basic_auth.username`\n  - `dashboard.basic_auth.password_hash`\n  - `dashboard.basic_auth.secret`\n- **Systemd user service path:** `~\u002F.config\u002Fsystemd\u002Fuser\u002Fhermes-dashboard.service`\n\n## Procedure\n\n### Step 1: Generate Scrypt Password Hash\nDo not write plaintext passwords. Generate a secure scrypt hash using the Python helper from the Hermes directory:\n```bash\npython3 -c \"from plugins.dashboard_auth.basic import hash_password; print(hash_password('YOUR_SECURE_PASSWORD'))\"\n```\n\n### Step 2: Configure basic auth in config.yaml\nWrite the configuration options to the config file (replace the variables with your generated values):\n```bash\nhermes config set dashboard.basic_auth.username \"YOUR_USERNAME\"\nhermes config set dashboard.basic_auth.password_hash \"scrypt$16384$8$1$...\"\n# Generate a random 32-byte secret hex for JWT signing\nhermes config set dashboard.basic_auth.secret \"$(python3 -c 'import secrets; print(secrets.token_hex(32))')\"\n```\n\n### Step 3: Create Systemd User Service\nWrite a user service configuration to run the dashboard headless in the background. Use the `write_file` tool to save this to `~\u002F.config\u002Fsystemd\u002Fuser\u002Fhermes-dashboard.service`:\n```ini\n[Unit]\nDescription=Hermes Agent Web Dashboard\nAfter=network.target\n\n[Service]\nType=simple\nExecStart=\u002Fhome\u002FYOUR_USER\u002F.local\u002Fbin\u002Fhermes dashboard --host 0.0.0.0 --port 9119 --no-open\nRestart=always\nRestartSec=5\nWorkingDirectory=\u002Fhome\u002FYOUR_USER\n\n[Install]\nWantedBy=default.target\n```\n*Note: Bind host to `0.0.0.0` to allow the Docker bridge network to communicate with it, or `127.0.0.1` if Traefik is running on host network.*\n\n### Step 4: Start and Enable the Dashboard Service\nRun the following commands using the `terminal` tool to start the service:\n```bash\nsystemctl --user daemon-reload\nsystemctl --user enable hermes-dashboard --now\n```\n\n### Step 5: Configure Traefik Dynamic File Route\nWrite the dynamic configuration using the `write_file` tool to your Traefik dynamic configuration directory (e.g. `\u002Fhome\u002Fuser\u002Fdocker\u002Ftraefik\u002Fconfig\u002Fdynamic\u002Fhermes.yml`):\n```yaml\nhttp:\n  routers:\n    hermes-dashboard:\n      rule: Host(`dashboard.example.com`)\n      entryPoints:\n        - websecure\n      service: hermes-dashboard-srv\n      tls:\n        certResolver: namecom # replace with your certResolver name\n\n  services:\n    hermes-dashboard-srv:\n      loadBalancer:\n        servers:\n          # Use host gateway IP to route out of docker container to VPS localhost port\n          - url: http:\u002F\u002F10.0.2.1:9119 \n```\n*Note: Retrieve host IP address inside the docker network bridge by checking `docker network inspect \u003Cnetwork_name>`.*\n\n## Pitfalls\n\n- **Inside-Gateway Systemd Restarts:** Do not run `systemctl --user restart hermes-dashboard` inside an agent session spawned by the gateway. The gateway will kill the process tree before it can complete, resulting in a blocked command. Run `kill \u003CPID>` instead to let systemd restart it automatically, or execute restarts from outside.\n- **Docker host.docker.internal resolution:** On Linux, `host.docker.internal` might resolve to the default docker bridge interface (`10.0.0.1`) rather than the custom user bridge (e.g. `10.0.2.1`). **Always verify the real gateway IP** via `docker network inspect \u003Cnetwork_name>` — look for the `Gateway` field under `IPAM.Config`. Hardcode that IP in the Traefik `hermes.yml` service URL.\n- **Traefik file provider: single file vs directory:** If you need multiple dynamic config files (e.g. `dynamic.yml` + `hermes.yml`), change `providers.file.filename` → `providers.file.directory` in `traefik.yml`. Mount the directory (not individual files) in `docker-compose.yml`. A single `filename` setting silently ignores any additional `.yml` files in the same folder.\n- **HTTP 429 from Traefik is usually transient:** A burst of requests (browser auto-refresh, agent health checks) can trigger rate limiting. If the site returns 302 when retried seconds later, the 429 was momentary — not a configuration bug. Check `dynamic.yml` for an explicit `rateLimit` middleware before troubleshooting further.\n- **Kanban reviewer iteration exhaustion:** The `reviewer` profile can exhaust its 150-iteration budget if it attempts `delegate_task` for subagent verification inside a Kanban worker context. When a Kanban task ends up `blocked` after a crash: run `hermes kanban unblock \u003Ctask_id>` then `hermes kanban dispatch` to retry cleanly.\n\n## Verification\n\nTest the response using the `terminal` tool to verify dynamic SSL routing and basic auth redirect are operational:\n```bash\ncurl -I -k https:\u002F\u002Fdashboard.example.com\n```\nYou should get a `302 Found` response directing you to `\u002Flogin?next=%2F`.\n",{"name":5,"author":24,"license":15,"version":25,"metadata":26,"platforms":34,"description":7},"Tonthong","0.1.0",{"hermes":27},{"tags":28},[29,30,31,32,33],"Hermes","DevOps","Traefik","Security","Systemd",[35],"linux","main","236825fbf4e5956a8cd2b0bf843494f0a5dfaf04","skills\u002Fdevops\u002Fhermes-dashboard-traefik","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills","https:\u002F\u002Fgithub.com\u002FSatangThevalue","https:\u002F\u002Fwww.linkedin.com\u002Fin\u002Fsatangthevalue\u002F","Hi, I'm Sa-Tang. 🖐️🖐️🖐️\r\nThanks for following.\r\nสวัสดีครับ สตังค์ครับผม\r\nขอบคุณหรับการติดตามครับ","2026-10-10 12:10:40",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add SatangThevalue\u002Fai-skills --skill hermes-dashboard-traefik",{"tool":50,"command":51},"bunx","bunx skills add SatangThevalue\u002Fai-skills --skill hermes-dashboard-traefik",{"tool":53,"command":54},"pnpm","pnpm dlx skills add SatangThevalue\u002Fai-skills --skill hermes-dashboard-traefik","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fhermes-dashboard-traefik\u002FSKILL.md",true,[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M76TQY0W54NCMRVE9HB8MMTA","writing-plans","Write implementation plans: bite-sized tasks, paths, code.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fwriting-plans\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M76TNN9AYY91KD4DT415K1FF","subagent-driven-development","Execute plans via delegate_task subagents (2-stage review).","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fsubagent-driven-development\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M76TME6SXP9SYJZCXX5FFZHR","react-composition-2026","Teaches modern React composition patterns for 2025\u002F2026. Use when designing component APIs, building shared UI libraries, or refactoring prop-heavy components.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Freact-composition-2026\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M76TMAR2D5G9BKZWGEFJKWT2","react-2026","Provides a comprehensive guide to the modern React 2026 stack. Use when starting a new React project or modernizing an existing one with current frameworks, build tools, routing, state management, or AI integration.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Freact-2026\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M76TM2FA8ZFZR1S6ZM34WFFK","plan","Plan mode: write markdown plan to .hermes\u002Fplans\u002F, no exec.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fplan\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M76TJVNAWDZ7DYQK3ZS0X09J","hermes-s6-container-supervision","Modify, debug, or extend the s6-overlay supervision tree inside the Hermes Agent Docker image — adding new services, debugging profile gateways, understanding the Architecture B main-program pattern.","https:\u002F\u002Fgithub.com\u002FSatangThevalue\u002Fai-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsoftware-development\u002Fhermes-s6-container-supervision\u002FSKILL.md",[],[]]