Auth
From v2.0.0-beta.26, you can authorization settings in the auth section of the configuration file.
IPWhiteList
- Type:
string - Example:
10.0.0.1
[auth]
IPWhiteList = 10.0.0.1
IPWhiteList = 10.0.0.2
IPWhiteList = 2001:0000:130F:0000:0000:09C0:876A:130BBy default, if you do not set the IPWhiteList, all IP addresses are allowed to access the Nginx UI.
Once you set the IPWhiteList, only the users from IP addresses in the list and 127.0.0.1 can access the Nginx UI, others will receive a 403 Forbidden error.
TrustedProxies
- Type:
string - Example:
127.0.0.1
[auth]
TrustedProxies = 127.0.0.1
TrustedProxies = ::1
TrustedProxies = 10.0.0.0/8TrustedProxies controls which direct proxy IP addresses or CIDRs may supply X-Forwarded-For and X-Real-IP. Leave it empty when Nginx UI is not behind a reverse proxy. The official Docker image automatically trusts only its bundled loopback Nginx proxy. Custom reverse proxies must be listed explicitly, and the application must be restarted after changing this setting. Never use 0.0.0.0/0 or ::/0.
BanThresholdMinutes
- Type:
int - Default:
10
By default, if a user fails to log in 10 times within 10 minutes, the user will be banned for 10 minutes.
MaxAttempts
- Type:
int - Default:
10
By default, a user can try to log in 10 times within 10 minutes.
SecureSessionTimeoutMinutes
- Type:
int - Default:
10
Controls how many minutes a successful TOTP or passkey verification authorizes protected operations. The setting does not change the normal login session lifetime. Values must be positive; missing, zero, and negative values use the 10-minute default.