Files
media-preload/deploy/preload-agent.service
Claude a18d45714e media-preload: on-demand VPS cache warm-up API and agent
OpenAPI 3.0 contract (api/openapi.yaml) with oapi-codegen generated server,
client and models; preload-api (Jellyfin lookup, SQLite queue, bearer roles)
runs at home, preload-agent runs on the VPS and fills the rclone cache.
mise manages Go 1.27.3 and oapi-codegen 2.8.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GUebqghNwNssAZuWTxUq1y
2026-11-04 17:49:06 -07:00

20 lines
498 B
Desktop File

# systemd unit for the VPS: /etc/systemd/system/preload-agent.service
[Unit]
Description=media-preload agent (fills the rclone media cache on request)
After=network-online.target wg-quick@wg-home.service rclone-media.service
Wants=rclone-media.service
[Service]
User=rclone-media
EnvironmentFile=/etc/preload-agent.env
ExecStart=/usr/local/bin/preload-agent
Restart=always
RestartSec=10
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
[Install]
WantedBy=multi-user.target