Add more possible env values to chart

This commit is contained in:
Evan Fiordeliso 2023-05-23 20:19:25 -04:00
parent 2e251e4593
commit 0cafdf8216
2 changed files with 7 additions and 1 deletions

View File

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

View File

@ -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"`
}