feat: use env to override settings

This commit is contained in:
Jacky 2024-05-06 21:24:53 +08:00
parent a82ad2aea4
commit cb0fb47e1c
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
6 changed files with 159 additions and 28 deletions

View file

@ -1,43 +1,43 @@
[server]
HttpPort = 9000
RunMode = debug
JwtSecret =
Email =
JwtSecret =
Email =
HTTPChallengePort = 9180
StartCmd = bash
Database = database
CADir =
GithubProxy =
NodeSecret =
CADir =
GithubProxy =
NodeSecret =
Demo = false
PageSize = 10
HttpHost = 0.0.0.0
CertRenewalInterval = 7
RecursiveNameservers =
RecursiveNameservers =
[nginx]
AccessLogPath = /var/log/nginx/access.log
ErrorLogPath = /var/log/nginx/error.log
ConfigDir =
PIDPath =
TestConfigCmd =
ReloadCmd =
RestartCmd =
ConfigDir =
PIDPath =
TestConfigCmd =
ReloadCmd =
RestartCmd =
[openai]
Model =
BaseUrl =
Proxy =
Token =
Model =
BaseUrl =
Proxy =
Token =
[casdoor]
Endpoint =
ClientId =
ClientSecret =
Certificate =
Organization =
Application =
RedirectUri =
Endpoint =
ClientId =
ClientSecret =
Certificate =
Organization =
Application =
RedirectUri =
[logrotate]
Enabled = false