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
// 1. The reverse proxy is configured correctly, it passes "X-Forwarded-Proto/Host" headers. Perfect, Gitea can handle it correctly.
70
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.
71
+
// 3. There is no reverse proxy. In this case, we allow the configured LocalURL to be passed in the Host header.
72
72
// Without an extra config option, Gitea is impossible to distinguish between case 2 and case 3,
73
73
// then case 2 would result in wrong guess like guessed AppURL becomes "http://gitea:3000/", which is not accessible by end users.
74
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