Hey @dcc is the download for this working for you? I didn't see an age restrict this time and the Tor node I am on requires me to complete Googles retarded captcha bullshit which for a shitpost video I don't plan to do.
@realman543 Invidious has stopped worked it seems, best you can do is mpv your vids atm (the devs are alredy behind in finding work arounds to youtube blocks)
@dcc As a matter of fact, I was going to run a yt-dlp downloader with a static website over Tor but I couldn't figure out how to host without a webserver (I shouldn't need to for one web page).
@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.
@Zergling_man@dcc tbh I was simply thinking of sending the output directly to a shell script that uses $1 in yt-dlp. But thinking about it the site would at least have to be a little bit modular so I could return the file link on the page itself. Otherwise webserver.
Perhaps a webserver is needed in this case.
I guess it just kind of pissed me off that when I searched "serve static page without webserver" every result demanded installing a webserver.
@realman543@Zergling_man > "serve static page without webserver" every result demanded installing a webserver. Becuase you need a webserver.... hahaHAHAH.gif
@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.
@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 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 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 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@Zergling_man I am going to serve a Hello_World.http without a webserver damn it! With blackjack, and hookers!
IDK for the amount of effort it would take to learn all this new shit I could just create a wrapper script for yt-dlp and tor and just plop the links in as needed.
@dcc@realman543 Apache will search from the FIRST dot in a file's name for extensions and process anything containing a "php" extension as a PHP script. Granted that's a PHP problem, but I think that behaviour of determining a file's type from all extensions rather than the last is apache's. Of course, determining a file's type from extension is always a mistake that even nginx makes.
@Zergling_man@dcc Right now I'm just trying to host a static web page.
Ultimately I'd like a link to share with people who post fucking youtube links that's so stupid easy that they don't have an excuse anymore. And also so I don't feel the need to repost their content locally (when it's actually good).
@Zergling_man@dcc I mean I'd do it anyway. I don't expect them to actually do it so I'm ultimately expecting my bandwidth usage to go down.
But if it catches on I don't plan to keep it to myself. Once it's established and hasn't crapped it's pants in a while I plan to find a git instance that allows anonymous signups and post it.
@Zergling_man@realman543 The more data i put through the pipe the better (i hope soon i will be able to at&t fiber becuase i'm on coomcast :biznus: and i only up 1g down and 250 mbps up) NEWPORTS.png