Update chart to add persistence for config and cookies

This commit is contained in:
Evan Fiordeliso 2023-05-23 20:01:15 -04:00
parent 8052c02af1
commit a95ff85cdf
1 changed files with 73 additions and 3 deletions

View File

@ -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