-
Notifications
You must be signed in to change notification settings - Fork 0
/
example.config.hcl
103 lines (90 loc) · 2.24 KB
/
example.config.hcl
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Debug mode
debug = false
# Application environment
env = "dev"
# Timezone
timezone = "America/California"
# Redis configurations
redis {
# if you wish to use redis cluster, set this value to true
# If cluster is true, sentinels is required
# If cluster is false, addr is required
cluster = false
master_name = "casty"
addr = "127.0.0.1:26379"
sentinels = [
"127.0.0.1:26379"
]
pass = "super-secure-password"
sentinel_pass = "super-secure-sentinels-password"
}
# Database (mongodb) config
db {
name = "casty"
host = "localhost"
port = 27017
user = "service"
pass = "super-secure-password"
auth_source = ""
}
# JWT secrets
jwt {
access_token {
# make sure to use a strong secret key
secret = "random-secret"
# If you wish to change valid duration of a access_token, change this value
expires_at {
type = "days" # can be [seconds|minutes|hours|days|weeks]
value = 1
}
}
refresh_token {
# make sure to use a strong secret key
secret = "random-secret"
# If you wish to change valid duration of a refresh_token, change this value
expires_at {
type = "weeks" # can be [seconds|minutes|hours|days|weeks]
value = 1
}
}
}
# oauth details
oauth {
# Let user to register with oauth
registration_by_oauth = true
# Google config
google {
enabled = false
client_id = ""
client_secret = ""
auth_uri = "https://accounts.google.com/o/oauth2/auth"
token_uri = "https://oauth2.googleapis.com/token"
redirect_uri = "https://casty.ir/oauth/google/callback"
}
# Spotify config
spotify {
enabled = false
client_id = ""
client_secret = ""
auth_uri = "https://accounts.spotify.com/authorize"
token_uri = "https://accounts.spotify.com/api/token"
redirect_uri = "https://casty.ir/oauth/spotify/callback"
}
}
# S3 bucket config
s3 {
endpoint = "127.0.0.1:9000"
access_key = "secret-access-key"
secret_key = "secret-key"
}
# Sentry config
sentry {
enabled = false
dsn = "sentry.dsn.here"
}
# Recaptcha config, it can be google or hcaptcha
recaptcha {
enabled = false
type = "hcaptcha"
secret = "hcaptcha-secret-token"
}