Skip to content
Eason0729 edited this page Feb 1, 2024 · 3 revisions

Backend

# address for backend to serve
bind_address = "0.0.0.0:8081"
# log level, set to 5 for minimal log, 0 for all the log
# 1 is recommended for deployment for application with opentelemetry
# 2 is recommended otherwise 
log_level = 0
# whether to use opentelemetry(grpc)
opentelemetry = true

[database]
# path to sqlite(WAL)
path = "database/backend.sqlite"
# salt for secrets in database
salt = "be sure to change it"

[[judger]]
name = "http://127.0.0.1:8080"
type = "static"

[[judger]]
name = "http://your-docker-container:8079"
type = "docker"

[[judger]]
name = "http://127.0.0.1:8078"
type = "loadbalanced"

[grpc]
public_pem = "cert.pem"
private_pem = "key.pem"
trust_host = ["255.255.255.255/32"]

[imgur]
client_id = "fffffffffffffff"
client_secret = "ffffffffffffffffffffffffffffffffffffffff"
Clone this wiki locally