conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Exclude /rest and /oauth from basic auth\n"
},
{
"from": "human",
"value": " # Check Basic auth against a table. /admin URLs are not basic auth protected to avoid the possibility of people\n # locking themselves out\n if ( table.lookup(magentomodule_basic_auth, r... | vcl | chosen |
[
{
"from": "system",
"value": "Remove statement that conflicts with built-in WAF bypass\n"
},
{
"from": "human",
"value": "# Specify one or multiple ACLs that are allowed to bypass WAF blocking ie. no WAF rules are going to trigger for those IPs.\nunset req.http.bypasswaf;\n if(####WAF_ALLOWLI... | vcl | chosen |
[
{
"from": "system",
"value": "Allow the tarpit interval to be changed\n"
},
{
"from": "human",
"value": "# Tarpit Rate limited requests\nif ( resp.status == 429 && req.http.Rate-Limit ) {\n resp.tarpit(5, 100000);\n}\n"
},
{
"from": "gpt",
"value": "# Tarpit Rate limited requests\ni... | vcl | chosen |
[
{
"from": "system",
"value": "Update Fastly VCL to what we are actually running on vastly.\n"
},
{
"from": "human",
"value": "\nsub vcl_deliver {\n#FASTLY deliver\n\tif (resp.status == 301) {\n\t\tset req.http.Fastly-force-Shield = \"1\";\n\t\tset req.url = resp.http.Location;\n\t\trestart;\n\t}... | vcl | chosen |
[
{
"from": "system",
"value": "Revert \"Only bypass for logged in users, not logged out\"\n\nThis reverts commit dad7c5232be6929aea02262aa5a784d30cbe6880.\n"
},
{
"from": "human",
"value": "# Pass all local or login/admin requests straight through\nif (req.http.Host ~ \"^local\\.\" || (req.url ~ ... | vcl | chosen |
[
{
"from": "system",
"value": "Raise a 403 error instead of a redirect\n"
},
{
"from": "human",
"value": "\nsub vcl_recv {\n#FASTLY recv\n\n # We want to Force SSL for the WebUI by redirecting to the HTTPS version of\n # the page, however for API calls we want to return an error code direct... | vcl | chosen |
[
{
"from": "system",
"value": "Remove everything except the core settings\n"
},
{
"from": "human",
"value": "vcl 4.0;\nimport std;\n\nbackend default {\n .host = \"::BACKEND_PORT_8000_TCP_ADDR::\";\n .port = \"::BACKEND_PORT_8000_TCP_PORT::\";\n # .probe = {\n # .url = \"/\";\n ... | vcl | chosen |
[
{
"from": "system",
"value": "Set large minimum TTL for now\n"
},
{
"from": "human",
"value": "backend default {\n .host = \"127.0.0.1\";\n .port = \"80\";\n}\n\nsub vcl_recv {\n set req.http.Host = \"www.trevorparker.com\";\n if (req.http.X-Forwarded-Proto !~ \"(?i)https\") {\n set req.h... | vcl | chosen |
[
{
"from": "system",
"value": "Reset cache control headers only on content that contains X-Magento-Tags.\nOtherwise we run the risk of unsetting Cache-Control headers of objects\nwe didn't intend.\n"
},
{
"from": "human",
"value": " # Send no cache headers to end users for non-static content. ... | vcl | chosen |
[
{
"from": "system",
"value": "Apply IO header on both shield and edge\n"
},
{
"from": "human",
"value": "if (!req.http.Fastly-FF && req.url.ext ~ \"(?i)^(gif|png|jpg|jpeg|webp)$\") {\n\n set req.http.X-Fastly-Imageopto-Api = \"fastly\";\n\n if (req.url.qs != \"\") {\n set req.url = req.url.... | vcl | chosen |
[
{
"from": "system",
"value": "Make sure we also allow /pub/static\n"
},
{
"from": "human",
"value": " # Check Basic auth against a table. /admin URLs are no basic auth protected to avoid the possibility of people\n # locking themselves out\n if ( table.lookup(magentomodule_basic_auth, regsub(... | vcl | chosen |
[
{
"from": "system",
"value": "Make X-Forwarded-Host compatible with Fastly shielding\n"
},
{
"from": "human",
"value": "set req.http.X-Forwarded-Host = req.http.host;\n"
},
{
"from": "gpt",
"value": "if (!req.http.Fastly-FF) {\n set req.http.X-Forwarded-Host = req.http.host;\n}\n"
... | vcl | chosen |
[
{
"from": "system",
"value": "Fix TTL and set to 1 hour\n"
},
{
"from": "human",
"value": "backend default {\n .host = \"127.0.0.1\";\n .port = \"80\";\n}\n\nsub vcl_fetch {\n set obj.ttl = 12h;\n}\n\nsub vcl_recv {\n set req.http.Host = \"www.trevorparker.com\";\n if (req.http.X-Forwarded-... | vcl | chosen |
[
{
"from": "system",
"value": "Disable http auth for GraphQL endpoint"
},
{
"from": "human",
"value": " # Check Basic auth against a table. /admin URLs are not basic auth protected to avoid the possibility of people\n # locking themselves out. /oauth and /rest have their own auth so we can skip... | vcl | chosen |
[
{
"from": "human",
"value": "Add vcl sample from previous commit.\n"
},
{
"from": "gpt",
"value": "/*\n This is the minimal VCL configuration required for passing the Apache\n mod_pagespeed system tests. To install varnish and start the varnish\n server at the right port, do the following:\n ... | vcl | chosen |
[
{
"from": "human",
"value": "Add VCL snippet for force TLS that executes before all the other snippets\n"
},
{
"from": "gpt",
"value": "# Force SSL immediately to avoid magento module VCL stripping off\n# google campaign ids like gclid\n if (!req.http.Fastly-SSL) { \n error 972 \"Force S... | vcl | chosen |
[
{
"from": "human",
"value": "Add Snippet for Basic Auth\n"
},
{
"from": "gpt",
"value": " if (obj.status == 971) {\n set obj.http.Content-Type = \"text/html; charset=utf-8\";\n set obj.http.WWW-Authenticate = \"Basic realm=Secured\";\n set obj.status = 401;\n synth... | vcl | chosen |
README.md exists but content is empty.
- Downloads last month
- 5