From f9adbfc4bbf3c910f20aef9cbf572a78cced25f3 Mon Sep 17 00:00:00 2001 From: Jacky Date: Mon, 25 Nov 2024 10:26:35 +0800 Subject: [PATCH] chore: update app.example.ini #756 --- app.example.ini | 116 ++++++++++++++++++++++++++---------------------- 1 file changed, 64 insertions(+), 52 deletions(-) diff --git a/app.example.ini b/app.example.ini index 661accf2..40e9b3dc 100644 --- a/app.example.ini +++ b/app.example.ini @@ -1,67 +1,79 @@ -; suppress inspection "DuplicateKeyInSection" for whole file +[app] +PageSize = 20 +JwtSecret = + [server] -HttpPort = 9000 -RunMode = debug -JwtSecret = -Email = -HTTPChallengePort = 9180 -StartCmd = bash -Database = database -CADir = -GithubProxy = -NodeSecret = -Demo = false -PageSize = 10 -HttpHost = 0.0.0.0 -CertRenewalInterval = 7 -RecursiveNameservers = -SkipInstallation = false -Name = -InsecureSkipVerify = false +Host = 0.0.0.0 +Port = 9000 +RunMode = debug -[nginx] -AccessLogPath = /var/log/nginx/access.log -ErrorLogPath = /var/log/nginx/error.log -ConfigDir = -PIDPath = -TestConfigCmd = -ReloadCmd = -RestartCmd = +[database] +Name = database -[openai] -Model = -BaseUrl = -Proxy = -Token = +[auth] +IPWhiteList = +BanThresholdMinutes = 10 +MaxAttempts = 10 [casdoor] -Endpoint = -ClientId = -ClientSecret = -Certificate = -Organization = -Application = -RedirectUri = +Endpoint = +ClientId = +ClientSecret = +CertificatePath = +Organization = +Application = +RedirectUri = -[logrotate] -Enabled = false -CMD = logrotate /etc/logrotate.d/nginx -Interval = 1440 +[cert] +Email = +CADir = +RenewalInterval = 7 +RecursiveNameservers = +HTTPChallengePort = 9180 [cluster] Node = http://10.0.0.1:9000?name=node1&node_secret=my-node-secret&enabled=true Node = http://10.0.0.2:9000?name=node2&node_secret=my-node-secret&enabled=true Node = http://10.0.0.3?name=node3&node_secret=my-node-secret&enabled=true -[auth] -IPWhiteList = -BanThresholdMinutes = 10 -MaxAttempts = 10 - [crypto] -Secret = secret2 +Secret = + +[http] +GithubProxy = https://mirror.ghproxy.com/ +InsecureSkipVerify = false + +[logrotate] +Enabled = false +CMD = logrotate /etc/logrotate.d/nginx +Interval = 1440 + +[nginx] +AccessLogPath = /var/log/nginx/access.log +ErrorLogPath = /var/log/nginx/error.log +LogDirWhiteList = /var/log/nginx +ConfigDir = +PIDPath = +TestConfigCmd = +ReloadCmd = nginx -s reload +RestartCmd = start-stop-daemon --start --quiet --pidfile /var/run/nginx.pid --exec /usr/sbin/nginx + +[node] +Name = Local +Secret = +SkipInstallation = false +Demo = false + +[openai] +BaseUrl = +Token = +Proxy = +Model = gpt-4o + +[terminal] +StartCmd = bash [webauthn] -RPDisplayName = -RPID = -RPOrigins = +RPDisplayName = Nginx UI +RPID = localhost +RPOrigins = http://localhost:3002,http://127.0.0.1:3002,http://192.168.31.158:3002,http://example.com