YggdrasilRoot 改为可配置

This commit is contained in:
xmdhs 2023-09-12 13:27:27 +08:00
parent 7d2c80378a
commit 63ffeeffb7
No known key found for this signature in database
GPG Key ID: E809D6D43DEFCC95
2 changed files with 6 additions and 3 deletions

View File

@ -20,4 +20,7 @@ type Config struct {
RsaPriKey string
TexturePath string
TextureBaseUrl string
HomepageUrl string
RegisterUrl string
ServerName string
}

View File

@ -66,10 +66,10 @@ func (y *Yggdrasil) YggdrasilRoot() httprouter.Handle {
ImplementationName: "authlib-skin",
ImplementationVersion: "0.0.1",
Links: yggdrasilM.YggdrasilMetaLinks{
Homepage: "",
Register: "",
Homepage: y.config.HomepageUrl,
Register: y.config.RegisterUrl,
},
ServerName: "test",
ServerName: y.config.ServerName,
EnableProfileKey: true,
},
SignaturePublickey: string(y.pubkey),