Created
January 28, 2010 17:52
-
-
Save dylanz/288967 to your computer and use it in GitHub Desktop.
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
location ~* \.(json)$ { | |
default_type "application/json"; | |
# enable xss, and use "callback" | |
xss_get on; | |
xss_callback_arg callback; | |
# get data from memcached, proxy if not found | |
set memcached_key $key; | |
memcached_pass $uri; | |
error_page 404 @proxy; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment