Skip to content

Instantly share code, notes, and snippets.

@FireyFly
Last active August 29, 2015 14:11
Show Gist options
  • Save FireyFly/d4676e9e03cd187ab482 to your computer and use it in GitHub Desktop.
Save FireyFly/d4676e9e03cd187ab482 to your computer and use it in GitHub Desktop.
-- for testing
function server(url)
return function (tbl)
print(url)
for k,v in pairs(tbl) do
print(k,v)
end
end
end
---------------------------------------------
server 'http://git.reaver-project.org:80' {
root = '/var/www/git/static';
proxy_redirect_if_not_exists = true;
proxy_redirect = 'guriwesu1.griwes.info:8084';
}
-- or
server 'http://git.reaver-project.org:80' {
root = '/var/www/git/static';
proxy = {
redirect_if_not_exists = true;
redirect = 'guriwesu1.griwes.info:8084';
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment