Add website_address config option

This commit is contained in:
2021-01-12 23:20:32 +01:00
parent 7361711ba6
commit 7995476926
6 changed files with 39 additions and 33 deletions

View File

@@ -28,6 +28,7 @@ type WebController struct {
apiURLInternal string
apiURLExternal string
websiteAddress string
sessionCookieDomain string
@@ -50,6 +51,7 @@ func New(
resourceDir string,
apiURLInternal string,
apiURLExternal string,
websiteAddress string,
sessionCookieDomain string,
maintenanceMode bool,
debugMode bool,
@@ -59,6 +61,7 @@ func New(
resourceDir: resourceDir,
apiURLInternal: apiURLInternal,
apiURLExternal: apiURLExternal,
websiteAddress: websiteAddress,
sessionCookieDomain: sessionCookieDomain,
httpClient: &http.Client{Timeout: time.Minute * 10},
api: apiclient.New(apiURLInternal),