feat: support custom CADirURL #16

This commit is contained in:
0xJacky 2023-01-02 13:28:19 +08:00
parent bc247ffd23
commit 1e304fa4a3
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
5 changed files with 8 additions and 3 deletions

View file

@ -1 +1 @@
{"version":"1.7.0","build_id":61,"total_build":131}
{"version":"1.7.0","build_id":62,"total_build":132}

View file

@ -13,7 +13,6 @@ const data = reactive({
theme: settingsStore.theme
})
function save() {
settingsStore.set_theme(data.theme)
settingsStore.set_preference_theme(data.theme)

View file

@ -1 +1 @@
{"version":"1.7.0","build_id":61,"total_build":131}
{"version":"1.7.0","build_id":62,"total_build":132}

View file

@ -63,6 +63,10 @@ func IssueCert(domain []string, logChan chan string, errChan chan error) {
config.CADirURL = "https://acme-staging-v02.api.letsencrypt.org/directory"
}
if settings.ServerSettings.CADir != "" {
config.CADirURL = settings.ServerSettings.CADir
}
config.Certificate.KeyType = certcrypto.RSA2048
logChan <- "Creating client facilitates communication with the CA server"

View file

@ -24,6 +24,7 @@ type Server struct {
Email string
Database string
StartCmd string
CADir string
Demo bool
PageSize int
}
@ -41,6 +42,7 @@ var ServerSettings = &Server{
StartCmd: "login",
Demo: false,
PageSize: 10,
CADir: "",
}
var NginxLogSettings = &NginxLog{