ShadowEditor/server/config.toml
2021-07-18 21:25:30 +08:00

31 lines
1.3 KiB
TOML

# Shadow Editor Server Configuration
[server]
port = ":2020" # server address
https = false # whether enable https
certPath = "./certificate/certificate.pem" # The certificate path
keyPath = "./certificate/privatekey.pem" # The key path
[database]
type = "mongo" # only support mongo
host = "127.0.0.1" # mongo ip
port = 27017 # mongo port
user = "" # mongo username
password = "" # mongo password
database = "ShadowEditor" # mongo database name
[authority]
enabled = false # enable authority
expires = 120 # login time, minutes, only support integer
secret_key = "Welcome ---------" # secret_key is used to encrypt credentials
[upload]
max_size = 1000000000 # max upload file size
[path]
public_dir = "./public" # The directory that contains index.html.
# Path `./public/Upload` need write authority.
log_dir = "./logs" # The directory that contains log files. Need write authority.
[log]
file = "./logs/ShadowEditor.txt"