-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathnow.json
64 lines (64 loc) · 1.56 KB
/
now.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
"version": 2,
"name": "jwt-example",
"scope": "zdx",
"alias": ["jwt-example.zdx.cat"],
"public": false,
"builds": [{ "src": "api/*.ts", "use": "@now/node" }],
"routes": [
{
"src": "/",
"methods": ["GET"],
"status": 302,
"headers": {
"Location": "https://github.com/zeusdeux/jwt-example"
}
},
{
"src": "/register",
"methods": ["POST"],
"dest": "/api/register.ts"
},
{
"src": "/login",
"methods": ["POST"],
"dest": "/api/login.ts"
},
{
"src": "/logout",
"methods": ["POST"],
"dest": "/api/logout.ts"
},
{
"src": "/delete",
"methods": ["POST"],
"dest": "/api/delete.ts"
},
{
"src": "/protected",
"methods": ["GET"],
"dest": "/api/protected.ts"
},
{
"src": "/*",
"status": 404
}
],
"env": {
"JWT_EXAMPLE_DB_KEY": "@faundb-prod-jwt-example-db-key",
"JWT_EXAMPLE_DB_USER_CLASS_NAME": "Users",
"JWT_EXAMPLE_DB_TOKEN_BLACKLIST_CLASS_NAME": "JWTBlacklist",
"JWT_EXAMPLE_DB_USER_BY_EMAIL_INDEX_NAME": "user-by-email",
"JWT_EXAMPLE_DB_JWT_BY_TOKEN_FROM_BLACKLIST_INDEX_NAME": "jwt-by-token-from-blacklist",
"JWT_CIPHER_PASSWORD": "@jwt-cipher-password",
"JWT_CIPHER_SALT": "@jwt-cipher-salt",
"JWT_CIPHER_IV": "@jwt-cipher-iv",
"JWT_DEFAULT_AUDIENCE": "https://jwt-example.zdx.cat",
"JWT_DEFAULT_ISSUER": "https://jwt-example.zdx.cat",
"JWT_DEFAULT_ALGORITHM": "RS256",
"JWT_DEFAULT_EXPIRES_IN": "1h"
},
"github": {
"enabled": true
}
}