💾 Archived View for bbs.geminispace.org › s › Gemini › 12015 captured on 2024-05-26 at 16:04:58. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-05-10)

➡️ Next capture (2024-06-16)

🚧 View Differences

-=-=-=-=-=-=-

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://gitlab.com/cipres/levior

Posted in: s/Gemini

😺 gemalaya

2023-11-27 · 6 months ago

6 Comments ↓

🍭 jmjl · Nov 30 at 20:54:

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

😺 gemalaya [OP] · Nov 30 at 22:21:

@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.

😺 gemalaya [OP] · Dec 01 at 01:32:

@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

🍭 jmjl · Dec 02 at 00:36:

The feature implementation seems to work pretty nicely, please inform me when/if

this gets merged into master.

😺 gemalaya [OP] · Dec 02 at 01:24:

@jmjl Thank you! I'll merge it to master in a few hours after i update the README.

😺 gemalaya [OP] · Dec 02 at 03:02:

@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.