- Install openresty (nginx w/ luajit & luasec)
- On a mac you can simply run
brew update && brew install homebrew/nginx/openresty - On any other platform, you will need to visit the installation page. for installation details
- Run
maketo install lua libs and build the shared lib - Edit
nginx/nginx.confand modify this path to be an absolute path on your system.
local handlers = {
default = 'file:///Users/apigee/develop/go/src/github.com/30x/zuul/pipes/default.yaml'
}
- Run
./start.shto start nginx (openresty must be on the path)
- If you receive this error
nginx: [warn] 10240 worker_connections exceed open file resource limit: <some number>Increase your resource limit with the commandulimit -n 10240
Your should now be able to run the default pipe. Try curl localhost:9000
- Run
./stop.shto stop nginx
For custom configuration, change the following:
nginx/nginx.conffor host/path definitionspipes/default.yamlfor pipe definitionsplugins/plugins.goto add plugins
Note: If you add plugins, you'll need to run make again.