Created
April 28, 2016 14:53
-
-
Save matiasinsaurralde/343f8a2832c680a332fac95e8ca91757 to your computer and use it in GitHub Desktop.
nginx
This file contains hidden or 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 /test { | |
default_type 'text/plain'; | |
content_by_lua ' | |
local webengine = require("webengine") | |
local url = ngx.var.arg_url | |
ngx.say( webengine.render( url ) ) | |
return | |
'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment