mirror of
https://github.com/lxc/incus
synced 2026-08-02 05:26:46 +00:00
incusd/cluster/config: Add acme.eab.kid and acme.eab.hmac
Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
This commit is contained in:
parent
3caced2ae5
commit
5d6dd9da0c
@ -284,6 +284,11 @@ func (c *Config) ACME() (string, string, string, bool, string) {
|
||||
return c.m.GetString("acme.domain"), c.m.GetString("acme.email"), c.m.GetString("acme.ca_url"), c.m.GetBool("acme.agree_tos"), c.m.GetString("acme.challenge")
|
||||
}
|
||||
|
||||
// ACMEEAB returns the External Account Binding settings for ACME.
|
||||
func (c *Config) ACMEEAB() (string, string) {
|
||||
return c.m.GetString("acme.eab.kid"), c.m.GetString("acme.eab.hmac")
|
||||
}
|
||||
|
||||
// ACMEDNS returns all ACME DNS settings needed for DNS-01 challenge.
|
||||
func (c *Config) ACMEDNS() (string, []string, []string) {
|
||||
var environment []string
|
||||
@ -521,6 +526,22 @@ var ConfigSchema = config.Schema{
|
||||
// shortdesc: Email address used for the account registration
|
||||
"acme.email": {},
|
||||
|
||||
// gendoc:generate(entity=server, group=acme, key=acme.eab.kid)
|
||||
//
|
||||
// ---
|
||||
// type: string
|
||||
// scope: global
|
||||
// shortdesc: Key identifier for External Account Binding
|
||||
"acme.eab.kid": {},
|
||||
|
||||
// gendoc:generate(entity=server, group=acme, key=acme.eab.hmac)
|
||||
//
|
||||
// ---
|
||||
// type: string
|
||||
// scope: global
|
||||
// shortdesc: HMAC key for External Account Binding
|
||||
"acme.eab.hmac": {},
|
||||
|
||||
// gendoc:generate(entity=server, group=acme, key=acme.agree_tos)
|
||||
//
|
||||
// ---
|
||||
|
||||
Loading…
Reference in New Issue
Block a user