Update config.yaml
Browse files- config.yaml +2 -3
config.yaml
CHANGED
@@ -22,13 +22,12 @@ port: 7860
|
|
22 |
autorunPortOverride: -1
|
23 |
# -- SECURITY CONFIGURATION --
|
24 |
# Toggle whitelist mode
|
25 |
-
whitelistMode:
|
26 |
# Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
|
27 |
enableForwardedWhitelist: true
|
28 |
# Whitelist of allowed IP addresses
|
29 |
whitelist:
|
30 |
-
-
|
31 |
-
- 127.0.0.1
|
32 |
# Toggle basic authentication for endpoints
|
33 |
basicAuthMode: false
|
34 |
# Basic authentication credentials
|
|
|
22 |
autorunPortOverride: -1
|
23 |
# -- SECURITY CONFIGURATION --
|
24 |
# Toggle whitelist mode
|
25 |
+
whitelistMode: true
|
26 |
# Whitelist will also verify IP in X-Forwarded-For / X-Real-IP headers
|
27 |
enableForwardedWhitelist: true
|
28 |
# Whitelist of allowed IP addresses
|
29 |
whitelist:
|
30 |
+
- 0.0.0.0/0 # 允许所有 IPv4 地址访问
|
|
|
31 |
# Toggle basic authentication for endpoints
|
32 |
basicAuthMode: false
|
33 |
# Basic authentication credentials
|