config

package
v0.0.0-...-f2ab1bc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	LogFormat = envValue("LOG_FORMAT", "json")
	LogLevel  = envValue("LOG_LEVEL", "info")

	Auth0Enabled  = envValueBool("AUTH0_ENABLED", false)
	Auth0Domain   = envValue("AUTH0_DOMAIN", "")
	Auth0Audience = envValue("AUTH0_AUDIENCE", "")

	DownloaderExecutable      = envValue("DOWNLOADER_EXECUTABLE", "yt-dlp")
	DownloaderOutputDirectory = envValue("DOWNLOADER_OUTPUT_DIR", "/data/output")
	DownloaderCacheDirectory  = envValue("DOWNLOADER_CACHE_DIR", "/data/cache")
	DownloaderRetries         = envValueInt("DOWNLOADER_RETRIES", 1)
	DownloaderConcurrency     = envValueInt("DOWNLOADER_CONCURRENCY", 1)

	ServerBackupFile = envValue("SERVER_BACKUP_FILE", "/data/cache.json")
	ServerAddress    = envValue("SERVER_ADDRESS", ":8000")
	ServerCORSList   = envValue("SERVER_CORS_LIST", "")

	StorageEnabled         = envValueBool("STORAGE_ENABLED", false)
	StorageEndpoint        = envValue("STORAGE_ENDPOINT", "")
	StorageBucketName      = envValue("STORAGE_BUCKET_NAME", "jayd")
	StorageAccessKeyID     = envValue("STORAGE_ACCESS_KEY_ID", "")
	StorageSecretAccessKey = envValue("STORAGE_SECRET_ACCESS_KEY", "")
	StorageSSLEnabled      = envValueBool("STORAGE_SSL_ENABLED", true)

	WebDirectory = envValue("WEB_DIRECTORY", "/web")

	YoutubeAPIKey = envValue("YOUTUBE_API_KEY")

	BuildTime   = "unknown"
	BuildCommit = "unknown"
)

Functions

func Print

func Print()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL