♻️ Simple & Efficient Gemini-to-HTTP Proxy fuwn.net
proxy gemini-protocol protocol gemini http rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(response): update proxy documentation

Fuwn 09f8d20e e071ba1e

+6 -6
+6 -6
src/response.rs
··· 15 15 if ["/proxy", "/proxy/", "/x", "/x/", "/raw", "/raw/", "/nocss", "/nocss/"] 16 16 .contains(&http_request.path()) 17 17 { 18 - return Ok( 19 - HttpResponse::Ok() 18 + return Ok(HttpResponse::Ok() 20 19 .content_type("text/html") 21 - .body(r#"<pre>This is a proxy path. Please specify a Gemini URL without the "gemini://" to proxy. 22 - 23 - For example: to proxy "gemini://fuwn.me/uptime", visit "/proxy/fuwn.me/uptime".</pre>"#), 24 - ); 20 + .body(r"<h1>September</h1> 21 + <p>This is a proxy path. Specify a Gemini URL without the protocol (<code>gemini://</code>) to proxy it.</p> 22 + <p>To proxy <code>gemini://fuwn.me/uptime</code>, visit <code>https://fuwn.me/proxy/fuwn.me/uptime</code>.</p> 23 + <p>Additionally, you may visit <code>/raw</code> to view the raw Gemini content, or <code>/nocss</code> to view the content without CSS.</p> 24 + ")); 25 25 } 26 26 27 27 let mut configuration = configuration::Configuration::new();