mirror of
https://gitlab.com/foxixus/neomovies-api.git
synced 2025-10-27 17:38:51 +05:00
Add player: Vibix
This commit is contained in:
@@ -23,6 +23,8 @@ type Config struct {
|
||||
GoogleClientSecret string
|
||||
GoogleRedirectURL string
|
||||
FrontendURL string
|
||||
VibixHost string
|
||||
VibixToken string
|
||||
}
|
||||
|
||||
func New() *Config {
|
||||
@@ -46,6 +48,8 @@ func New() *Config {
|
||||
GoogleClientSecret: getEnv(EnvGoogleClientSecret, ""),
|
||||
GoogleRedirectURL: getEnv(EnvGoogleRedirectURL, ""),
|
||||
FrontendURL: getEnv(EnvFrontendURL, ""),
|
||||
VibixHost: getEnv(EnvVibixHost, DefaultVibixHost),
|
||||
VibixToken: getEnv(EnvVibixToken, ""),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,9 @@ const (
|
||||
EnvGoogleClientSecret= "GOOGLE_CLIENT_SECRET"
|
||||
EnvGoogleRedirectURL = "GOOGLE_REDIRECT_URL"
|
||||
EnvFrontendURL = "FRONTEND_URL"
|
||||
|
||||
EnvVibixHost = "VIBIX_HOST"
|
||||
EnvVibixToken = "VIBIX_TOKEN"
|
||||
|
||||
// Default values
|
||||
DefaultJWTSecret = "your-secret-key"
|
||||
DefaultPort = "3000"
|
||||
@@ -26,6 +28,7 @@ const (
|
||||
DefaultNodeEnv = "development"
|
||||
DefaultRedAPIBase = "http://redapi.cfhttp.top"
|
||||
DefaultMongoDBName = "database"
|
||||
DefaultVibixHost = "https://vibix.org"
|
||||
|
||||
// Static constants
|
||||
TMDBImageBaseURL = "https://image.tmdb.org/t/p"
|
||||
|
||||
Reference in New Issue
Block a user