mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
fix: gen code generator; some unit tests
This commit is contained in:
parent
33a996e777
commit
918f920d57
8 changed files with 86 additions and 178 deletions
|
@ -1,82 +0,0 @@
|
|||
[app]
|
||||
PageSize = 20
|
||||
JwtSecret = newSecret
|
||||
|
||||
[server]
|
||||
Host = 0.0.0.0
|
||||
Port = 9000
|
||||
RunMode = debug
|
||||
|
||||
[database]
|
||||
Host =
|
||||
Port = 0
|
||||
User =
|
||||
Password =
|
||||
Name = database
|
||||
TablePrefix =
|
||||
|
||||
[auth]
|
||||
IPWhiteList = 127.0.0.1
|
||||
BanThresholdMinutes = 10
|
||||
MaxAttempts = 10
|
||||
|
||||
[casdoor]
|
||||
Endpoint = http://127.0.0.1:8001
|
||||
ClientId = 1234567890qwertyuiop
|
||||
ClientSecret = 1234567890qwertyuiop1234567890qwertyuiop
|
||||
CertificatePath = ./casdoor.pub
|
||||
Organization = built-in
|
||||
Application = nginx-ui-dev
|
||||
RedirectUri =
|
||||
|
||||
[cert]
|
||||
Email = test
|
||||
CADir = /test
|
||||
CertRenewalInterval = 7
|
||||
RecursiveNameservers = 8.8.8.8,1.1.1.1
|
||||
HTTPChallengePort = 9181
|
||||
|
||||
[cluster]
|
||||
Node = http://10.0.0.1:9000?name=test&node_secret=asdfghjklqwertyuiopzxcvbnm&enabled=true
|
||||
|
||||
[crypto]
|
||||
Secret = 12345678901234567890
|
||||
|
||||
[http]
|
||||
GithubProxy = https://mirror.ghproxy.com/
|
||||
InsecureSkipVerify = true
|
||||
|
||||
[logrotate]
|
||||
Enabled = true
|
||||
CMD = logrotate /etc/logrotate.d/nginx
|
||||
Interval = 1440
|
||||
|
||||
[nginx]
|
||||
AccessLogPath =
|
||||
ErrorLogPath =
|
||||
LogDirWhiteList = /var/log/nginx
|
||||
ConfigDir =
|
||||
PIDPath =
|
||||
TestConfigCmd =
|
||||
ReloadCmd =
|
||||
RestartCmd =
|
||||
|
||||
[node]
|
||||
Name = Local
|
||||
Secret =
|
||||
SkipInstallation = false
|
||||
Demo = false
|
||||
|
||||
[openai]
|
||||
BaseUrl =
|
||||
Token =
|
||||
Proxy =
|
||||
Model = gpt-4o
|
||||
|
||||
[terminal]
|
||||
StartCmd = bash
|
||||
|
||||
[webauthn]
|
||||
RPDisplayName = Nginx UI
|
||||
RPID = localhost
|
||||
RPOrigins = http://localhost:3002,http://127.0.0.1:3002
|
|
@ -39,7 +39,7 @@ func TestSetup(t *testing.T) {
|
|||
// Cert
|
||||
_ = os.Setenv("NGINX_UI_CERT_EMAIL", "test")
|
||||
_ = os.Setenv("NGINX_UI_CERT_CA_DIR", "/test/ca")
|
||||
_ = os.Setenv("NGINX_UI_CERT_CERT_RENEWAL_INTERVAL", "14")
|
||||
_ = os.Setenv("NGINX_UI_CERT_RENEWAL_INTERVAL", "14")
|
||||
_ = os.Setenv("NGINX_UI_CERT_RECURSIVE_NAMESERVERS", "8.8.8.8,1.1.1.1")
|
||||
_ = os.Setenv("NGINX_UI_CERT_HTTP_CHALLENGE_PORT", "1080")
|
||||
|
||||
|
@ -72,7 +72,7 @@ func TestSetup(t *testing.T) {
|
|||
|
||||
// Node
|
||||
_ = os.Setenv("NGINX_UI_NODE_NAME", "test")
|
||||
_ = os.Setenv("NGINX_UI_NODE_NODE_SECRET", "nodeSecret")
|
||||
_ = os.Setenv("NGINX_UI_NODE_SECRET", "nodeSecret")
|
||||
_ = os.Setenv("NGINX_UI_NODE_SKIP_INSTALLATION", "true")
|
||||
_ = os.Setenv("NGINX_UI_NODE_DEMO", "true")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue