added domain to config
This commit is contained in:
@@ -31,7 +31,7 @@ import (
|
||||
|
||||
const FILE_BROWSER_IMAGE = "filebrowser/filebrowser:latest"
|
||||
|
||||
var DOMAIN = os.Getenv("SERVER_DOMAIN")
|
||||
var DOMAIN string = ""
|
||||
|
||||
type Connection struct {
|
||||
databaseConnection *mongo.Client
|
||||
@@ -797,6 +797,8 @@ func LoadGroup(group *gin.RouterGroup, mongo_client *mongo.Client, config models
|
||||
}
|
||||
defer apiClient.Close()
|
||||
|
||||
DOMAIN = config.Domain
|
||||
|
||||
connection := Connection{databaseConnection: mongo_client, dockerClient: apiClient}
|
||||
authConnection := auth.Connection{DatabaseConnection: mongo_client}
|
||||
|
||||
|
Reference in New Issue
Block a user