diff --git a/docs/developer/infrastructure.md b/docs/developer/infrastructure.md index 08e94a57..22ce9787 100644 --- a/docs/developer/infrastructure.md +++ b/docs/developer/infrastructure.md @@ -202,6 +202,18 @@ server { } ``` +### 302 redirection + +```nginx +server { + listen 80; + listen [::]:80; + + server_name example.com; + return 302 https://other.example.com$request_uri; +} +``` + ## Forgejo runners The LXC container in which the runner is installed must have capabilities that support the backend. @@ -556,6 +568,12 @@ add chain ip code prerouting { with `nft -f /root/code.nftables`. +#### 302 redirects + +- On hetzner02 + - try.next.forgejo.org redirects to v(latest stable).next.forgejo.org + - dev.next.forgejo.org redirects to v(latest dev).next.forgejo.org + #### Containers - `fogejo-code` on hetzner02