@realman543@dcc As I said, something needs to listen on port 80. It's actually reasonable. Also for the record, nginx is actually pretty simple. It's hard to learn how it works but once you do, you realise that it's actually not doing that much.
@dcc@realman543 But I agree that a very simple braindead "map folder to port 80" server would be very nice to have. I don't know if such a thing exists.
@realman543@dcc If I were to do it in python it'd probably be about 20 lines just for error-handling, like the wtf one in this, which is a reasonably complete http server for file sockets only; a lot of the stuff in it can be stripped if you just want to spit out a file, but about half of run will have to stay.
@dcc@realman543 Oh also if you want it to actually read the path and serve a file from there you need to make sure it lives in a chroot or something so someone can't request /../../../../../../../../../../../../../etc/passwd
@realman543@dcc If you just want to serve one page and you don't care about the path, it's pretty safe; it can ignore everything in the request and just immediately return page. If you care a little bit about the path you can put a check for req.split('\n')[0].split(' ')[-1]=='/', that's still pretty safe.
@realman543@dcc >how to host without a webserver (I shouldn't need to for one web page). You need something to listen on port 80 and map paths in the request to paths in the filesystem.
@dcc@LovecraftEnthusiast@p And encourage the creation of quoroma? Sure it'll die shortly since trannies doing tranny things but seems like it doesn't really matter that much; you can't dictate anything about anyone else's instance, ever. But you can send them activities in such a way that penalises them for making certain decisions, and it so happens that quoteposts are one of those things.
@Shadowman311 >Fr*nch "food" lol >Italian "food" lol (actually not too bad but Italian food opinions are always retarded) >Japanese food The stereotypical japanese stuff mostly sucks, ramen is good, but it's konbini shit that shines the most help I'm addicted to konbini shit
@ehhh Italians always have the most pompous attitude, as if they're somehow the elite of cuisine, even though their dishes are all pretty average; they get upset about other people improving their stuff.
Konbini shit is very unhealthy, but it's not that expensive. Obviously making your own stuff is cheaper but you'll pay about 30% more at any restaurant.