Skip to content

Commit dec70f1

Browse files
authored
Apply allow/block
1 parent a078736 commit dec70f1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

custom/conf/app.example.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1214,9 +1214,9 @@ STORAGE_TYPE = local
12141214
;MINIO_USE_SSL = false
12151215

12161216
[migration]
1217-
; Whitelist for migrating, default is blank. Blank means everything will be allowed.
1217+
; Allowlist for migrating, default is blank. Blank means everything will be allowed.
12181218
; Multiple domains could be separated by commas.
12191219
ALLOWLISTED_DOMAINS =
1220-
; Blacklist for migrating, default is blank. Multiple domains could be separated by commas.
1221-
; When WHITELISTED_DOMAINS is not blank, this option will be ignored.
1220+
; Blocklist for migrating, default is blank. Multiple domains could be separated by commas.
1221+
; When ALLOWLISTED_DOMAINS is not blank, this option will be ignored.
12221222
BLOCKLISTED_DOMAINS =

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -904,8 +904,8 @@ And used by `[attachment]`, `[lfs]` and etc. as `STORAGE_TYPE`.
904904

905905
## Migraions (`migration`)
906906

907-
- `ALLOWLISTED_DOMAINS`: ****: Domains whitelist for migrating repositories, default is blank. It means everything will be allowed. Multiple domains could be separated by commas.
908-
- `BLOCKLISTED_DOMAINS`: ****: Domains blacklist for migrating repositories, default is blank. Multiple domains could be separated by commas. When `ALLOWLISTED_DOMAINS` is not blank, this option will be ignored.
907+
- `ALLOWLISTED_DOMAINS`: ****: Domains allowlist for migrating repositories, default is blank. It means everything will be allowed. Multiple domains could be separated by commas.
908+
- `BLOCKLISTED_DOMAINS`: ****: Domains blocklist for migrating repositories, default is blank. Multiple domains could be separated by commas. When `ALLOWLISTED_DOMAINS` is not blank, this option will be ignored.
909909

910910
## Other (`other`)
911911

modules/matchlist/matchlist.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import (
1010
"github.com/gobwas/glob"
1111
)
1212

13-
// Matchlist represents a black or white list
13+
// Matchlist represents a block or allow list
1414
type Matchlist struct {
1515
rules []string
1616
ruleGlobs []glob.Glob
1717
}
1818

19-
// NewMatchlist creates a new black or white list
19+
// NewMatchlist creates a new block or allow list
2020
func NewMatchlist(rules ...string) (*Matchlist, error) {
2121
for i := range rules {
2222
rules[i] = strings.ToLower(rules[i])

0 commit comments

Comments
 (0)