From a95ff85cdfdf143a790c78d8620809e44e1da36a Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Tue, 23 May 2023 20:01:15 -0400 Subject: [PATCH] Update chart to add persistence for config and cookies --- charts/ytdl-web/values.yaml | 76 +++++++++++++++++++++++++++++++++++-- 1 file changed, 73 insertions(+), 3 deletions(-) diff --git a/charts/ytdl-web/values.yaml b/charts/ytdl-web/values.yaml index 3fc5110..336fdf9 100644 --- a/charts/ytdl-web/values.yaml +++ b/charts/ytdl-web/values.yaml @@ -7,9 +7,9 @@ strategy: type: Recreate env: - YTDL_LISTEN: 0.0.0.0 - YTDL_PORT: 80 - # YTDL_BASEPATH: /example + YTDL_HTTP_LISTEN: 0.0.0.0 + YTDL_HTTP_PORT: 80 + # YTDL_HTTP_BASEPATH: /example service: main: @@ -17,6 +17,76 @@ service: http: port: 80 +secrets: + cookies: + enabled: true + data: + cookies.txt: "" + +configMaps: + config: + enabled: true + data: + config.yaml: |- + # The server environment + # For dev environments use Development + # For prod environments use Production + # For staging envronments use Staging + env: Production + http: + # The port to listen on + port: 8080 + # The address to listen on + # For local only access use 127.0.0.1 + # For public access use 0.0.0.0 + listen: 0.0.0.0 + # The base path of the application, useful for reverse proxies + basePath: "" + + # A list of proxy servers to trust for security purposes + # Only needed when accessing app behind a proxy + trustedProxies: [] + ytdlp: + # The path to the yt-dlp binary, if it is already in your $PATH just yt-dlp will work. + binaryPath: yt-dlp + cookies: + # Whether to use cookies when fetching the video metadata + enabled: false + + # The path to the netscape formatted cookies file + # See: https://www.reddit.com/r/youtubedl/wiki/cookies/ for details. + filePath: ~/.cookies + + # Settings for using cookies from a browser's cookies store + fromBrowser: + # The name of the browser to load cookies from. + # Currently supported browsers are: brave, chrome, chromium, edge, firefox, opera, safari, vivaldi. + browser: firefox + + # The keyring used for decrypting Chromium cookies on Linux + # Currently supported keyrings are: basictext, gnomekeyring, kwallet + keyring: basictext + + # The profile to load cookies from (Firefox) + profile: default + + # The container to load cookies from (Firefox) + container: none + +persistence: + config: + enabled: false + mountPath: /etc/ytdl-web/config.yaml + subPath: config.yaml + type: configMap + name: "{{.Release.Name}}-config" + cookies: + enabled: false + mountPath: /etc/ytdl-web/cookies.txt + subPath: cookies.txt + type: secret + name: "{{.Release.Name}}-cookies" + ingress: main: enabled: false