Skip to content

Commit 7085f5c

Browse files
update example config
1 parent a166241 commit 7085f5c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This module depends on the [JWT C Library](https://github.com/benmcollins/libjwt
1212

1313
## Directives
1414

15-
This module requires several new `nginx.conf` directives, which can be specified at the `http`, `server`, or `location` levels.
15+
This module requires several new `nginx.conf` directives, which can be specified at the `http`, `server`, or `location` levels. See the [example NGINX config file](examples/nginx.conf) for more info.
1616

1717
| Directive | Description |
1818
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |

resources/nginx.conf renamed to examples/nginx.conf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ http {
1818
'"$http_user_agent" "$http_x_forwarded_for"';
1919
access_log /var/log/nginx/access.log main;
2020

21+
auth_jwt_enabled on;
22+
auth_jwt_algorithm 'put_algo_here';
23+
auth_jwt_key 'put_key_here';
24+
auth_jwt_location 'COOKIE=auth-token';
25+
auth_jwt_redirect on;
26+
auth_jwt_loginurl 'put_login_url_here';
27+
28+
# Include other auth_jwt_* directives as needed.
29+
2130
sendfile on;
2231
keepalive_timeout 65;
2332

0 commit comments

Comments
 (0)