Inline signing identities

This commit is contained in:
Neil Alexander 2022-11-18 12:15:59 +00:00
parent 510f84847f
commit 7026f5b572
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -14,7 +14,7 @@ import (
type Global struct {
// Signing identity contains the server name, private key and key ID of
// the deployment.
gomatrixserverlib.SigningIdentity
gomatrixserverlib.SigningIdentity `yaml:"inline"`
// The secondary server names, used for virtual hosting.
VirtualHosts []*VirtualHost `yaml:"virtual_hosts"`
@ -189,7 +189,7 @@ func (c *Global) SigningIdentities() []*gomatrixserverlib.SigningIdentity {
type VirtualHost struct {
// Signing identity contains the server name, private key and key ID of
// the virtual host.
gomatrixserverlib.SigningIdentity
gomatrixserverlib.SigningIdentity `yaml:"inline"`
// Path to the private key. If not specified, the default global private key
// will be used instead.