chore: update docs of auth
parent
3b937ee0f4
commit
d6b22c157c
@ -0,0 +1,18 @@
|
||||
# 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.
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue