YggdrasilRoot 改为可配置
This commit is contained in:
parent
7d2c80378a
commit
63ffeeffb7
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user