reorter server start code & make http port configurable

This commit is contained in:
6543 2023-02-13 20:12:13 +01:00
parent 46316f9e2f
commit f06d615d43
No known key found for this signature in database
GPG key ID: B8BE6D610E61C862
6 changed files with 77 additions and 68 deletions

View file

@ -14,6 +14,8 @@ import (
"github.com/rs/zerolog/log"
)
const challengePath = "/.well-known/acme-challenge/"
func setupAcmeConfig(configFile, acmeAPI, acmeMail, acmeEabHmac, acmeEabKID string, acmeAcceptTerms bool) (*lego.Config, error) {
var myAcmeAccount AcmeAccount
var myAcmeConfig *lego.Config