You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If no scheme provided by reverse proxy, then do not guess the AppURL, use the configured one.
67
+
// At the moment, if site admin doesn't configure the proxy headers correctly, then Gitea would guess wrong.
68
+
// There are some cases:
69
+
// 1. The reverse proxy is configured correctly, it passes "X-Forwarded-Proto/Host" headers. Perfect, Gitea can handle it correctly.
70
+
// 2. The reverse proxy is not configured correctly, doesn't pass "X-Forwarded-Proto/Host" headers, eg: only one "proxy_pass http://gitea:3000" in Nginx.
71
+
// 3. There is no reverse proxy.
72
+
// Without an extra config option, Gitea is impossible to distinguish between case 2 and case 3,
73
+
// then case 2 would result in wrong guess like guessed AppURL becomes "http://gitea:3000/", which is not accessible by end users.
74
+
// So in the future maybe it should introduce a new config option, to let site admin decide how to guess the AppURL.
0 commit comments