Skip to content

环境变量

适用于 v2.0.0-beta.23 及以上版本

服务器

Configuration SettingEnvironment Variable
HttpPortNGINX_UI_SERVER_HTTP_PORT
RunModeNGINX_UI_SERVER_RUN_MODE
JwtSecretNGINX_UI_SERVER_JWT_SECRET
HTTPChallengePortNGINX_UI_SERVER_HTTP_CHALLENGE_PORT
StartCmdNGINX_UI_SERVER_START_CMD
DatabaseNGINX_UI_SERVER_DATABASE
CADirNGINX_UI_SERVER_CA_DIR
GithubProxyNGINX_UI_SERVER_GITHUB_PROXY
NodeSecretNGINX_UI_SERVER_NODE_SECRET
DemoNGINX_UI_SERVER_DEMO
PageSizeNGINX_UI_SERVER_PAGE_SIZE
HttpHostNGINX_UI_SERVER_HTTP_HOST
CertRenewalIntervalNGINX_UI_SERVER_CERT_RENEWAL_INTERVAL
RecursiveNameserversNGINX_UI_SERVER_RECURSIVE_NAMESERVERS
SkipInstallationNGINX_UI_SERVER_SKIP_INSTALLATION
NameNGINX_UI_SERVER_NAME

Nginx

Configuration SettingEnvironment Variable
AccessLogPathNGINX_UI_NGINX_ACCESS_LOG_PATH
ErrorLogPathNGINX_UI_NGINX_ERROR_LOG_PATH
ConfigDirNGINX_UI_NGINX_CONFIG_DIR
PIDPathNGINX_UI_NGINX_PID_PATH
TestConfigCmdNGINX_UI_NGINX_TEST_CONFIG_CMD
ReloadCmdNGINX_UI_NGINX_RELOAD_CMD
RestartCmdNGINX_UI_NGINX_RESTART_CMD

OpenAI

Configuration SettingEnvironment Variable
ModelNGINX_UI_OPENAI_MODEL
BaseUrlNGINX_UI_OPENAI_BASE_URL
ProxyNGINX_UI_OPENAI_PROXY
TokenNGINX_UI_OPENAI_TOKEN

Casdoor

Configuration SettingEnvironment Variable
EndpointNGINX_UI_CASDOOR_ENDPOINT
ClientIdNGINX_UI_CASDOOR_CLIENT_ID
ClientSecretNGINX_UI_CASDOOR_CLIENT_SECRET
CertificateNGINX_UI_CASDOOR_CERTIFICATE
OrganizationNGINX_UI_CASDOOR_ORGANIZATION
ApplicationNGINX_UI_CASDOOR_APPLICATION
RedirectUriNGINX_UI_CASDOOR_REDIRECT_URI

Logrotate

Configuration SettingEnvironment Variable
EnabledNGINX_UI_LOGROTATE_ENABLED
CMDNGINX_UI_LOGROTATE_CMD
IntervalNGINX_UI_LOGROTATE_INTERVAL

预定义用户

在跳过安装模式下,您可以设置以下环境变量以创建预定义用户:

  • NGINX_UI_PREDEFINED_USER_NAME
  • NGINX_UI_PREDEFINED_USER_PASSWORD

Released under the AGPL-3.0 License. (392cac41)