Skip to content

Commit 55679d0

Browse files
committed
for testing, a scenario to use the jwt auth module
for testing, a scenario to use the jwt auth module
1 parent 68d2b08 commit 55679d0

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

resources/test-jwt-nginx.conf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
server {
2+
auth_jwt_key "00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF";
3+
auth_jwt_loginurl "https://teslagov.com";
4+
auth_jwt_enabled off;
5+
6+
listen 8000;
7+
server_name localhost;
8+
9+
___location ~ ^/secure/ {
10+
auth_jwt_enabled on;
11+
root /usr/share/nginx;
12+
index index.html index.htm;
13+
}
14+
15+
___location / {
16+
root /usr/share/nginx/html;
17+
index index.html index.htm;
18+
}
19+
}
20+

0 commit comments

Comments
 (0)