From 0bf71fba9c0ce647476ec240dee6e71a3a68f463 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Thu, 8 Feb 2024 15:23:30 +0800 Subject: [PATCH] :sparkles: Directory --- pkg/server/well_known_api.go | 1 + settings.toml | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/pkg/server/well_known_api.go b/pkg/server/well_known_api.go index cd9afa1..2bfde58 100644 --- a/pkg/server/well_known_api.go +++ b/pkg/server/well_known_api.go @@ -11,6 +11,7 @@ func getMetadata(c *fiber.Ctx) error { "name": viper.GetString("name"), "domain": viper.GetString("domain"), "open_registration": !viper.GetBool("use_registration_magic_token"), + "directory": viper.Get("directory"), }) } diff --git a/settings.toml b/settings.toml index 0e5d941..ce9413a 100644 --- a/settings.toml +++ b/settings.toml @@ -24,3 +24,8 @@ password = "gz937Zxxzfcd9SeH" [database] dsn = "host=localhost dbname=hy_passport port=5432 sslmode=disable" prefix = "passport_" + +[[directory]] +name = "Goatpass" +description = "Authorization Serivce" +link = "https://id.smartsheep.studio" \ No newline at end of file