-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.dev.toml
70 lines (55 loc) · 1.6 KB
/
config.dev.toml
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
65
66
67
68
69
70
[http]
address = "127.0.0.1:8000"
allowed_origins = [".*"]
[database]
url = "postgres://[email protected]:5432/academy" # https://docs.rs/tokio-postgres/latest/tokio_postgres/config/struct.Config.html
[cache]
url = "redis://127.0.0.1:6379/0" # https://docs.rs/redis/latest/redis/#connection-parameters
[email]
smtp_url = "smtp://academy:[email protected]:2525" # https://docs.rs/lettre/latest/lettre/transport/smtp/struct.AsyncSmtpTransport.html#method.from_url
from = "Bootstrap Academy DEV <[email protected]>"
[jwt]
secret = "changeme"
[session]
access_token_ttl = "1d"
[contact]
email = "Contact <[email protected]>"
[recaptcha]
enable = false
siteverify_endpoint_override = "http://127.0.0.1:8001/recaptcha/api/siteverify"
sitekey = "test-sitekey"
secret = "test-secret"
[vat]
validate_endpoint_override = "http://127.0.0.1:8003/validate/"
[paypal]
base_url_override = "http://127.0.0.1:8004/"
client_id = "test-client"
client_secret = "test-secret"
[render]
chrome_bin = "/usr/bin/chromium"
[finance]
invoices_archive = ".invoices"
credit_notes_archive = ".credit_notes"
[oauth2.providers.test]
enable = true
name = "Test"
client_id = "client-id"
client_secret = "client-secret"
auth_url = "http://127.0.0.1:8002/oauth2/authorize"
token_url = "http://127.0.0.1:8002/oauth2/token"
userinfo_url = "http://127.0.0.1:8002/user"
userinfo_id_key = "id"
userinfo_name_key = "name"
scopes = []
[oauth2.providers.github]
enable = false
client_id = ""
client_secret = ""
[oauth2.providers.discord]
enable = false
client_id = ""
client_secret = ""
[oauth2.providers.google]
enable = false
client_id = ""
client_secret = ""