-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.yml.example
42 lines (42 loc) · 997 Bytes
/
config.yml.example
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
database:
dialect: postgres
uri: host=myhost port=myport user=gorm dbname=gorm password=mypassword
storage:
endpoint: 127.0.0.1:9000
access_key_id: minioadmin
access_key_secret: minioadmin
ssl: false
region: us-east-1
redis:
host: 127.0.0.1
port: 6379
log:
- name: console
level: debug
- name: database
level: error
debug: false
server:
port: 8080
origin:
- http://127.0.0.1:8000
auth:
session_timeout: 1200 # The valid duration of token without choosing "remember me"
remember_me_timeout: 604800 # The valid duration of token with choosing "remember me"
session_count: 10 # The count of maximum active sessions for a user
judger:
token: REPLACE_THIS_WITH_RANDOM_STRING
polling_timeout: 60s
webauthn:
display_name: EduOJ
domain: localhost
origin: http://localhost
icon: http://localhost/favicon.ico
email:
from: example@example.com
host: smtp.example.com
port: 587
username: user
password: pass
tls: true
need_verification: true