๐พ Archived View for bbs.geminispace.org โบ s โบ Gemini โบ 4929 captured on 2023-09-28 at 17:40:15. Gemini links have been rewritten to link to archived content
โฌ ๏ธ Previous capture (2023-09-08)
โก๏ธ Next capture (2023-11-04)
-=-=-=-=-=-=-
today from
i learned about gemini to http proxies.
have chosen
because it is written in go.
it is amazing. i don't quite understand how it chooses emojis (like favicons) for some pages.
i run it as `./duckling-proxy -c cert/proxy.tld.pem -k cert/key.pem -p 1977 -a 0.0.0.0 -u "NetSurf/3.10 (Linux)"`
i had to add the netsurf user agent, because i was trying to make duckduckgo search working with "/?q=search term" url. otherwise it wouldn't work.
i tried duckduckgo.com/html and duckduckgo.com/lite and was only able to use search with the latter.
like this: `https://lite.duckduckgo.com/lite/?q=how to learn go`
2023-08-30 ยท 4 weeks ago
@norayr Never tried duckling, but i wrote a tool called "levior", it's a web-to-gemini proxy. It can render most websites and also supports searches via SearX. It's bundled with the gemalaya browser
https://gitlab.com/cipres/levior
thank you, @gemalaya, i'll try it. hope it won't be hard to setup, i won't need a venv for python deps etc. i sincerely prefer go, but if this software is indeed much better than duckling, i may use it.
i didn't open firefox since i installed the duckling proxy, already third day. but let's see.
2023-09-01 ยท 4 weeks ago
@norayr There's nothing to setup, you only need to download the AppImage. You don't have to generate certificates, it does it for you.
# curl -L -o levior https://gitlab.com/cipres/levior/-/releases/continuous-master/downloads/levior-latest-x86_64.AppImage # chmod +x levior # ./levior
Then just go to gemini://localhost with your gemini browser, it will ask for a domain name to browse. go to gemini://localhost/search to do a web search. I'll try duckling and see how it does things, sure is nice that it's written in go.
wooow, it works very well. shows much more pages than duckling is able to.
does it have a mode to serve as http proxy which i can add in lagrange?
@gemalaya You probably didn't intend to use level 1 headings for your command line example. Please use a preformatted block or quote lines, not #.
@skyjake Indeed, should have used preformatted text, i'll edit it. Thank you.
@norayr No, not yet, but that's something i plan on implementing at some point, i'll create a project issue so that i don't forget .. Gemalaya automatically runs a levior instance and rewrites all http urls to go through levior, and since i mainly use gemalaya to browse and post on the geminispace, i don't need levior to act as an http proxy ...
Ok i've looked into it and the http proxy mode can be implemented with very few changes. Thanks for the suggestion @norayr.
@norayr I've made the necessary changes in levior and the http proxy mode seems to work well enough with Lagrange and others. I'll push the changes soon on a devel branch and build an AppImage so that you can test it if you want.
@norayr I've implemented the http proxy mode in levior, it wasn't too much work. You can try this AppImage. You need to run it with --mode=http-proxy or --mode=proxy. The AppImage is much lighter now ...
https://gitlab.com/cipres/levior/-/releases/continuous-http-proxy/downloads/levior-latest-x86_64.AppImage
I've only tried a few pages. Please report any issues you have with this mode here. I probably won't make this the default mode cause not all gemini browsers support using an http proxy.
omg i can't believe it... will check now.
this is so cool! thank you very much!
You're welcome. I've tried search queries with searx and it works:
https://searx.be/search?q=gemini
But for example lite.duckduckgo.com doesn't work at all, is that because of the http user agent ? I'll see if it's related, in that case i'll add a setting for the user agent.
levior's proxy mode feature has been pushed to master. Not yet the default mode.
2023-09-02 ยท 4 weeks ago
i believe it is indeed user agent related. are you able to confirm now?
2023-09-05 ยท 3 weeks ago
@norayr actually lite duckduckgo doesn't care about the http user agent, levior shows the search results. what doesn't work, is opening the links, because the search results links aren't direct, they go through duckduckgo.com first, and that fails for some reason
either way, ddg is really terrible now and i always use searxng (which works with levior), they don't intercept the links