mirror of
1
Fork 0

[chore] Add envparsing test for advanced-header-filter-mode (#3051)

This commit is contained in:
tobi 2024-06-28 15:28:00 +02:00 committed by GitHub
parent a650f30197
commit 2ddeb9b514
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -11,7 +11,7 @@ EXPECT=$(cat << "EOF"
"accounts-registration-open": true,
"advanced-cookies-samesite": "strict",
"advanced-csp-extra-uris": [],
"advanced-header-filter-mode": "",
"advanced-header-filter-mode": "block",
"advanced-rate-limit-exceptions": [
"192.0.2.0/24",
"127.0.0.1/32"
@ -285,6 +285,7 @@ GTS_ADVANCED_RATE_LIMIT_REQUESTS=6969 \
GTS_ADVANCED_SENDER_MULTIPLIER=-1 \
GTS_ADVANCED_THROTTLING_MULTIPLIER=-1 \
GTS_ADVANCED_THROTTLING_RETRY_AFTER='10s' \
GTS_ADVANCED_HEADER_FILTER_MODE='block' \
GTS_REQUEST_ID_HEADER='X-Trace-Id' \
go run ./cmd/gotosocial/... --config-path internal/config/testdata/test.yaml debug config)