mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 19:05:55 +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
|
theme: settingsStore.theme
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
settingsStore.set_theme(data.theme)
|
settingsStore.set_theme(data.theme)
|
||||||
settingsStore.set_preference_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"
|
config.CADirURL = "https://acme-staging-v02.api.letsencrypt.org/directory"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if settings.ServerSettings.CADir != "" {
|
||||||
|
config.CADirURL = settings.ServerSettings.CADir
|
||||||
|
}
|
||||||
|
|
||||||
config.Certificate.KeyType = certcrypto.RSA2048
|
config.Certificate.KeyType = certcrypto.RSA2048
|
||||||
|
|
||||||
logChan <- "Creating client facilitates communication with the CA server"
|
logChan <- "Creating client facilitates communication with the CA server"
|
||||||
|
|
|
@ -24,6 +24,7 @@ type Server struct {
|
||||||
Email string
|
Email string
|
||||||
Database string
|
Database string
|
||||||
StartCmd string
|
StartCmd string
|
||||||
|
CADir string
|
||||||
Demo bool
|
Demo bool
|
||||||
PageSize int
|
PageSize int
|
||||||
}
|
}
|
||||||
|
@ -41,6 +42,7 @@ var ServerSettings = &Server{
|
||||||
StartCmd: "login",
|
StartCmd: "login",
|
||||||
Demo: false,
|
Demo: false,
|
||||||
PageSize: 10,
|
PageSize: 10,
|
||||||
|
CADir: "",
|
||||||
}
|
}
|
||||||
|
|
||||||
var NginxLogSettings = &NginxLog{
|
var NginxLogSettings = &NginxLog{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue