#!/usr/bin/env ruby PATH_INFO = ENV['PATH_INFO'] ROOT_PATH = File.absolute_path(__FILE__ + '/../') if PATH_INFO path = File.absolute_path(ROOT_PATH + '/' + PATH_INFO) if path.start_with?(ROOT_PATH) && File.file?(path) && File.readable?(path) print "20 text/plain\r\n" print File.read(path) else print "59 ..\r\n" end else print "51 ..\r\n" end gemini://rwv.io/src/src

-- Leo's gemini proxy

-- Connecting to rwv.io:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/plain

-- Response ended

-- Page fetched on Thu May 2 03:44:02 2024