Skip to content

Environment Variables ​

Applicable for version v2.0.0-beta.37 and above.

App ​

Configuration SettingEnvironment Variable
PageSizeNGINX_UI_APP_PAGE_SIZE
JwtSecretNGINX_UI_APP_JWT_SECRET

Server ​

Configuration SettingEnvironment Variable
HostNGINX_UI_SERVER_HOST
PortNGINX_UI_SERVER_PORT
RunModeNGINX_UI_SERVER_RUN_MODE
EnableHTTPSNGINX_UI_SERVER_ENABLE_HTTPS
EnableH2NGINX_UI_SERVER_ENABLE_H2
EnableH3NGINX_UI_SERVER_ENABLE_H3

Database ​

Configuration SettingEnvironment Variable
NameNGINX_UI_DB_NAME

Auth ​

Configuration SettingEnvironment Variable
IPWhiteListNGINX_UI_AUTH_IP_WHITE_LIST
TrustedProxiesNGINX_UI_AUTH_TRUSTED_PROXIES
BanThresholdMinutesNGINX_UI_AUTH_BAN_THRESHOLD_MINUTES
MaxAttemptsNGINX_UI_AUTH_MAX_ATTEMPTS
SecureSessionTimeoutMinutesNGINX_UI_AUTH_SECURE_SESSION_TIMEOUT_MINUTES

Casdoor ​

Configuration SettingEnvironment Variable
EndpointNGINX_UI_CASDOOR_ENDPOINT
ClientIdNGINX_UI_CASDOOR_CLIENT_ID
ClientSecretNGINX_UI_CASDOOR_CLIENT_SECRET
CertificatePathNGINX_UI_CASDOOR_CERTIFICATE_PATH
OrganizationNGINX_UI_CASDOOR_ORGANIZATION
ApplicationNGINX_UI_CASDOOR_APPLICATION
RedirectUriNGINX_UI_CASDOOR_REDIRECT_URI

Oidc ​

Configuration SettingEnvironment Variable
EndpointNGINX_UI_OIDC_ENDPOINT
ClientIdNGINX_UI_OIDC_CLIENT_ID
ClientSecretNGINX_UI_OIDC_CLIENT_SECRET
RedirectUriNGINX_UI_OIDC_REDIRECT_URI
ScopesNGINX_UI_OIDC_SCOPES
IdentifierNGINX_UI_OIDC_IDENTIFIER

Cert ​

Configuration SettingEnvironment Variable
EmailNGINX_UI_CERT_EMAIL
CADirNGINX_UI_CERT_CA_DIR
RenewalIntervalNGINX_UI_CERT_RENEWAL_INTERVAL
RecursiveNameserversNGINX_UI_CERT_RECURSIVE_NAMESERVERS
HTTPChallengePortNGINX_UI_CERT_HTTP_CHALLENGE_PORT

Cluster ​

Configuration SettingEnvironment Variable
NodeNGINX_UI_CLUSTER_NODE

Crypto ​

Configuration SettingEnvironment Variable
SecretNGINX_UI_CRYPTO_SECRET

Http ​

Configuration SettingEnvironment Variable
GithubProxyNGINX_UI_HTTP_GITHUB_PROXY
HTTPProxyNGINX_UI_HTTP_HTTP_PROXY
InsecureSkipVerifyNGINX_UI_HTTP_INSECURE_SKIP_VERIFY
WebSocketTrustedOriginsNGINX_UI_HTTP_WEBSOCKET_TRUSTED_ORIGINS

Logrotate ​

Configuration SettingEnvironment Variable
EnabledNGINX_UI_LOGROTATE_ENABLED
CMDNGINX_UI_LOGROTATE_CMD
IntervalNGINX_UI_LOGROTATE_INTERVAL

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
SbinPathNGINX_UI_NGINX_SBIN_PATH
TestConfigCmdNGINX_UI_NGINX_TEST_CONFIG_CMD
ReloadCmdNGINX_UI_NGINX_RELOAD_CMD
RestartCmdNGINX_UI_NGINX_RESTART_CMD
LogDirWhiteListNGINX_UI_NGINX_LOG_DIR_WHITE_LIST
StubStatusPortNGINX_UI_NGINX_STUB_STATUS_PORT
ContainerNameNGINX_UI_NGINX_CONTAINER_NAME
MaintenanceDirNGINX_UI_NGINX_MAINTENANCE_DIR
MaintenanceTemplateNGINX_UI_NGINX_MAINTENANCE_TEMPLATE

