-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.toml
43 lines (33 loc) · 865 Bytes
/
config.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
[database]
dsn = "host=localhost port=5432 user=osuproxy password=password dbname=osuproxy sslmode=disable"
[api]
client_id = 1706
client_secret = ""
redirect_uri = "http://localhost/authorize"
[cache]
endpoints = [ "http://localhost:2379" ]
[apiserver]
address = ":8126"
# Note that the reverse proxy config has to be adapted too
allowed_origins = [ "http://localhost", "http://localhost:8000" ]
public_cache = true
# Removing an endpoint will disable it
[[apiserver.endpoint]]
handler = "userinfo"
cache = "never"
[[apiserver.endpoint]]
handler = "osufile"
cache = "always"
[[apiserver.endpoint]]
handler = "scorefile"
cache = "always"
[[apiserver.endpoint]]
handler = "beatmaps_lookup_checksum"
cache = "never"
[auth]
address = ":8125"
enable_auth = true
[prom]
address = ":8127"
[application]
api_key_update_url = "http://localhost:8000/?app-apikey="