TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Hosting small scale media share portal with low disk space/resources

1 pointsby schnubbidubbalmost 2 years ago
So with all the reddit alternative discussions and talk about small scale applications, I thougt about<p>what&#x27;s the best way to host images and videos in a low disk space environment?<p>I&#x27;m thinking of the hobbyist, small network, federated thingies etc.<p>A nginx module maybe that could track incoming requests to media files and mark them with their latest access time. If the image or video wasn&#x27;t accessed for a couple of weeks or months, it&#x27;ll be deleted. If that&#x27;s a feasible thing to do for a nginx, or other webserver module. Maybe just scraping and checking the access logs would be enough. Every webserver would probably have some kind of access log anyway.<p>Or would it only be sensible to bake that functionality into the app? But how would I keep track of external, direct visits to the media files or a shared link somewhere else, that wasn&#x27;t clicked from the app interface? I feel like external visits should be accounted for as well.<p>Was wondering what some of you would come up with.

no comments

no comments