mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 22:17:22 +01:00
adjust server to new api and send back url for file download on DownloadFilesDto
This commit is contained in:
parent
149a67fd6f
commit
f55ff9f6a3
3 changed files with 4 additions and 2 deletions
|
|
@ -77,7 +77,8 @@ namespace MareSynchronosServer.Hubs
|
|||
ForbiddenBy = forbidden?.ForbiddenBy ?? string.Empty,
|
||||
IsForbidden = forbidden != null,
|
||||
Hash = hash,
|
||||
Size = fileSize
|
||||
Size = fileSize,
|
||||
Url = _configuration["CdnFullUrl"] + hash.ToUpperInvariant()
|
||||
};
|
||||
|
||||
if (!fileInfo.Exists && file != null)
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@
|
|||
]
|
||||
}
|
||||
},
|
||||
"CdnBaseUrl": "https://<url or ip to your server>/cache/",
|
||||
"FailedAuthForTempBan": 5,
|
||||
"TempBanDurationInMinutes": 30,
|
||||
"DiscordBotToken": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue