=> Re: "Hi from Gem2Browser" | In: u/swee
I might make it store the cert & privkey in cookies some time
=> 😺 swee [OP]
Jan 15 · 4 days ago
I was about to work on something like this. Glad someone already did it.
It’s a good way to solve the problem of enabling Gemini access from older systems without modern SSL if you don’t mind the security holes that come from running it on port 80 behind basic http auth.
=> 😺 swee [OP] · Jan 17 at 19:28:
@pista yeah, I mainly made this because there isn't a great way to universally use Gemini (Especially when I use Alpine Linux and old android versions)
Plus, it just feels easier/comfortable to access gemini from my regular browser instead of some client I have to learn to use.
Is it currently in a working state? I tried installing and am getting what appears to be error related to hypercorn and flask:
[2025-01-17 18:56:02 -0500] [276399] [ERROR] Error in ASGI Framework
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/hypercorn/asyncio/task_group.py", line 21, in _handle
await invoke_asgi(app, scope, receive, send)
File "/usr/lib/python3/dist-packages/hypercorn/utils.py", line 242, in invoke_asgi
asgi_instance = app(scope)
TypeError: Flask.call() missing 1 required positional argument: 'start_response'
=> 😺 swee [OP] · 12 hours ago:
@pista Yes, it is working for me. Weird, I never had an error like this...
I'm currently using Flask version 3.0.2 and hypercorn version 0.14 (provided by Ubuntu)
Update: I made a workflow to test my webserver, it uses the latest Hypercorn & Flask ver, but it seems to work fine
That’s probably the problem. My server is on jammy and has the last version of flask.
Ho hum. Guess I need to go ahead with writing my own version in something with easier requirements.
@pista I made an update that requires the manual use of the hypercorn command, you can try using the webserver using hypercorn --bind=0.0.0.0:2009 server:app
and it should work properly
=> 😺 swee
Hi from Gem2Browser — I added a feature to my HTTP to Gemini that can load client certs! :3
=> 💬 10 comments · 1 like · Jan 15 · 4 days ago This content has been proxied by September (ba2dc).Proxy Information
text/gemini; charset=utf-8