This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"property-id": "<insert perperty ID>", | |
"secret-key": "<insert secret key>", | |
"monitor-only": true | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"key":"<ShieldsquareAPIKey>", | |
"enabled":true, | |
"deployment_number":"<IntegrationDeploymentNumber>", | |
"support_email":"<YourSupportEmail>" | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"api_key": "<Kraken API Key>", | |
"api_key_secret": "<Kraken API Secret", | |
"cache_version": "v1", | |
"lossy": true, | |
"enabled": true, | |
"ttl": 604800, | |
"s3": { | |
"key": "<S3 Bucket Key>", | |
"secret": "<S3 Bucket Secret>", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html><head></head><body><div style='margin: auto; width: 100%;'><h1>This site is busy, you are in a queue</div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"api_key": "YourGoSquaredAPIKeyNeedsToGoHere", | |
"threshold": 3000, | |
"enabled": false, | |
"section_visitors_version": "1", | |
"hostname": "YourHostNameNeedsToGoHere" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Requires section.io OpenResty module | |
--Requires an "Alternate Origin" configured that points to an HTTP log ingestion endpoint: https://www.section.io/docs/how-to/multiple-origins/ | |
--There are several files that need to be created in the "openresty" folder in the section.io configuration. Recommend cloning the git repository from "Advanced Config" menu in section.io portal. | |
--server.conf should contain: | |
location / { | |
#https://github.com/openresty/lua-nginx-module#log_by_lua_file | |
log_by_lua_file /opt/proxy_config/log.lua; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You must set a grace period on any object you put in cache for this to work. | |
sub vcl_hit { | |
if (obj.ttl >= 0s) { | |
return (deliver); | |
} | |
if (obj.ttl + obj.grace > 0s) { | |
return (deliver); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub vcl_recv { | |
if (! req.http.Authorization ~ "Basic dXNlcm5hbWU6cGFzc3dvcmQ=") { | |
# This is checking for base64 encoded username:password combination | |
return(synth(401, "Authentication required")); | |
} | |
unset req.http.Authorization; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cache statics | |
if ((bereq.url ~ "\.(css)(?=\?|&|$)" && beresp.http.Content-Type ~ "text/css") | |
|| (bereq.url ~ "\.(jpe?g|png|gif|ico)(?=\?|&|$)" && beresp.http.Content-Type ~ "image/") | |
|| (bereq.url ~ "\.(js)(?=\?|&|$)" && beresp.http.Content-Type ~ "javascript") | |
|| (bereq.url ~ "\.(swf)(?=\?|&|$)" && beresp.http.Content-Type ~ "application/x-shockwave-flash") | |
|| (bereq.url ~ "\.(woff)(?=\?|&|$)" && beresp.http.Content-Type ~ "font")) { | |
set beresp.http.Cache-Control = "public, max-age=604800" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
acl whitelist_geo { | |
"13.13.22.30"; | |
"123.39.96.0"/24; | |
} | |
acl geo_to_au { | |
"1.1.22.30"; | |
"133.29.93.0"/30; | |
} |
NewerOlder