💾 Archived View for hacktivis.me › server.sh captured on 2020-11-07 at 00:49:32.
-=-=-=-=-=-=-
#!/bin/sh # Copyright 2020 Haelwenn (lanodan) Monnier <contact+gemini@hacktivis.me> # Distributed under the terms of the GNU Affero General Public License version 3 # AGPL-3 because it's a service on the internet, screw permissive licences for these export GEMDIR="/srv/gemini" IFS=#' ' read -r line # ' hack for vis editor to reset hightlighting… query="${line#gemini://*/}" query="${query%%../*}" query="${query//%20/ }" path="$GEMDIR/${query:-index.gmi}" status="--" if echo $path | egrep -q '.gmi