Author:
Hash:
Timestamp:
+5 -10 +/-2 browse
Kevin Schoon [me@kevinschoon.com]
d638b5e28c6316d7a9735d45c9f7a917b348bbfe
Sun, 19 Jul 2026 09:09:33 +0000 (1 month ago)
| 1 | diff --git a/ayllu-tutorial.7.md b/ayllu-tutorial.7.md |
| 2 | index 781e717..7d6edc8 100644 |
| 3 | --- a/ayllu-tutorial.7.md |
| 4 | +++ b/ayllu-tutorial.7.md |
| 5 | @@ -165,18 +165,14 @@ Ayllu is designed to be run behind a reverse proxy such as Nginx. |
| 6 | server { |
| 7 | listen 443 ssl; |
| 8 | server_name forge.example.org; |
| 9 | - |
| 10 | set $backend "http://127.0.0.1:10000"; |
| 11 | - |
| 12 | location / { |
| 13 | proxy_pass $backend; |
| 14 | proxy_set_header Host $host; |
| 15 | proxy_set_header X-Real-IP $remote_addr; |
| 16 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 17 | } |
| 18 | - |
| 19 | # Hidden repositories can be password protected if desireable |
| 20 | - |
| 21 | location ~ /private* { |
| 22 | proxy_pass $backend; |
| 23 | # include proxy.conf; |
| 24 | @@ -185,21 +181,16 @@ server { |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | - |
| 29 | # Static sites can simply match a Host header such as below. |
| 30 | - |
| 31 | server { |
| 32 | listen 443 ssl; |
| 33 | server_name my-website.example.org; |
| 34 | - |
| 35 | set $backend "http://127.0.0.1:10000"; |
| 36 | - |
| 37 | location / { |
| 38 | proxy_pass $backend; |
| 39 | proxy_set_header Host $host; |
| 40 | proxy_set_header X-Real-IP $remote_addr; |
| 41 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
| 42 | } |
| 43 | - |
| 44 | } |
| 45 | ``` |
| 46 | diff --git a/xtask/src/main.rs b/xtask/src/main.rs |
| 47 | index 3b160b3..cfb519a 100644 |
| 48 | --- a/xtask/src/main.rs |
| 49 | +++ b/xtask/src/main.rs |
| 50 | @@ -63,7 +63,11 @@ fn html_gen(src: &Path, dst: &Path) -> std::io::Result<()> { |
| 51 | .spawn()?; |
| 52 | let output = fp.wait_with_output()?; |
| 53 | assert!(output.status.success()); |
| 54 | - std::fs::write(dst, output.stdout.as_slice())?; |
| 55 | + let stdout = String::from_utf8(output.stdout).unwrap(); |
| 56 | + // NOTE: for some reason mandoc places <br/> tags in <pre> tags creating |
| 57 | + // weirdly triple space literal content. |
| 58 | + let stdout = stdout.replace("<br/>\n", ""); |
| 59 | + std::fs::write(dst, stdout)?; |
| 60 | Ok(()) |
| 61 | } |
| 62 |