mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat: support custom CADirURL #16
This commit is contained in:
parent
bc247ffd23
commit
1e304fa4a3
5 changed files with 8 additions and 3 deletions
|
@ -1 +1 @@
|
|||
{"version":"1.7.0","build_id":61,"total_build":131}
|
||||
{"version":"1.7.0","build_id":62,"total_build":132}
|
|
@ -13,7 +13,6 @@ const data = reactive({
|
|||
theme: settingsStore.theme
|
||||
})
|
||||
|
||||
|
||||
function save() {
|
||||
settingsStore.set_theme(data.theme)
|
||||
settingsStore.set_preference_theme(data.theme)
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":"1.7.0","build_id":61,"total_build":131}
|
||||
{"version":"1.7.0","build_id":62,"total_build":132}
|
|
@ -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"
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue