Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

lua_package_path no longer supported? #40

Open
tylerjxzhang opened this issue Jun 25, 2018 · 2 comments
Open

lua_package_path no longer supported? #40

tylerjxzhang opened this issue Jun 25, 2018 · 2 comments

Comments

@tylerjxzhang
Copy link

On V1.1.1, running into exception unknown directive "lua_package_path" in /etc/nginx/nginx.conf when creating nginx pod.
Specifying the absolute file path to lua in http block in nginx.conf works fine in V1.1 but not V1.1.1

http {
    lua_package_path "/etc/nginx/lua/?.lua;;";

Has there been any changes to loading the nginx-lua package?

@bobrik
Copy link
Contributor

bobrik commented Jun 26, 2018

I've tried running this from the README:

$ docker run --rm -it --net host \
>   -e DEBUG=1 \
>   -e NGO_CALLBACK_SCHEME=http \
>   -e NGO_CLIENT_ID="client id from google" \
>   -e NGO_CLIENT_SECRET="client secret from google" \
>   -e NGO_TOKEN_SECRET="random token secret" \
>   cloudflare/nginx-google-oauth:1.1.1
## /etc/nginx/sites-available/default ##
     1	#
     2	# Generated /etc/nginx/sites-available/default
     3	#
     4	lua_package_path '/etc/nginx/lua/?.lua;';
     5
     6	server {
     7	    listen 80;
...

And it successfully launches nginx with no exceptions.

Are you doing something else?

@danielmotaleite
Copy link
Contributor

unknown directive "lua_package_path"

This errors looks like the nginx you are using do not have lua support... are you sure you are loading the correct docker? or is it a manual config? if manual, check your nginx config

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants