adjust server to new api and send back url for file download on DownloadFilesDto

This commit is contained in:
Stanley Dimant
2022-08-15 17:56:16 +02:00
parent 149a67fd6f
commit f55ff9f6a3
3 changed files with 4 additions and 2 deletions

Submodule MareAPI updated: 1ee130413f...21fe024dfb

View File

@@ -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)

View File

@@ -23,6 +23,7 @@
]
}
},
"CdnBaseUrl": "https://<url or ip to your server>/cache/",
"FailedAuthForTempBan": 5,
"TempBanDurationInMinutes": 30,
"DiscordBotToken": "",