Files
media-preload/deploy/media-preload-api.container
T
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

21 lines
613 B
INI

# Quadlet for yveltal: /etc/containers/systemd/media-preload-api.container
[Unit]
Description=media-preload API (VPS cache warm-up requests)
After=network-online.target wg-quick@wg-vps.service
[Container]
Image=localhost/media-preload-api:latest
ContainerName=media-preload-api
EnvironmentFile=/etc/media-preload/api.env
Volume=media-preload-data:/data:U
# localhost for a bot on yveltal, LAN for Kuma, the tunnel for the VPS agent (and a bot on the VPS)
PublishPort=127.0.0.1:8125:8125
PublishPort=10.0.0.38:8125:8125
PublishPort=10.77.0.2:8125:8125
[Service]
Restart=always
[Install]
WantedBy=default.target