Skip to content

Commit

Permalink
Pass Special:Ask through Varnish, and increase varnish size (waldronl…
Browse files Browse the repository at this point in the history
  • Loading branch information
labster authored Oct 1, 2024
1 parent 625423c commit b0c2b35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions _resources/varnish/default.vcl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ sub vcl_recv {
return (pass);
} /* We only deal with GET and HEAD by default */

# MBSD-304 Pass /Special:Ask/
if (req.url ~ "^/Special:Ask/") {
return(pass);
}

# Pass images
if (req.url ~ "^/w/images/") {
return(pass);
Expand Down
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ services:
tmpfs:
- /var/lib/varnish:exec
environment:
- VARNISH_SIZE=${VARNISH_SIZE:-2G}
- VARNISH_SIZE=${VARNISH_SIZE:-5G}
- VARNISH_STORAGE_KIND=file
- VARNISH_LOG_DIR=/var/log/varnish
- VARNISH_LOG_FORMAT
Expand Down

0 comments on commit b0c2b35

Please sign in to comment.