[Unit]
Description=WeChat Webhook Receiver — bridges WeChat bot messages to Hermes
After=network-online.target docker.service
Wants=network-online.target
BindsTo=docker.service

[Service]
Type=simple
User=hmo
WorkingDirectory=/home/hmo/projects/AgentsMeeting/gateway/linux
ExecStart=/usr/bin/python3 /home/hmo/projects/AgentsMeeting/gateway/linux/wechat_webhook.py
Restart=always
RestartSec=5
StandardOutput=append:/home/hmo/projects/AgentsMeeting/gateway/linux/logs/webhook_service.log
StandardError=append:/home/hmo/projects/AgentsMeeting/gateway/linux/logs/webhook_service.log

# Don't inherit system proxy (Hermes is local)
Environment=no_proxy=192.168.1.246,localhost,127.0.0.1,172.17.0.0/16
Environment=http_proxy=
Environment=https_proxy=

[Install]
WantedBy=multi-user.target
