mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
refactor(preference): show more settings
This commit is contained in:
parent
59947a35db
commit
a0c005f314
17 changed files with 400 additions and 213 deletions
|
@ -5,7 +5,7 @@ import "github.com/go-acme/lego/v4/lego"
|
|||
type Cert struct {
|
||||
Email string `json:"email" protected:"true"`
|
||||
CADir string `json:"ca_dir" binding:"omitempty,url"`
|
||||
RenewalInterval int `json:"cert_renewal_interval" binding:"min=7,max=21"`
|
||||
RenewalInterval int `json:"renewal_interval" binding:"min=7,max=21"`
|
||||
RecursiveNameservers []string `json:"recursive_nameservers" binding:"omitempty,dive,hostname_port"`
|
||||
HTTPChallengePort string `json:"http_challenge_port"`
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package settings
|
|||
import "github.com/uozi-tech/cosy/settings"
|
||||
|
||||
type Cluster struct {
|
||||
Node []string `ini:",,allowshadow"`
|
||||
Node []string `json:"node" ini:",,allowshadow"`
|
||||
}
|
||||
|
||||
var ClusterSettings = &Cluster{
|
||||
|
|
|
@ -3,7 +3,7 @@ package settings
|
|||
import "crypto/md5"
|
||||
|
||||
type Crypto struct {
|
||||
Secret string
|
||||
Secret string `json:"secret"`
|
||||
}
|
||||
|
||||
var CryptoSettings = &Crypto{}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package settings
|
||||
|
||||
type Database struct {
|
||||
Name string
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
var DatabaseSettings = &Database{
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package settings
|
||||
|
||||
type WebAuthn struct {
|
||||
RPDisplayName string
|
||||
RPID string
|
||||
RPOrigins []string
|
||||
RPDisplayName string `json:"rp_display_name"`
|
||||
RPID string `json:"rpid"`
|
||||
RPOrigins []string `json:"rp_origins"`
|
||||
}
|
||||
|
||||
var WebAuthnSettings = &WebAuthn{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue