💾 Archived View for bbs.geminispace.org › s › Gemini › 12339 captured on 2023-12-28 at 16:04:51. Gemini links have been rewritten to link to archived content

View Raw

More Information

➡️ Next capture (2024-02-05)

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

levior v1.2.5: gemtext filters system and custom gemini responses in URL rules. Only a few filters available for now but you can always write your own.

https://gitlab.com/cipres/levior

Posted in: s/Gemini

😺 gemalaya

Dec 05 · 3 weeks ago · 👍 norayr, jmjl

1 Comment

😺 gemalaya · Dec 05 at 14:43:

Forgot to document the custom responses but here's how it's done (the "status" is an aiogemini Status code):

urules:
  - regexp: "^https?://google"
    response:
      status: 'PROXY_REQUEST_REFUSED'

— https://github.com/keis/aiogemini/blob/master/aiogemini/__init__.py