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 RsaPriKey string
TexturePath string TexturePath string
TextureBaseUrl string TextureBaseUrl string
HomepageUrl string
RegisterUrl string
ServerName string
} }

View File

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