mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-01 06:50:00 +00:00
[chore] Add envparsing test for advanced-header-filter-mode (#3051)
This commit is contained in:
parent
a650f30197
commit
2ddeb9b514
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,7 @@ EXPECT=$(cat << "EOF"
|
||||||
"accounts-registration-open": true,
|
"accounts-registration-open": true,
|
||||||
"advanced-cookies-samesite": "strict",
|
"advanced-cookies-samesite": "strict",
|
||||||
"advanced-csp-extra-uris": [],
|
"advanced-csp-extra-uris": [],
|
||||||
"advanced-header-filter-mode": "",
|
"advanced-header-filter-mode": "block",
|
||||||
"advanced-rate-limit-exceptions": [
|
"advanced-rate-limit-exceptions": [
|
||||||
"192.0.2.0/24",
|
"192.0.2.0/24",
|
||||||
"127.0.0.1/32"
|
"127.0.0.1/32"
|
||||||
|
@ -285,6 +285,7 @@ GTS_ADVANCED_RATE_LIMIT_REQUESTS=6969 \
|
||||||
GTS_ADVANCED_SENDER_MULTIPLIER=-1 \
|
GTS_ADVANCED_SENDER_MULTIPLIER=-1 \
|
||||||
GTS_ADVANCED_THROTTLING_MULTIPLIER=-1 \
|
GTS_ADVANCED_THROTTLING_MULTIPLIER=-1 \
|
||||||
GTS_ADVANCED_THROTTLING_RETRY_AFTER='10s' \
|
GTS_ADVANCED_THROTTLING_RETRY_AFTER='10s' \
|
||||||
|
GTS_ADVANCED_HEADER_FILTER_MODE='block' \
|
||||||
GTS_REQUEST_ID_HEADER='X-Trace-Id' \
|
GTS_REQUEST_ID_HEADER='X-Trace-Id' \
|
||||||
go run ./cmd/gotosocial/... --config-path internal/config/testdata/test.yaml debug config)
|
go run ./cmd/gotosocial/... --config-path internal/config/testdata/test.yaml debug config)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue