Closed sureshprasanna70 closed 4 years ago
The path helper functions, don't include any host information, by design. They are absolute paths. If you want full URLs, I would recommend writing a helper function.
Is there any other workaround to handle the case where the reverse proxy isn't a domain alone(example.com) but a domain with a path(example.com/admin)?
https://godoc.org/github.com/gobuffalo/buffalo#App
You want to set the prefix option.
Thanks but I already tried that. Setting the prefix option, renames every path. Say I have a loginPath
and use a prefix called app
, the path becomes loginAppPath
or appLoginPath
. Again this breaks the application when moving between environments.
Description
I have a new buffalo application that is currently deployed behind a proxy. The proxy config looks similar to
I have initialized my buffalo app in
app.go
asExpected Behaviour:
Any path generated by the go application to be prefixed with value of the HOST variable.
Actual Behaviour:
None of the paths are prefixed with the HOST variable. This causes 404 for all assets and routes of the application.
Info