support proxy prefix

This commit is contained in:
sentriz
2020-01-27 17:00:23 +00:00
parent 6ad284aa3e
commit 2e85c95018
19 changed files with 401 additions and 361 deletions

View File

@@ -36,7 +36,7 @@ func (c *Controller) ServeHome(r *http.Request) *Response {
r.URL.Scheme,
)
host := firstExisting(
"localhost:7373", // fallback
"localhost:4747", // fallback
r.Header.Get("X-Forwarded-Host"),
r.Host,
)