From 0cafdf8216f67b58019992146a7ca29da7364082 Mon Sep 17 00:00:00 2001 From: Evan Fiordeliso Date: Tue, 23 May 2023 20:19:25 -0400 Subject: [PATCH] Add more possible env values to chart --- charts/ytdl-web/values.yaml | 6 ++++++ config/config.go | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/ytdl-web/values.yaml b/charts/ytdl-web/values.yaml index 1ccbf2f..ea6a60f 100644 --- a/charts/ytdl-web/values.yaml +++ b/charts/ytdl-web/values.yaml @@ -7,9 +7,15 @@ strategy: type: Recreate env: + # YTDL_ENV: Production + # YTDL_BINARY_PATH: yt-dlp YTDL_HTTP_LISTEN: 0.0.0.0 YTDL_HTTP_PORT: 80 # YTDL_HTTP_BASEPATH: /example + # YTDL_HTTP_TRUSTED_PROXIES: 127.0.0.1 10.0.0.0/8 + # YTDL_CACHE_TTL: 1h + # YTDL_CACHE_DIRPATH: /tmp/ytdl-web + YTDL_COOKIES_ENABLED: true YTDL_COOKIES_FILEPATH: /etc/ytdl-web/cookies.txt service: diff --git a/config/config.go b/config/config.go index a3e1506..aef70fa 100644 --- a/config/config.go +++ b/config/config.go @@ -9,8 +9,8 @@ import ( type Config struct { Env string `mapstructure:"env"` BinaryPath string `mapstructure:"binaryPath"` - Cache ConfigCache `mapstructure:"cache"` HTTP ConfigHTTP `mapstructure:"http"` + Cache ConfigCache `mapstructure:"cache"` Cookies ConfigCookies `mapstructure:"cookies"` }