mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 19:05:55 +02:00
18 lines
518 B
Markdown
18 lines
518 B
Markdown
# 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`
|
|
|
|
```ini
|
|
[auth]
|
|
IPWhiteList = 10.0.0.1
|
|
IPWhiteList = 10.0.0.2
|
|
IPWhiteList = 10.0.0.3
|
|
```
|
|
|
|
By 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.
|