feat(instance): public profile endpoint GET /api/instance (hub-app M1)

This commit is contained in:
2026-08-23 01:02:29 +01:00
parent 85b4b4cd91
commit 98341c7665
9 changed files with 621 additions and 1 deletions
+7
View File
@@ -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"
}