Skip to content

Commit e4ceaf6

Browse files
authored
Update document to clarify that ALLOWED_DOMAINS/BLOCKED_DOMAINS support wildcard (#20016)
1 parent 439ace6 commit e4ceaf6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

custom/conf/app.example.ini

+2
Original file line numberDiff line numberDiff line change
@@ -2231,10 +2231,12 @@ PATH =
22312231
;;
22322232
;; Allowed domains for migrating, default is blank. Blank means everything will be allowed.
22332233
;; Multiple domains could be separated by commas.
2234+
;; Wildcard is supported: "github.com, *.github.com"
22342235
;ALLOWED_DOMAINS =
22352236
;;
22362237
;; Blocklist for migrating, default is blank. Multiple domains could be separated by commas.
22372238
;; When ALLOWED_DOMAINS is not blank, this option has a higher priority to deny domains.
2239+
;; Wildcard is supported.
22382240
;BLOCKED_DOMAINS =
22392241
;;
22402242
;; Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291 (false by default)

docs/content/doc/advanced/config-cheat-sheet.en-us.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1081,8 +1081,8 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
10811081

10821082
- `MAX_ATTEMPTS`: **3**: Max attempts per http/https request on migrations.
10831083
- `RETRY_BACKOFF`: **3**: Backoff time per http/https request retry (seconds)
1084-
- `ALLOWED_DOMAINS`: **\<empty\>**: Domains allowlist for migrating repositories, default is blank. It means everything will be allowed. Multiple domains could be separated by commas.
1085-
- `BLOCKED_DOMAINS`: **\<empty\>**: Domains blocklist for migrating repositories, default is blank. Multiple domains could be separated by commas. When `ALLOWED_DOMAINS` is not blank, this option has a higher priority to deny domains.
1084+
- `ALLOWED_DOMAINS`: **\<empty\>**: Domains allowlist for migrating repositories, default is blank. It means everything will be allowed. Multiple domains could be separated by commas. Wildcard is supported: `github.com, *.github.com`.
1085+
- `BLOCKED_DOMAINS`: **\<empty\>**: Domains blocklist for migrating repositories, default is blank. Multiple domains could be separated by commas. When `ALLOWED_DOMAINS` is not blank, this option has a higher priority to deny domains. Wildcard is supported.
10861086
- `ALLOW_LOCALNETWORKS`: **false**: Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291
10871087
- `SKIP_TLS_VERIFY`: **false**: Allow skip tls verify
10881088

0 commit comments

Comments
 (0)