Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ wget https://luarocks.org/releases/luarocks-3.1.3.tar.gz
- $ tar zxpf luarocks-3.1.3.tar.gz
- $ cd luarocks-3.1.3
- $ find / -name lua.h
- $ find / -name lua.h
- $ ./configure --with-lua-include=/usr/local/openresty/luajit/include/luajit-2.1/
- $ make
- $ make install
- $
- $
- $ vim /etc/sudoers
- Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin
- luarocks install lua-cjson 2.1.0.6-1 \
- && luarocks install luajson \
- && luarocks install xml \
- && luarocks install lbase64 \
- && luarocks install md5 \
- && luarocks install --server=http://luarocks.org/manifests/thanhdongnguyen kong-timechecking
- $
- luarocks install httpclient \
- && luarocks install kong-auth-key-jwt-server \
- && luarocks install lua-cjson \
- && luarocks install kong-signature-and-remove-attr
- $
- $ luarocks install kong-auth-signature
- $
- $ vim /etc/kong/kong.conf
- plugins = bundled,kong-timechecking,kong-auth-signature,kong-auth-key-jwt-server
- kong restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement