You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Examples/Nginx/README.md
+9-4Lines changed: 9 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@
6
6
7
7
## Implementation
8
8
9
-
Copy `KnownUserNginxHandler.lua` and folders (`SDK` and `Helpers`) incl. their content to your NGINX filesystem (in the following example we have added it to `usr/queueit`).
9
+
NOTE: The following implementation steps have been developed and tested using this [Docker image](https://github.com/fabiocicerchia/nginx-lua).
10
+
11
+
Copy [KnownUserNginxHandler.lua](https://github.com/queueit/KnownUser.V3.Lua/blob/master/Handlers/KnownUserNginxHandler.lua) and folders ([SDK](https://github.com/queueit/KnownUser.V3.Lua/tree/master/SDK) and [Helpers](https://github.com/queueit/KnownUser.V3.Lua/tree/master/Helpers)) incl. their content to your NGINX filesystem (in the following example we have added it to `usr/queueit`).
10
12
11
13
Then update/add `lua_package_path` in your `nginx.conf` to include the new path (keep `;;` in the end which means default path):
12
14
@@ -45,7 +47,7 @@ server {
45
47
```
46
48
In this example `rewrite_by_lua_block` have been added to default location `\` but you must decide what makes sense in your case.
47
49
48
-
Please note the comments in the code below about providing `integrationconfig.json` and replace`CUSTOMER_ID` and `SECRET_KEY` with correct credentials found in GO Queue-it platform.
50
+
Please note the comments in the code about providing `integrationconfig.json` and replacing`CUSTOMER_ID` and `SECRET_KEY` with correct credentials located in GO Queue-it platform.
49
51
50
52
### Request body trigger (advanced)
51
53
Nginx handler (incl. Lua SDK) supports triggering on request body content. Example could be a POST call with specific item ID where you want end-users to queue up for.
@@ -55,8 +57,11 @@ When enabled you also need to add extra settings to `location` in `conf.d/defaul
55
57
```
56
58
location / {
57
59
...
58
-
lua_need_request_body on; # enabling reading of request body
59
-
client_body_buffer_size 64k; # ensure large buffer for requst body (PLEASE DECIDE WHAT BUFFER SIZE IS RELEVANT IN YOUR CASE)
60
+
# enabling reading of request body
61
+
lua_need_request_body on;
62
+
63
+
# ensure large buffer for requst body (PLEASE DECIDE WHAT BUFFER SIZE IS RELEVANT IN YOUR CASE)
0 commit comments