Browse Source
Infer site URL from host and headers
Infer site URL from host and headers
We can use the Host property of the request and the X-Forwarded-Proto to infer the site URL. To reduce complexity, the path is not inferred, and it is assumed that linx-server is running at /. If this is not the case, the site URL must be manually configured; this is no different than it was before.pull/82/head
mutantmonkey
9 years ago
8 changed files with 152 additions and 28 deletions
-
2fileserve.go
-
24headers.go
-
2pages.go
-
31server.go
-
97server_test.go
-
6torrent.go
-
4torrent_test.go
-
14upload.go
Write
Preview
Loading…
Cancel
Save
Reference in new issue