Skip to content

Instantly share code, notes, and snippets.

@xboston
Created October 17, 2015 17:06
Show Gist options
  • Save xboston/b57008683f609ea1a6cc to your computer and use it in GitHub Desktop.
Save xboston/b57008683f609ea1a6cc to your computer and use it in GitHub Desktop.
location ~* ^/secure/ {
# sectoken=SUPERKEY
set $tokenheader $http_sectoken;
if ($tokenheader != "SUPERKEY") {
#add_header X-SUPERKEY $tokenheader;
return 403;
}
root /var/www/img2/images;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment