]> source.dussan.org Git - gitea.git/commitdiff
Update document to clarify that ALLOWED_DOMAINS/BLOCKED_DOMAINS support wildcard...
authorwxiaoguang <wxiaoguang@gmail.com>
Sat, 18 Jun 2022 19:23:06 +0000 (03:23 +0800)
committerGitHub <noreply@github.com>
Sat, 18 Jun 2022 19:23:06 +0000 (15:23 -0400)
custom/conf/app.example.ini
docs/content/doc/advanced/config-cheat-sheet.en-us.md

index 065c57ef51d5c6cce0bc0d198f8db207de289d64..8e5bfeac8ebe0532c845e9bc2cd647e07be0a823 100644 (file)
@@ -2231,10 +2231,12 @@ PATH =
 ;;
 ;; Allowed domains for migrating, default is blank. Blank means everything will be allowed.
 ;; Multiple domains could be separated by commas.
+;; Wildcard is supported: "github.com, *.github.com"
 ;ALLOWED_DOMAINS =
 ;;
 ;; Blocklist for migrating, 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.
 ;BLOCKED_DOMAINS =
 ;;
 ;; Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291 (false by default)
index 4f041d417edf8b567ae038a8ee7034b1c65f5ab9..bce45d4da0d621a592751655650ebe4c035ace24 100644 (file)
@@ -1081,8 +1081,8 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
 
 - `MAX_ATTEMPTS`: **3**: Max attempts per http/https request on migrations.
 - `RETRY_BACKOFF`: **3**: Backoff time per http/https request retry (seconds)
-- `ALLOWED_DOMAINS`: **\<empty\>**: Domains allowlist for migrating repositories, default is blank. It means everything will be allowed. Multiple domains could be separated by commas.
-- `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.
+- `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`.
+- `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.
 - `ALLOW_LOCALNETWORKS`: **false**: Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291
 - `SKIP_TLS_VERIFY`: **false**: Allow skip tls verify