๐Ÿ’พ 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

View Raw

More Information

โฌ…๏ธ Previous capture (2023-09-08)

โžก๏ธ Next capture (2023-11-04)

๐Ÿšง View Differences

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

today from

the smokey capsule

i learned about gemini to http proxies.

have chosen

duckling proxy

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`

/u/norayr/image/159.jpeg

Posted in: s/Gemini

๐Ÿ™ norayr

2023-08-30 ยท 4 weeks ago

16 Comments โ†“

๐Ÿ˜บ gemalaya

@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

๐Ÿ™ norayr

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

๐Ÿ˜บ gemalaya

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

๐Ÿ™ norayr

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?

๐Ÿš€ skyjake

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

๐Ÿ˜บ gemalaya

@skyjake Indeed, should have used preformatted text, i'll edit it. Thank you.

๐Ÿ˜บ gemalaya

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

๐Ÿ˜บ gemalaya

Ok i've looked into it and the http proxy mode can be implemented with very few changes. Thanks for the suggestion @norayr.

๐Ÿ˜บ gemalaya

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

๐Ÿ˜บ gemalaya

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

๐Ÿ™ norayr

omg i can't believe it... will check now.

๐Ÿ™ norayr

this is so cool! thank you very much!

๐Ÿ˜บ gemalaya

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.

๐Ÿ˜บ gemalaya

levior's proxy mode feature has been pushed to master. Not yet the default mode.

2023-09-02 ยท 4 weeks ago

๐Ÿ™ norayr

i believe it is indeed user agent related. are you able to confirm now?

2023-09-05 ยท 3 weeks ago

๐Ÿ˜บ gemalaya

@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