diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-05-19 22:56:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-19 14:56:08 +0000 |
commit | 339bc8bc8fdb4ead3c43b4604b100f83e6f47cb5 (patch) | |
tree | 8423ebf874cabad062bf11b56b60e1eb59a50de0 /routers/web/admin | |
parent | 58a03e9fadb345de5653345c2a68ecfd0750940a (diff) | |
download | gitea-339bc8bc8fdb4ead3c43b4604b100f83e6f47cb5.tar.gz gitea-339bc8bc8fdb4ead3c43b4604b100f83e6f47cb5.zip |
Improve reverse proxy documents and clarify the AppURL guessing behavior (#31003)
Fix #31002
1. Mention Make sure `Host` and `X-Fowarded-Proto` headers are correctly passed to Gitea
2. Clarify the basic requirements and move the "general configuration" to the top
3. Add a comment for the "container registry"
4. Use 1.21 behavior if the reverse proxy is not correctly configured
Co-authored-by: KN4CK3R <admin@oldschoolhack.me>
Diffstat (limited to 'routers/web/admin')
-rw-r--r-- | routers/web/admin/admin_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/admin/admin_test.go b/routers/web/admin/admin_test.go index 782126adf5..6c38f0b509 100644 --- a/routers/web/admin/admin_test.go +++ b/routers/web/admin/admin_test.go @@ -87,6 +87,6 @@ func TestSelfCheckPost(t *testing.T) { err := json.Unmarshal(resp.Body.Bytes(), &data) assert.NoError(t, err) assert.Equal(t, []string{ - ctx.Locale.TrString("admin.self_check.location_origin_mismatch", "http://frontend/sub/", "http://host/sub/"), + ctx.Locale.TrString("admin.self_check.location_origin_mismatch", "http://frontend/sub/", "http://config/sub/"), }, data.Problems) } |