config: add autocert options

This commit is contained in:
Oliver Gugger
2020-01-10 14:00:36 +01:00
parent 156ca9589a
commit 9af8647028
2 changed files with 11 additions and 1 deletions

View File

@@ -36,7 +36,15 @@ type authConfig struct {
type config struct {
// ListenAddr is the listening address that we should use to allow Kirin
// to listen for requests.
ListenAddr string `long:"listenaddr" description:"The interface we should listen on for client requests"`
ListenAddr string `long:"listenaddr" description:"The interface we should listen on for client requests."`
// ServerName can be set to a fully qualifying domain name that should
// be used while creating a certificate through Let's Encrypt.
ServerName string `long:"servername" description:"Server name (FQDN) to use for the TLS certificate."`
// AutoCert can be set to true if kirin should try to create a valid
// certificate through Let's Encrypt using ServerName.
AutoCert bool `long:"autocert" description:"Automatically create a Let's Encrypt cert using ServerName."`
// StaticRoot is the folder where the static content served by the proxy
// is located.

View File

@@ -1,6 +1,8 @@
listenaddr: "localhost:8081"
staticroot: "./static"
debuglevel: "debug"
servername: kirin.example.com
autocert: false
authenticator:
lndhost: "localhost:10009"