fix: provision config.yaml/.env + systemd EnvironmentFile drop-in
Fixes #9 (custom_providers missing — fresh installs had no config.yaml/.env, so gateway had no provider to connect to) and #10 (systemd unit had no EnvironmentFile, so gateway couldn't read rocketchat.env/.env → crash-loop). Templates provisioned on first install only (no overwrites): - templates/config.yaml: minimal working config with ollama-cloud provider - templates/.env: API key placeholder - templates/hermes-gateway-env.conf: systemd drop-in wiring rocketchat.env + .env
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
# Hermes Agent — API keys (generated by Rocket.Chat Plugin installer)
|
||||
# Add your HERMES_API_KEY below — get it from your Hermes provider
|
||||
HERMES_API_KEY=change-me
|
||||
@@ -0,0 +1,39 @@
|
||||
# Hermes Agent — minimal working configuration
|
||||
# Generated by Rocket.Chat Plugin installer
|
||||
# Expand with: hermes setup
|
||||
|
||||
model:
|
||||
default: deepseek-v4-pro
|
||||
provider: ollama-cloud
|
||||
base_url: https://api.openai.com/v1
|
||||
|
||||
fallback_providers:
|
||||
- ollama-cloud
|
||||
|
||||
custom_providers:
|
||||
- name: ollama-cloud
|
||||
base_url: https://api.openai.com/v1
|
||||
api_key_env: HERMES_API_KEY
|
||||
|
||||
toolsets:
|
||||
- hermes-cli
|
||||
|
||||
plugins:
|
||||
enabled:
|
||||
- rocketchat-platform
|
||||
|
||||
agent:
|
||||
max_turns: 90
|
||||
gateway_timeout: 1800
|
||||
|
||||
terminal:
|
||||
backend: local
|
||||
|
||||
display:
|
||||
language: de
|
||||
|
||||
gateway:
|
||||
enabled: true
|
||||
platforms:
|
||||
rocketchat:
|
||||
enabled: true
|
||||
@@ -0,0 +1,5 @@
|
||||
# Rocket.Chat Plugin — environment file hook for hermes-gateway
|
||||
# Generated by install.sh — do not edit manually
|
||||
[Service]
|
||||
EnvironmentFile=%h/.config/hermes/rocketchat.env
|
||||
EnvironmentFile=%h/.hermes/.env
|
||||
Reference in New Issue
Block a user