GithubHelp home page GithubHelp logo

Comments (3)

eyolas avatar eyolas commented on September 24, 2024

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.

stupid48 avatar stupid48 commented on September 24, 2024

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.

stupid48 avatar stupid48 commented on September 24, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.