Skip to content

Commit

Permalink
docs: update docs for BLOCK_LIST
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonraimondi committed Jul 13, 2024
1 parent 250efc6 commit 9dbdb40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NODE_ENV=development
# Comma-separated list of allowed domains for screenshots (optional)
#ALLOW_LIST=jasonraimondi.com,github.com

# Comma-separated list of allowed domains for screenshots (optional)
# Comma-separated list of restricted domains for screenshots (optional)
# BLOCK_LIST=example.com

# Cache-Control header value for the responses (optional)
Expand Down
5 changes: 3 additions & 2 deletions docs/config/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ Configure various settings through environment variables.
- `PORT`: Port number for the application to listen on. Default: `3089`.
- `CACHE_CONTROL`: Cache-Control header value for the responses. Default: `"public, max-age=86400, immutable"`.

## Allow List
## AllowBlock List

- `ALLOW_LIST`: Comma-separated list of allowed domains for screenshots. If undefined or empty, all domains are allowed. Example: `ALLOW_LIST=jasonraimondi.com,github.com`.
- `ALLOW_LIST`: Comma-separated list of **allowed** domains for screenshots. If undefined or empty, all domains are allowed. Example: `ALLOW_LIST=jasonraimondi.com,github.com`.
- `BLOCK_LIST`: Comma-separated list of **restricted** domains for screenshots. If undefined or empty, all domains are allowed. Example: `BLOCK_LIST=localhost,google.com`.

## Playwright Options

Expand Down

0 comments on commit 9dbdb40

Please sign in to comment.