added domain to config

This commit is contained in:
2024-05-23 23:27:06 +03:00
parent 2824968dc3
commit 44ada32d60
3 changed files with 7 additions and 2 deletions

View File

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