diff --git a/config.go b/config.go index 50e2894..4af7a2b 100644 --- a/config.go +++ b/config.go @@ -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. diff --git a/sample-conf.yaml b/sample-conf.yaml index adfa26b..6bf5d19 100644 --- a/sample-conf.yaml +++ b/sample-conf.yaml @@ -1,6 +1,8 @@ listenaddr: "localhost:8081" staticroot: "./static" debuglevel: "debug" +servername: kirin.example.com +autocert: false authenticator: lndhost: "localhost:10009"