diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-21 02:38:03 -0500 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2024-12-21 02:38:03 -0500 |
commit | 0fe8da17cb35648962eb9add5cc39d545d8b2805 (patch) | |
tree | 9e52861aaf7d650a5b1d1c5cc4f7e86232806f09 /configs/traefik | |
parent | 8d954f67a39f31bf54421c0c74b1d7946de3ecd7 (diff) |
Scale Jellyfin to 0 with sablier
Diffstat (limited to 'configs/traefik')
-rw-r--r-- | configs/traefik/static-cfg.yaml | 25 | ||||
-rw-r--r-- | configs/traefik/traefik.yaml | 8 |
2 files changed, 32 insertions, 1 deletions
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" |