Playground site: airplay serve (ranking, artist history and forecast, what-if on chart situation, backtest summary) at idiotmaxxing.com/airplay via a Traefik file route; daily collection refreshes the forecasts

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 02:21:41 +00:00
co-authored by Claude Opus 5.5
parent eededc7571
commit 387502ebfa
9 changed files with 806 additions and 2 deletions
+3 -1
View File
@@ -8,7 +8,9 @@ Wants=network-online.target
Type=oneshot
WorkingDirectory=/root/dev/Airplay-Predictor
ExecStart=/root/dev/Airplay-Predictor/target/release/airplay collect --db /root/dev/Airplay-Predictor/data/airplay.db
# Fresh forecasts for the playground after every collection.
ExecStartPost=/root/dev/Airplay-Predictor/target/release/airplay model rank --db /root/dev/Airplay-Predictor/data/airplay.db --top 0
Nice=10
IOSchedulingClass=idle
MemoryMax=512M
MemoryMax=1500M
TimeoutStartSec=3h
+16
View File
@@ -0,0 +1,16 @@
[Unit]
Description=Airplay Predictor playground (idiotmaxxing.com/airplay)
# Listens on the Docker bridge address so Coolify's Traefik (host.docker.internal) can reach it.
After=docker.service network-online.target
Wants=network-online.target
[Service]
WorkingDirectory=/root/dev/Airplay-Predictor
ExecStart=/root/dev/Airplay-Predictor/target/release/airplay serve --addr 10.0.0.1:8790 --prefix /airplay
Restart=always
RestartSec=5
MemoryMax=1500M
Nice=5
[Install]
WantedBy=multi-user.target
+23
View File
@@ -0,0 +1,23 @@
# Coolify's Traefik reads every file in /data/coolify/proxy/dynamic/ (watch=true), so copying
# this there routes idiotmaxxing.com/airplay to the airplay-web service on the host.
http:
routers:
airplay-http:
entryPoints: [http]
rule: '(Host(`idiotmaxxing.com`) || Host(`www.idiotmaxxing.com`)) && PathPrefix(`/airplay`)'
priority: 1000
middlewares: [redirect-to-https]
service: airplay
airplay-https:
entryPoints: [https]
rule: '(Host(`idiotmaxxing.com`) || Host(`www.idiotmaxxing.com`)) && PathPrefix(`/airplay`)'
priority: 1000
middlewares: [gzip]
service: airplay
tls:
certresolver: letsencrypt
services:
airplay:
loadBalancer:
servers:
- url: 'http://host.docker.internal:8790'