HomeDisk/config.toml

21 lines
356 B
TOML
Raw Normal View History

2022-04-16 18:19:38 +00:00
[http]
2022-06-08 22:02:20 +00:00
# HTTP host
host = "0.0.0.0"
2022-06-08 22:02:20 +00:00
# HTTP port
2022-06-11 08:19:47 +00:00
port = 8080
2022-06-08 22:02:20 +00:00
# Cors domains
cors = [
"127.0.0.1:8000",
"localhost:8000",
]
2022-04-19 13:14:17 +00:00
[jwt]
2022-06-08 22:02:20 +00:00
# JWT Secret string (used to sign tokens)
secret = "secret key used to sign tokens"
# Token expiration time in hours
2022-08-29 11:12:16 +00:00
expires = 24 # one day
2022-04-24 19:31:50 +00:00
[storage]
2022-06-08 22:02:20 +00:00
# Directory where user files will be stored
path = "/home/homedisk"