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
{{ message }}
This repository was archived by the owner on Feb 14, 2018. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+29-12Lines changed: 29 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,11 @@
6
6
7
7
-[Key Features](#key-features)
8
8
-[Install](#install)
9
+
-[Configuration](#configuration)
9
10
-[Usage](#usage)
10
11
-[API Reference](#api-reference)
11
12
-[Tests](#tests)
13
+
-[Packaging](#packaging)
12
14
-[Issue Reporting](#issue-reporting)
13
15
-[Contributors](#contributors)
14
16
-[License](#license)
@@ -21,21 +23,12 @@
21
23
22
24
## Install
23
25
24
-
It is recommended to use the latest [ngx_openresty bundle](http://openresty.org/) directly as this script (and its dependencies) depend on components that are installed by **openresty**.
26
+
> **IMPORTANT**: **nginx-jwt**is a Lua script that is designed to run on Nginx servers that have the [HttpLuaModule](http://wiki.nginx.org/HttpLuaModule) installed. But ultimately its dependencies require components available in the [OpenResty](http://openresty.org/) distribution of Nginx. Therefore, it is recommended that you use **OpenResty** as your Nginx server, and these instructions make that assumption.
25
27
26
28
Install steps:
27
29
28
-
1. Build the Lua script dependencies using this command:
29
-
30
-
```bash
31
-
./build deps
32
-
```
33
-
34
-
This will create a local`lib/` directory that contains all Lua scripts that the **nginx-jwt** script depends on.
35
-
36
-
**NOTE**: This command should work on Mac OS as well as Ubuntu.
37
-
38
-
1. Deploy the [`nginx-jwt.lua`](nginx-jwt.lua) script as well as the local`lib/` directory (generated in the previous step) to one directory on your Nginx server.
30
+
1. Download the latest archive package from [releases](releases).
31
+
1. Extract the archive and deploy its contents to a directory on your Nginx server.
39
32
1. Specify this directory's path using ngx_lua's [lua_package_path](https://github.com/openresty/lua-nginx-module#lua_package_path) directive:
@@ -388,6 +384,27 @@ All Node.js dependencies (npm packages) for tests are maintained in this [`packa
388
384
389
385
The proxy base Docker image may need to be updated periodically, usually to just rev the version of OpenResty that its using. This can be done by modifying the image's [`Dockerfile`](hosts/proxy/Dockerfile). Any change to this file will automatically result in new image builds when the `build` script is run.
390
386
387
+
## Packaging
388
+
389
+
When a new version of the script needs to be released, the following should be done:
390
+
391
+
> **NOTE**: These steps can only performed by GitHub users with commit access to the project.
392
+
393
+
1. Increment the [Semver](http://semver.org/) version in the [`version.txt`](version.txt) file as needed.
394
+
1. Create a new git tag with the same version value (prefiexed with `v`):
395
+
396
+
```bash
397
+
git tag v$(cat version.txt)
398
+
```
399
+
400
+
1. Push the tag to GitHub.
401
+
1. Create a new GitHub release in [releases](releases) that's associated with the above tag.
402
+
1. Run the following command to create a release package archive and then upload it to the release created above:
403
+
404
+
```bash
405
+
./build package
406
+
```
407
+
391
408
## Issue Reporting
392
409
393
410
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The [Responsible Disclosure Program](https://auth0.com/whitehat) details the procedure for disclosing security issues.
0 commit comments