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
20 lines
498 B
Desktop File
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
|