-
Notifications
You must be signed in to change notification settings - Fork 0
/
vaulth.example.json5
62 lines (62 loc) · 1.73 KB
/
vaulth.example.json5
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
{
// Port to listen on
"port": 8080,
// Database connection url
"database-url": "postgresql://127.0.0.1:5432/vaulth",
// User-Agent header to use when interacting with external providers (Optional)
"user-agent": "vaulth",
// Minimum log level used for filtering log messages (Optional)
"log-level": "INFO",
// JWT tokens configuration
"token": {
// Private key used for signing tokens, in pem format
"private-key": "private.pem",
// Public key used for verifying tokens, in pem format
"public-key": "public.pem",
// Duration for which generated tokens stay valid, in minutes
"duration": 10000
},
// (Optional)
"tls": {
// Certificate file
"cert": "cert.pem",
// Key file
"key": "key.rsa"
},
// Argon2 hashing configuration, defaults to reasonable values
"hash": {
// Length of the password hash (Optional)
"hash-len": 32,
// Length of the random salt (Optional)
"salt-len": 16,
// Number of lanes used for parallelism (Optional)
"lanes": 1,
// Amount of memory used, in KB (Optional)
"mem-cost": 4096,
// Number of passes (Optional)
"time-cost": 4,
// Custom secret, for additional security (Optional)
"secret": "SuperSecretSecret"
},
// Root URI of the running instance, used to build redirect URIs, must not have a trailing slash
"root-uri": "https://example.com",
// Recognized clients by ID
"clients": {
"abc": {
"client-secret": "123",
"redirect-urls": [
"https://example.com"
]
}
},
// GitHub OAuth2 info (Optional)
"github": {
"client-id": "abc",
"client-secret": "123"
},
// Discord OAuth2 info (Optional)
"discord": {
"client-id": "abc",
"client-secret": "123"
}
}