• dlreq for web download

    From Prof Brown@21:2/160 to All on Thu Apr 17 13:26:54 2025
    I am trying to configure web downloads, and I notice that it's pointing to oldtimebbs.com/dlreq?<hex number>. I have found no place where it talks about setting this up, or what the expected behavior of dlreq is? Where do the temp files get written/etc. Any help or documentation would be great.

    Thanks!

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Old Time BBS (21:2/160)
  • From opicron@21:3/126 to Prof Brown on Thu Apr 17 17:55:31 2025
    I am trying to configure web downloads, and I notice that it's pointing to oldtimebbs.com/dlreq?<hex number>. I have found no place where it talks a setting this up, or what the expected behavior of dlreq is? Where do the files get written/etc. Any help or documentation would be great.
    Following, as I couldnt get it to work either ^^

    oP!

    ... Freedom of religion is also freedom FROM religion. . .

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (21:3/126)
  • From Zip@21:1/202 to Prof Brown on Thu Apr 17 21:32:51 2025
    Hello Prof Brown!

    I am trying to configure web downloads, and I notice that it's pointing
    to oldtimebbs.com/dlreq?<hex number>. I have found no place where it talks about setting this up, or what the expected behavior of dlreq is? Where do the temp files get written/etc. Any help or documentation
    would be great.

    The template "config" files are missing from the stock installation. Have a look at this example, intended to be unpacked in your Mystic directory (remember to edit webroot/www/index.html to e.g. change the redirection URLs
    there):

    https://scbbs.nsupdate.info/files/webroot.zip

    It is based on http://www.mysticbbs.com/downloads/prealpha/dlreq.zip but with a few quirks fixed and a simple layout.

    Hope this helps! =)

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Zip@21:1/202 to opicron on Thu Apr 17 21:33:40 2025
    Hello opicron!

    On 17 Apr 2025, opicron said the following...

    I am trying to configure web downloads, and I notice that it's pointi
    Following, as I couldnt get it to work either ^^

    See my previous message to Prof Brown. =)

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Prof Brown@21:2/160 to Zip on Thu Apr 17 18:45:58 2025
    Definitely helped. I already had a index.html, but your homepage is slick. Well done. This worked perfectly. Thanks very much, I was racking my brain for this.

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Old Time BBS (21:2/160)
  • From Zip@21:1/202 to Prof Brown on Fri Apr 18 09:37:18 2025
    Hello Prof Brown!

    On 17 Apr 2025, Prof Brown said the following...

    Definitely helped. I already had a index.html, but your homepage is slick. Well done. This worked perfectly. Thanks very much, I was racking my brain for this.

    You're very welcome! =)

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From opicron@21:3/126 to Zip on Fri Apr 18 09:59:37 2025
    On 17 Apr 2025, opicron said the following...

    I am trying to configure web downloads, and I notice that it's p
    Following, as I couldnt get it to work either ^^

    See my previous message to Prof Brown. =)

    Awesome! Thanks a load.

    oP!

    ... BUFFERS=7 FILES=5, 2nd Down, 4th quarter, 5 yards to go!

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (21:3/126)
  • From Zip@21:1/202 to opicron on Fri Apr 18 13:31:21 2025
    Hello opicron!

    On 18 Apr 2025, opicron said the following...

    I am trying to configure web downloads, and I notice that i
    See my previous message to Prof Brown. =)
    Awesome! Thanks a load.

    You're very welcome! =)

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From opicron@21:3/126 to Zip on Sun Apr 20 19:15:32 2025
    I am trying to configure web downloads, and I notice that it's p
    Following, as I couldnt get it to work either ^^

    See my previous message to Prof Brown. =)

    If you want to see some crazy customization of those download pages through web, visit bbs.theforze.eu and have a look see ;).

    Thanks again, this is just awesome!

    oP!

    ... What was the best thing before sliced bread?

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (21:3/126)
  • From Zip@21:1/202 to opicron on Mon Apr 21 11:57:34 2025
    Hello opicron!

    On 20 Apr 2025, opicron said the following...

    If you want to see some crazy customization of those download pages through web, visit bbs.theforze.eu and have a look see ;).

    Thanks again, this is just awesome!

    Very nice!

    I like the HTTP --> HTTPS conversion, too (as Mystic doesn't let one adjust that in the config). =)

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From opicron@21:3/126 to Zip on Mon Apr 21 10:17:38 2025
    If you want to see some crazy customization of those download pages through web, visit bbs.theforze.eu and have a look see ;).

    Thanks again, this is just awesome!

    Very nice!

    I like the HTTP --> HTTPS conversion, too (as Mystic doesn't let one adjus that in the config). =)

    Ohh awesome that you noticed. I pulled my hair out trying to do a reverse proxy. Then I figured, dont fight https just add a little javascript to update the urls in the html :)..

    oP!

    ... Support Mental Health. Or I'll kill you.

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (21:3/126)
  • From Zip@21:1/202 to opicron on Mon Apr 21 13:04:03 2025
    Hello opicron!

    Thank you for your reply!

    On 21 Apr 2025, opicron said the following...

    I like the HTTP --> HTTPS conversion, too (as Mystic doesn't let one that in the config). =)

    Ohh awesome that you noticed. I pulled my hair out trying to do a reverse proxy. Then I figured, dont fight https just add a little javascript to update the urls in the html :)..

    Speaking of HTTPS, I see that you have an nginx serving the dlreq page over HTTPS. How do you make nginx preserve the client IP when forwarding the
    request to Mystic's web server? (As dlreq checks the client IP and refuses to serve anything if the IP doesn't match.)

    I have HTTP on port 61080 leading directly to the Mystic HTTP web server, and similarly HTTPS on port 61443 leading to the Mystic HTTPS web server, and I'm experimenting a little with Apache (which runs all HTTPS stuff with the
    "real" SSL cert) to proxy certain URLs internally to 61443, but the client IP as seen by Mystic's web server will always be the loopback interface, so dlreq denies the download requests when clicking on the file links.

    Could be one of those things that are easy to do with nginx, but less so with Apache. :)

    (Hmm, maybe I would need to let Apache handle 61080 as well so that the "initial" dlreq requests comes from the loopback interface... Which would
    trash the client IP checking ability of dlreq, but anyway...)

    Thanks in advance!

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From opicron@21:3/126 to Zip on Mon Apr 21 14:28:15 2025
    Speaking of HTTPS, I see that you have an nginx serving the dlreq page ove HTTPS. How do you make nginx preserve the client IP when forwarding the request to Mystic's web server? (As dlreq checks the client IP and refuses serve anything if the IP doesn't match.)

    The nginx in question is the reverse proxy of Synology. So, in the HTML I change the http requests to HTTPS. The HTTPS requests are forwarded to the Mystic HTTP webserver again.

    I have HTTP on port 61080 leading directly to the Mystic HTTP web server, similarly HTTPS on port 61443 leading to the Mystic HTTPS web server, and experimenting a little with Apache (which runs all HTTPS stuff with the "real" SSL cert) to proxy certain URLs internally to 61443, but the client as seen by Mystic's web server will always be the loopback interface, so d denies the download requests when clicking on the file links.

    Mystic runs in a docker on my synology and the IP of caller/webvisitor get forwarded by the DNS reverse proxy in all cases. I dont know the exact script/command for nginx as synology does it for me.

    Could be one of those things that are easy to do with nginx, but less so w Apache. :)

    I believe it is, I vaguely remember having to do some IP forward some time ago. Wasn't it with x-headers? x-forward?

    (Hmm, maybe I would need to let Apache handle 61080 as well so that the "initial" dlreq requests comes from the loopback interface... Which would trash the client IP checking ability of dlreq, but anyway...)

    Thanks in advance!

    Hope it will be as easy as I had it. Didnt even know that dlreq validated the IP :).

    oP!

    ... Monday is the root of all evil!

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (21:3/126)
  • From Prof Brown@21:2/160 to Zip on Mon Apr 21 19:00:19 2025
    I am using Nginx Proxy, and have 'streams' to Mystic to my BBS for BinkP and Telnet. The web pages are forwarded to port 80 on the BBS with Let's Encrypt. I have no issues with DLReq doign that.

    -Jeremy

    --- Mystic BBS v1.12 A48 (Linux/64)
    * Origin: Old Time BBS (21:2/160)
  • From Zip@21:1/202 to Prof Brown on Tue Apr 22 20:59:32 2025
    Hello Jeremy!

    On 21 Apr 2025, Prof Brown said the following...

    I am using Nginx Proxy, and have 'streams' to Mystic to my BBS for BinkP and Telnet. The web pages are forwarded to port 80 on the BBS with
    Let's Encrypt. I have no issues with DLReq doign that.

    Thanks! Yep, the Telnet proxying would probably explain why dlreq thinks the IP is OK... Thanks again!

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From Zip@21:1/202 to opicron on Tue Apr 22 21:06:32 2025
    Hello opicron!

    On 21 Apr 2025, opicron said the following...

    Mystic runs in a docker on my synology and the IP of caller/webvisitor
    get forwarded by the DNS reverse proxy in all cases. I dont know the
    exact script/command for nginx as synology does it for me.

    Thanks! Yes, the proxying of "everything" is most likely why dlreq thinks everything is OK. (In my case I get a different IP for Telnet vs dlreq/web.)

    I believe it is, I vaguely remember having to do some IP forward some
    time ago. Wasn't it with x-headers? x-forward?

    Yep, X-Forwarded-For and similar ones, although it depends on the receiver (in this case dlreq, or the Mystic web server) to trust it, which it doesn't...

    Hope it will be as easy as I had it. Didnt even know that dlreq
    validated the IP :).

    Actually, I asked g00r00 if it would be possible to turn the IP validation off in some future version (and perhaps also to change the URL displayed inside Mystic, e.g. http:// to https:// and changing/removing the port number), but I'm pretty sure the wishlist for Mystic is long already...

    Thanks again!

    Best regards
    Zip

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: Star Collision BBS, Uppsala, Sweden (21:1/202)
  • From opicron@21:3/126 to Zip on Tue Apr 22 19:42:55 2025
    Hello opicron!

    validated the IP :).

    Actually, I asked g00r00 if it would be possible to turn the IP validation in some future version (and perhaps also to change the URL displayed insid Mystic, e.g. http:// to https:// and changing/removing the port number), b I'm pretty sure the wishlist for Mystic is long already...

    Oh yes, thats a good one, and also how long a d/l is valid. I was thinking it would be so easy to send a download link instead of someone needing to find the file on the board. But 1 hour is too short for that too work. We are all over the world, the timezones are to huge ^^.

    Thanks again!
    Yw and hope you get it working. You could also choose to feed always some local ip to the board and webserver, ok that means no hostname/ip for lookups. But I do not use those anyway, my firewall blocks regions/countries. Not mystic.

    Zip
    oP!

    ... Computers are not intelligent. They only think they are.

    --- Mystic BBS v1.12 A49 2024/05/29 (Linux/64)
    * Origin: TheForze - bbs.theforze.eu:23 (21:3/126)