mirror of
https://github.com/narrrl/pl8list-rewind.git
synced 2026-11-04 00:46:59 +01:00
New axum server in backend/ with the same HTTP API and database as the Python one. The pl8list session is only held in memory during the feed crawl and logged out afterwards. Local sessions use a __Host- cookie, 30-day idle expiry and weekly token rotation; the old cookie is migrated. The audio and image proxy only accepts known parameters, fixes the content type, follows redirects only to pl8list's file host and caches segments and images on disk. Strict security headers, origin checks on POST, body and concurrency limits. /impressum and /datenschutz are rendered from env variables. The account menu offers data export, sign out on all devices and account deletion. hls.js is self-hosted and artist images are proxied, so the browser only talks to this server. The Docker image builds a static binary on scratch.
22 lines
711 B
YAML
22 lines
711 B
YAML
# pl8.narl.io behind Traefik on external "narl" network. TLS ends at Traefik; the
|
|
# container itself is not published on any host port.
|
|
services:
|
|
app:
|
|
environment:
|
|
TRUSTED_PROXY_HOPS: "1"
|
|
PUBLIC_ORIGIN: "https://pl8.narl.io"
|
|
ports: !reset []
|
|
networks:
|
|
- narl
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=narl"
|
|
- "traefik.http.routers.pl8list-infinite.rule=Host(`pl8.narl.io`)"
|
|
- "traefik.http.routers.pl8list-infinite.entrypoints=websecure"
|
|
- "traefik.http.routers.pl8list-infinite.tls.certresolver=https_resolver"
|
|
- "traefik.http.services.pl8list-infinite.loadbalancer.server.port=8790"
|
|
|
|
networks:
|
|
narl:
|
|
external: true
|