Directory

This commit is contained in:
LittleSheep 2024-02-08 15:23:30 +08:00
parent 48ba6ac98a
commit 0bf71fba9c
2 changed files with 6 additions and 0 deletions

View File

@ -11,6 +11,7 @@ func getMetadata(c *fiber.Ctx) error {
"name": viper.GetString("name"), "name": viper.GetString("name"),
"domain": viper.GetString("domain"), "domain": viper.GetString("domain"),
"open_registration": !viper.GetBool("use_registration_magic_token"), "open_registration": !viper.GetBool("use_registration_magic_token"),
"directory": viper.Get("directory"),
}) })
} }

View File

@ -24,3 +24,8 @@ password = "gz937Zxxzfcd9SeH"
[database] [database]
dsn = "host=localhost dbname=hy_passport port=5432 sslmode=disable" dsn = "host=localhost dbname=hy_passport port=5432 sslmode=disable"
prefix = "passport_" prefix = "passport_"
[[directory]]
name = "Goatpass"
description = "Authorization Serivce"
link = "https://id.smartsheep.studio"