Skip to content

Commit

Permalink
feat: support custom CADirURL #16
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed Jan 2, 2023
1 parent bc247ff commit 1e304fa
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion frontend/src/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.7.0","build_id":61,"total_build":131}
{"version":"1.7.0","build_id":62,"total_build":132}
1 change: 0 additions & 1 deletion frontend/src/views/preference/Preference.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ const data = reactive({
theme: settingsStore.theme
})
function save() {
settingsStore.set_theme(data.theme)
settingsStore.set_preference_theme(data.theme)
Expand Down
2 changes: 1 addition & 1 deletion frontend/version.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"version":"1.7.0","build_id":61,"total_build":131}
{"version":"1.7.0","build_id":62,"total_build":132}
4 changes: 4 additions & 0 deletions server/pkg/cert/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions server/settings/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type Server struct {
Email string
Database string
StartCmd string
CADir string
Demo bool
PageSize int
}
Expand All @@ -41,6 +42,7 @@ var ServerSettings = &Server{
StartCmd: "login",
Demo: false,
PageSize: 10,
CADir: "",
}

var NginxLogSettings = &NginxLog{
Expand Down

0 comments on commit 1e304fa

Please sign in to comment.