YggdrasilRoot 改为可配置
This commit is contained in:
parent
7d2c80378a
commit
63ffeeffb7
@ -20,4 +20,7 @@ type Config struct {
|
||||
RsaPriKey string
|
||||
TexturePath string
|
||||
TextureBaseUrl string
|
||||
HomepageUrl string
|
||||
RegisterUrl string
|
||||
ServerName string
|
||||
}
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user