Comments (3)
Hi,
I don't use rockspec for the moment (but you can propose a PR )
I use KONG_LUA_PACKAGE_PATH and KONG_CUSTOM_PLUGINS
For example my DockerFile:
FROM kong:0.10.3
RUN mkdir -p /usr/local/custom/kong/plugins
ADD key-auth-referer /usr/local/custom/kong/plugins/key-auth-referer
ADD referer /usr/local/custom/kong/plugins/referer
ENV KONG_LUA_PACKAGE_PATH=$KONG_LUA_PACKAGE_PATH;/usr/local/custom/?.lua;;
ENV KONG_CUSTOM_PLUGINS=key-auth-referer,referer
COPY custom-docker-entrypoint.sh /custom-docker-entrypoint.sh
ENTRYPOINT ["/custom-docker-entrypoint.sh"]
EXPOSE 8000 8443 8001 3946
CMD ["kong", "start", "--vv"]
from kong-plugin-key-auth-referer.
Weird. I tried using the environment variables and I'm still getting:
I'm running 0.12.1 by the way...
Error:
/usr/local/share/lua/5.1/kong/cmd/start.lua:62: /usr/local/share/lua/5.1/kong/cmd/start.lua:51: nginx: [error] init_by_lua error: /usr/local/share/lua/5.1/kong/init.lua:165: referer plugin is enabled but not installed;
module 'kong.plugins.referer.handler' not found:No LuaRocks module found for kong.plugins.referer.handler
from kong-plugin-key-auth-referer.
I got it working. I did my own rockspec and finally figured it out. Thanks for responding though...
from kong-plugin-key-auth-referer.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kong-plugin-key-auth-referer.