mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-15 16:44:14 +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
2
MareAPI
2
MareAPI
|
|
@ -1 +1 @@
|
||||||
Subproject commit 1ee130413f75da38618f968f4ac813c3205d2adb
|
Subproject commit 21fe024dfb8cecad466dfc8ceef15040300ad342
|
||||||
|
|
@ -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": "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue