Skip to content

Instantly share code, notes, and snippets.

@dece
dece / smolcgi.py
Created June 28, 2021 15:37
Gemini CGI helper compatible with gmnisrv
#!/bin/false
from os import environ
def getenv(name):
return environ.get(name, "")
version = getenv("GATEWAY_INTERFACE")
protocol = getenv("SERVER_PROTOCOL")
software = getenv("SERVER_SOFTWARE")
url = getenv("GEMINI_URL")