From 0fe8da17cb35648962eb9add5cc39d545d8b2805 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 21 Dec 2024 02:38:03 -0500 Subject: Scale Jellyfin to 0 with sablier --- configs/traefik/static-cfg.yaml | 25 +++++++++++++++++++++++++ configs/traefik/traefik.yaml | 8 +++++++- 2 files changed, 32 insertions(+), 1 deletion(-) (limited to 'configs/traefik') diff --git a/configs/traefik/static-cfg.yaml b/configs/traefik/static-cfg.yaml index 91ecb03..d47124c 100644 --- a/configs/traefik/static-cfg.yaml +++ b/configs/traefik/static-cfg.yaml @@ -7,8 +7,33 @@ http: certResolver: cloudflare entryPoints: - websecure + jellyfin: + rule: Host(`watch.{{ env "DOMAIN" }}`) + service: jellyfin + entryPoints: + - websecure + tls: + certResolver: cloudflare + middlewares: + - my-sablier@file services: plex: loadBalancer: servers: - url: 'http://host.docker.internal:32400' + jellyfin: + loadBalancer: + servers: + - url: "http://jellyfin:8096" + + middlewares: + my-sablier: + plugin: + sablier: + group: home + dynamic: + displayName: Hourglass + refreshFrequency: 2s + theme: ghost + sablierUrl: http://sablier:10000 + sessionDuration: 1m diff --git a/configs/traefik/traefik.yaml b/configs/traefik/traefik.yaml index 25af4dc..29fc52c 100644 --- a/configs/traefik/traefik.yaml +++ b/configs/traefik/traefik.yaml @@ -3,7 +3,7 @@ global: sendAnonymousUsage: false log: - level: DEBUG + level: INFO api: dashboard: true @@ -37,3 +37,9 @@ providers: endpoint: "unix:///var/run/docker.sock" allowEmptyServices: true exposedByDefault: false + +experimental: + plugins: + sablier: + moduleName: "github.com/sablierapp/sablier" + version: "v1.8.1" -- cgit v1.2.3