mirror of
https://github.com/SigNoz/signoz.git
synced 2025-12-17 15:36:48 +00:00
* feat: added license manager and feature flags * feat: completed org domain api * chore: checking in saml auth handler code * feat: added signup with sso * feat: added login support for admins * feat: added pem support for certificate * ci(build-workflow): 👷 include EE query-service * fix: 🐛 update package name * chore(ee): 🔧 LD_FLAGS related changes Signed-off-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: Prashant Shahi <prashant@signoz.io> Co-authored-by: nityanandagohain <nityanandagohain@gmail.com>
29 lines
556 B
Go
29 lines
556 B
Go
package constants
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
const (
|
|
DefaultSiteURL = "https://localhost:3301"
|
|
)
|
|
|
|
var LicenseSignozIo = "https://license.signoz.io/api/v1"
|
|
|
|
func GetOrDefaultEnv(key string, fallback string) string {
|
|
v := os.Getenv(key)
|
|
if len(v) == 0 {
|
|
return fallback
|
|
}
|
|
return v
|
|
}
|
|
|
|
// constant functions that override env vars
|
|
|
|
// GetDefaultSiteURL returns default site url, primarily
|
|
// used to send saml request and allowing backend to
|
|
// handle http redirect
|
|
func GetDefaultSiteURL() string {
|
|
return GetOrDefaultEnv("SIGNOZ_SITE_URL", DefaultSiteURL)
|
|
}
|