feat(instance): public profile endpoint GET /api/instance (hub-app M1)
This commit is contained in:
Vendored
+7
@@ -32,3 +32,10 @@ func IsDev() bool {
|
||||
func GiteaURL() string {
|
||||
return os.Getenv("DCNTRLIZED_GITEA_URL")
|
||||
}
|
||||
|
||||
// PublicProfile reports whether the unauthenticated instance profile
|
||||
// (GET /api/instance, hub-app theme M1) is served. Default on; set
|
||||
// DCNTRLIZED_PUBLIC_PROFILE=false to blank services + trusted_instances.
|
||||
func PublicProfile() bool {
|
||||
return os.Getenv("DCNTRLIZED_PUBLIC_PROFILE") != "false"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user