image proxying

This commit is contained in:
Laptop
2024-10-26 11:08:05 +03:00
parent 4eae862bd6
commit 9416f14ef7
11 changed files with 143 additions and 30 deletions

View File

@@ -11,6 +11,10 @@ import (
// if the stream isn't fully loaded before it expires - you'll need to reload the page
const FullyPreloadTrack = false
// proxy images (user avatars, track/playlist covers)
const ProxyImages = false
const ImageCacheControl = "max-age=600; public" // 10 minutes by default, only used for proxied images
// time-to-live for clientid cache
// larger number will improve performance (no need to recheck everytime) but might make soundcloak briefly unusable for a larger amount of time if the client id is invalidated
const ClientIDTTL = 30 * time.Minute