From b3cd741beef1a7811d93b7a8ae8d6569cb107de8 Mon Sep 17 00:00:00 2001 From: WeebDataHoarder Date: Wed, 30 Apr 2025 03:08:18 +0200 Subject: [PATCH] readme: note that port is necessary in case of non-standard port usage --- README.md | 2 ++ examples/config.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index de30c95..8100f7e 100644 --- a/README.md +++ b/README.md @@ -431,6 +431,8 @@ services: GOAWAY_CHALLENGE_TEMPLATE_THEME: forgejo-dark # Backend to match. Can be subdomain or full wildcards, "*.example.com" or "*" + # Note: if you access git.example.com:8080, you will need to set the following + # GOAWAY_BACKEND: "git.example.com:8080=http://forgejo:3000" GOAWAY_BACKEND: "git.example.com=http://forgejo:3000" # additional backends can be specified via more command arguments diff --git a/examples/config.yml b/examples/config.yml index b6132af..61be74e 100644 --- a/examples/config.yml +++ b/examples/config.yml @@ -58,6 +58,12 @@ backends: # url: "http://forgejo:3000" # ip-header: "X-Client-Ip" + # Example HTTP backend matching a non-standard port in Host + # Standard ports are 80 and 443. Others will be sent in Host by browsers + #"git.example.com:8080": + # url: "http://forgejo:3000" + # ip-header: "X-Client-Ip" + # Example HTTPS backend with host/SNI override, HTTP/2 and no certificate verification #"ssl.example.com":