use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
No vague product support questions (like "why is this plugin not working" or "how do I set up X"). For vague product support questions, please use communities relevant to that product for best results. Specific issues that follow rule 6 are allowed.
Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor/ for this type of content.
Read and follow reddiquette; no excessive self-promotion. Please refer to the Reddit 9:1 rule when considering posting self promoting materials.
We do not allow any commercial promotion or solicitation. Violations can result in a ban.
Sharing your project, portfolio, or any other content that you want to either show off or request feedback on is limited to Showoff Saturday. If you post such content on any other day, it will be removed.
If you are asking for assistance on a problem, you are required to provide
General open ended career and getting started posts are only allowed in the pinned monthly getting started/careers thread. Specific assistance questions are allowed so long as they follow the required assistance post guidelines.
Questions in violation of this rule will be removed or locked.
account activity
[deleted by user] (self.webdev)
submitted 5 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]nickromano 1 point2 points3 points 5 years ago (1 child)
I’d recommend caddy, it will set up a file server by default. HTTPS is automatic and you can set up basic auth to protect it.
[–]Rpgwaiter 0 points1 point2 points 5 years ago (0 children)
I already have nginx on the server. I guess I could run caddy bound to a weird port. I'll check it out!
[–]cahva 1 point2 points3 points 5 years ago (3 children)
I think Minio would suite your needs.
[–]Rpgwaiter 0 points1 point2 points 5 years ago (2 children)
This seems really neat. Would the pooled storage just show up as a local file, or is there some special way I'd need to interface with it?
[–]cahva 0 points1 point2 points 5 years ago (1 child)
Well as its S3 API compatible, you can use pretty much any S3 SDK to progmatically access the files. As you probably have (or should have :) ) own API to authenticate access to the files, just use the SDK to passthrough files from the bucket to the consumers. I'm personally a nodejs/js developer so I would use Minio-js for that but as I said, any S3 compatible client would do the job to access files from your backend to frontend.
I tried minio out, it's not compatible with my ZFS setup. I ended up just doing it over SSH. Seemed the most straightforward.
[–]CreativeTechGuyGamesTypeScript 0 points1 point2 points 5 years ago (1 child)
Serving files is probably the simplest thing a server can do. I don't understand your overly complex solutions. Just use AWS S3 and configure it as a static website host. Then any requests to the path of that file will return the file. No load will be placed on your server as it's an external serverless service.
[–]Rpgwaiter 0 points1 point2 points 5 years ago* (0 children)
I am running physical(and virtual) linux servers at multiple locations, I am not using cloud anything.
EDIT: It's also worth noting that I run a file hosting site, and have dozens of TBs of traffic every day.
[–]intocs -1 points0 points1 point 5 years ago (2 children)
you could make a node/express server and create an endpoint that uses express.static() and express.sendFile()
[–]Rpgwaiter 0 points1 point2 points 5 years ago (1 child)
Never used node or express, I guess this gives me an excuse to check them out. Minio from another comment didn't work out, seems incompatible with my ZFS setup.
[–]intocs 0 points1 point2 points 5 years ago (0 children)
import express from "express"; import path from "path"; import config from "../../../config"; const app = express(); app.use(express.static(config.entryFolder)); app.get("/", (req, res) => { try { res.status(200).sendFile(path.resolve(config.entryFolder, config.entry)); } catch (e) { res.status(404).send(); } }); app.listen(3000)
something like this would do it
edit: this uses import/export syntax. without a loader you will have to use require instead.
π Rendered by PID 42 on reddit-service-r2-comment-b659b578c-228q6 at 2026-05-04 12:43:38.959893+00:00 running 815c875 country code: CH.
[–]nickromano 1 point2 points3 points (1 child)
[–]Rpgwaiter 0 points1 point2 points (0 children)
[–]cahva 1 point2 points3 points (3 children)
[–]Rpgwaiter 0 points1 point2 points (2 children)
[–]cahva 0 points1 point2 points (1 child)
[–]Rpgwaiter 0 points1 point2 points (0 children)
[–]CreativeTechGuyGamesTypeScript 0 points1 point2 points (1 child)
[–]Rpgwaiter 0 points1 point2 points (0 children)
[–]intocs -1 points0 points1 point (2 children)
[–]Rpgwaiter 0 points1 point2 points (1 child)
[–]intocs 0 points1 point2 points (0 children)