diff --git a/backend/app/services.go b/backend/app/services.go index 9fd16f9..6051caf 100644 --- a/backend/app/services.go +++ b/backend/app/services.go @@ -53,7 +53,6 @@ func NewServices( enviroment string, certMagicConfig *certmagic.Config, certMagicCache *certmagic.Cache, - licenseServerURL string, filePath string, ) *Services { common := service.Common{ diff --git a/backend/data/urls.go b/backend/data/urls.go deleted file mode 100644 index 1232f92..0000000 --- a/backend/data/urls.go +++ /dev/null @@ -1,11 +0,0 @@ -package data - -import "github.com/phishingclub/phishingclub/build" - -// GetCrmURL returns the URL for the CRM system depending on the environment -func GetCrmURL() string { - if build.Flags.Production { - return "https://user.phishing.club" - } - return "https://crm:8009" -} diff --git a/backend/main.go b/backend/main.go index e2be1ba..a989268 100644 --- a/backend/main.go +++ b/backend/main.go @@ -159,8 +159,6 @@ func main() { db.Logger = db.Logger.LogMode(gormLogger.Silent) atomicLogger.SetLevel(zap.InfoLevel) } - // set license server url - licenseServer := data.GetCrmURL() // output debug information /* wd, err := os.Getwd() @@ -232,7 +230,6 @@ func main() { buildMode, certMagicConfig, certMagicCache, - licenseServer, *flagFilePath, ) // get entra-id options and setup msal client diff --git a/frontend/src/lib/components/header/Header.svelte b/frontend/src/lib/components/header/Header.svelte index 8fef51c..0b2015e 100644 --- a/frontend/src/lib/components/header/Header.svelte +++ b/frontend/src/lib/components/header/Header.svelte @@ -19,13 +19,6 @@ }; let username = ''; - /* - let updateURL = 'https://user.phishing.club/downloads'; - if (import.meta.env.DEV) { - updateURL = 'https://localhost:8009/downloads'; - } - */ - onMount(() => { const unsub = appState.subscribe((s) => { context = { diff --git a/frontend/src/routes/settings/update/+page.svelte b/frontend/src/routes/settings/update/+page.svelte index 4d0aa44..3d0820b 100644 --- a/frontend/src/routes/settings/update/+page.svelte +++ b/frontend/src/routes/settings/update/+page.svelte @@ -41,7 +41,7 @@ const installUpdate = async () => { try { if (!isUpdateLocal) { - window.open('https://user.phishing.club/downloads', '_blank'); + window.open('https://github.com/phishingclub/phishingclub/releases', '_blank'); } else { isUpdateAlertVisible = true; }