Nginx Log ​

Configuration SettingEnvironment Variable
IndexingEnabledNGINX_UI_NGINX_LOG_INDEXING_ENABLED
IndexPathNGINX_UI_NGINX_LOG_INDEX_PATH
IndexCustomMMDBNGINX_UI_NGINX_LOG_INDEX_CUSTOM_MMDB

Node ​

Configuration SettingEnvironment Variable
NameNGINX_UI_NODE_NAME
SecretNGINX_UI_NODE_SECRET
SkipInstallationNGINX_UI_NODE_SKIP_INSTALLATION

OpenAI ​

Configuration SettingEnvironment Variable
ProviderNGINX_UI_OPENAI_PROVIDER
ModelNGINX_UI_OPENAI_MODEL
BaseUrlNGINX_UI_OPENAI_BASE_URL
ProxyNGINX_UI_OPENAI_PROXY
TokenNGINX_UI_OPENAI_TOKEN

Terminal ​

Configuration SettingEnvironment Variable
StartCmdNGINX_UI_TERMINAL_START_CMD

Webauthn ​

Configuration SettingEnvironment Variable
RPDisplayNameNGINX_UI_WEBAUTHN_RP_DISPLAY_NAME
RPIDNGINX_UI_WEBAUTHN_RPID
RPOriginsNGINX_UI_WEBAUTHN_RP_ORIGINS

Predefined User ​

In skip installation mode, you can set the following environment variables to create a predefined user:

  • NGINX_UI_PREDEFINED_USER_NAME
  • NGINX_UI_PREDEFINED_USER_PASSWORD

Host SSH Control ​

INFO

These variables are used when Nginx UI controls a host-installed nginx service from a Docker container via SSH.

VariableDescription
NGINX_UI_NGINX_HOST_MODESet to ssh to enable host SSH control
NGINX_UI_NGINX_HOST_ACCESS_MODEsftp or mounted. Required in SSH mode: whether the container reaches the host nginx files over SFTP or through bind mounts
NGINX_UI_NGINX_HOST_KEY_SOURCEgenerated (default), existing or provided: where the SSH private key comes from
NGINX_UI_NGINX_HOST_ADDRESSRemote host:port, e.g. host.docker.internal:22
NGINX_UI_NGINX_HOST_USERSSH user on the host
NGINX_UI_NGINX_HOST_PRIVATE_KEY_PATHPrivate key path inside the container
NGINX_UI_NGINX_HOST_KNOWN_HOSTS_PATHknown_hosts allow-list path inside the container
NGINX_UI_NGINX_HOST_SUDO_PREFIXDefault sudo -n
NGINX_UI_NGINX_HOST_SERVICE_MANAGERsystemd (default) or launchd
NGINX_UI_NGINX_HOST_SYSTEMD_UNIT_NAMEDefault nginx.service
NGINX_UI_NGINX_HOST_SYSTEMCTL_PATHAbsolute path to systemctl on the host
NGINX_UI_NGINX_HOST_LAUNCHD_SERVICElaunchd label. Default homebrew.mxcl.nginx
NGINX_UI_NGINX_HOST_LAUNCHCTL_PATHAbsolute path to launchctl. Default /bin/launchctl
NGINX_UI_NGINX_HOST_CONFIG_DIRHost-side nginx config dir
NGINX_UI_NGINX_HOST_LOG_DIRHost-side nginx log dir
NGINX_UI_NGINX_SBIN_PATHOptional in SSH mode: the absolute path of the nginx binary on the host. When empty, Nginx UI resolves the service manager default (/usr/sbin/nginx for systemd, /opt/homebrew/opt/nginx/bin/nginx for launchd). The generated sudoers allow-list matches the resolved path exactly
NGINX_UI_DISABLE_BUNDLED_NGINXSet to true to disable the container's bundled nginx (required in SSH mode)

Released under the AGPL-3.0 License. (6e55a749)