2022-04-23 10:52:56 +00:00
|
|
|
# HTTP Server
|
2022-04-16 18:19:38 +00:00
|
|
|
[http]
|
2022-06-08 22:02:20 +00:00
|
|
|
# HTTP host
|
2022-04-19 13:25:56 +00:00
|
|
|
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
|
2022-04-18 12:13:15 +00:00
|
|
|
cors = [
|
|
|
|
"127.0.0.1:8000",
|
|
|
|
"localhost:8000",
|
|
|
|
]
|
2022-04-19 13:14:17 +00:00
|
|
|
|
2022-04-23 10:52:56 +00:00
|
|
|
# Json Web Token
|
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
|
|
|
|
expires = 24
|
2022-04-24 19:31:50 +00:00
|
|
|
|
|
|
|
# Storage
|
|
|
|
[storage]
|
2022-06-08 22:02:20 +00:00
|
|
|
# Directory where user files will be stored
|
|
|
|
path = "/home/homedisk"
|