💾 Archived View for bbs.geminispace.org › u › jmjl › 12088 captured on 2023-12-28 at 16:48:45. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Re: "levior (web to gemini proxy) 1.2.2 was released: - The..."
I just found out this tool, I've implemented it and will be using it instead of stargate.
Edit: after testing for a bit, I guess it might be nice to include a mixed mode, so you can browse zim mounts on normal proxy mode, that way accessing gemini://leviour/ would give the list of mounts, and then accessing whatever website via leviour would just proxy it
Nov 30 · 4 weeks ago
@jmjl I wrote it. I thought about having just one mode that does it all depending on what URL you throw at it, i'll implement it in a branch soon and see how that goes. Initially there was just the server mode and once i added the pure proxy code i didn't want the two "mechanisms" mixed. Also, it's always possible to run multiple instances on different ports with different configs.
@jmjl I've implemented your (great) suggestion in the "mixed-bag" branch. "mode" can now be a comma-separated list of modes, it's set to "proxy,server" by default for now.
— https://gitlab.com/cipres/levior/-/tree/mixed-bag
The feature implementation seems to work pretty nicely, please inform me when/if
this gets merged into master.
@jmjl Thank you! I'll merge it to master in a few hours after i update the README.
@jmjl Just merged it. levior will now return a PROXY_REQUEST_REFUSED response (status code 53) if you're making a prohibited request (for example requesting an https URL when it's running in "server" mode only). Thank you for this idea by the way.
levior (web to gemini proxy) 1.2.2 was released: - The proxy mode is now the default mode - Convert Atom/RSS feeds to gemtext (tinylogs) - Route IPFS URLs through dweb.link - Refactor the handlers code - Don't let aiohttp handle redirects so that we can notify the gemini browser of redirections [https link]