adjust server to new api and send back url for file download on DownloadFilesDto
This commit is contained in:
2
MareAPI
2
MareAPI
Submodule MareAPI updated: 1ee130413f...21fe024dfb
@@ -77,7 +77,8 @@ namespace MareSynchronosServer.Hubs
|
|||||||
ForbiddenBy = forbidden?.ForbiddenBy ?? string.Empty,
|
ForbiddenBy = forbidden?.ForbiddenBy ?? string.Empty,
|
||||||
IsForbidden = forbidden != null,
|
IsForbidden = forbidden != null,
|
||||||
Hash = hash,
|
Hash = hash,
|
||||||
Size = fileSize
|
Size = fileSize,
|
||||||
|
Url = _configuration["CdnFullUrl"] + hash.ToUpperInvariant()
|
||||||
};
|
};
|
||||||
|
|
||||||
if (!fileInfo.Exists && file != null)
|
if (!fileInfo.Exists && file != null)
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"CdnBaseUrl": "https://<url or ip to your server>/cache/",
|
||||||
"FailedAuthForTempBan": 5,
|
"FailedAuthForTempBan": 5,
|
||||||
"TempBanDurationInMinutes": 30,
|
"TempBanDurationInMinutes": 30,
|
||||||
"DiscordBotToken": "",
|
"DiscordBotToken": "",
|
||||||
|
|||||||
Reference in New Issue
Block a user