CDN-CS: support passing a bin path as cdn worker -> forks a new proc

This commit is contained in:
Rory& committed 2026-04-12 21:04:22 +02:00
1 parent a92d127ff6
commit c24ef4c8a3
6 files changed
+63 -17

No files matched your search

@@ -12,7 +12,7 @@ namespace Spacebar.Cdn.Controllers;
public class StaticAssetController(LruFileCache lfc, IFileSource fs, CdnWorkerService cws) : ControllerBase {
[HttpGet("/embed/avatars/{avatarIdx}")]
[HttpGet("/embed/avatars/{avatarIdx}.{ext}")]
public async Task<IActionResult> GetUserAvatar(string avatarIdx, string ext = "png") {
public async Task<IActionResult> GetUserAvatar(string avatarIdx, string ext = "webp") {
DiscordImageResizeParams resizeParams = Request.GetResizeParams();
var cacheKey = Request.Path + resizeParams.ToSerializedName();
LruFileCache.Entry? entry;