This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschrodinger-box.sample.yaml
61 lines (60 loc) · 2.16 KB
/
schrodinger-box.sample.yaml
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
# Schrodinger's Box Backend Server Configuration File
#
# Any modifications to this file will not be effective until the program is restarted
# Please copy the sample file and rename it as schrodinger-box.yaml before you do any edits
# this sets everything (tgbotapi, gorm, gin etc.) to debug mode if true
debug: true
# listening path in the format [[listening addr]:port]
# example: "127.0.0.1:8080", ":8080" (equivalent to 0.0.0.0:8080)
listen: "127.0.0.1:8080"
# mysql is used by default
database: "db_user:db_password@tcp(db_host:3306)/db_name?charset=utf8mb4&parseTime=True&loc=Local"
# domain field MUST NOT have the slash at the end
domain: "http://127.0.0.1:8080"
apiRoot: "/api"
openid:
# whether to use association mode or not
associationMode: true
# whether to verify callback with the OP server WHEN ASSOCIATION MODE IS ON
doubleVerification: false
external:
# whether to enable integration of external providers (for both cron and notifications)
enable:
- telegram
- email
- sms
# general setting for notification module
notification:
# default cron interval is 1 execution per 20 seconds
# second field is OPTIONAL and it is not suggested to set it to be too frequent
# format: [Second] Minute Hour DoM Month DoW
cron: "*/20 * * * * *"
telegram:
# the bot's authorization token
key: "1140803138:SomethingSomething"
# default: 1 execution per 1 minute
cron: "* * * * *"
email:
# we use Sendgrid API to send emails
key: SG.SomeKey_kK
from: Schrodinger's Box Notification <[email protected]>
# this is used to generate a hash to verify unsubscription request
# hash := fmt.Sprintf("%x", md5.Sum([]byte(user.Email + unsubKey)))
unsubKey: SomeRandomKey
# default: 1 execution per 1 minute
cron: "* * * * *"
sms:
# we use Twilio API to send SMSes
sid: account_sid
token: some_auth_token
from: "+11232234455"
unsubKey: SomeRandomKey
cron: "* * * * *"
bitly:
key: some_bit.ly_generic_access_token
cors:
# defines Access-Control-Allow-Origin header returned for API requests
origin: "*"
azure:
accountName: "schrodingerbox"
accountKey: "SomeValidAccessKey=="