-
Notifications
You must be signed in to change notification settings - Fork 3
/
.conf.sample
60 lines (60 loc) · 1.83 KB
/
.conf.sample
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
{
"host": "localhost",
"port": 8082,
"disable_signup": false,
"disable_phone": false,
"site_url": "http://localhost:3002",
"instance_url": "http://localhost:8082",
"database_url": "postgres://postgres:password@localhost:5432/trust",
"log_level": "info",
"auto_confirm": false,
"facebook_enabled": true,
"facebook_client_secret": "facebook_client_secret",
"facebook_client_id": "facebook_client_id",
"google_enabled": true,
"google_client_id": "google_client_id",
"google_client_secret": "google_client_secret",
"github_enabled": true,
"github_client_id": "github_client_id",
"github_client_secret": "github_client_secret",
"smtp": {
"host": "smtp.mailtrap.io",
"port": 2525,
"username": "username",
"password": "password",
"email": "no-reply@zelalem.me"
},
"jwt": {
"audience": "trust",
"algorithm": "ES512",
"private_key_path": "./test/keys/es512-private.pem",
"public_key_path": "./test/keys/es512-public.pem",
"issuer": "zede",
"expiry": 900
},
"password_rule": ".{8,1000}",
"phone_rule": "\\+2519\\d{8}",
"email_rule": ".+@.+\\..+",
"sms": {
"headers": {
"Authorization": "Basic token"
},
"url": "https://api.example.com/send_message",
"method": "POST",
"source": "+251912669408",
"mapping": {
"source": "src",
"destination": "dst",
"message": "text"
}
},
"lockout_policy": {
"for": 5,
"attempts": 3
},
"minutes_between_phone_change": 1,
"minutes_between_email_change": 1,
"access_token_cookie_name": "zelalem_access_token",
"refresh_token_cookie_name": "zelalem_refresh_token",
"login_hook": "https://api.example.com/login_hook"
}