Revproxy is working. Added example cgi script

This commit is contained in:
int 80h
2020-05-10 17:18:14 -04:00
parent ae2d7e0092
commit 26b55f7d1e
6 changed files with 85 additions and 37 deletions

View File

@@ -0,0 +1,15 @@
use std::env;
// Base url of agena proxy
const BASE: &'static str = "gemini://example.com/";
fn main() {
let query = match env::var("QUERY_STRING") {
Ok(q) => q,
_ => {
println!("10\tGopher url:\r\n");
return;
},
};
println!("30\t{}{}\r\n", BASE, query);
}