Hi, I quickly added support for hosting behind a reverse proxy #125 (nginx).
Served urls have not been changed as the reverse proxy will hide the base url in the http request (site.com/glance/ will be received as /), only links have changed.
Base url can be specified in the configuration under Server:
server:
base-url: /glance
Note that it must begin with a slash / to work properly.
Tested with go run . and docker container, currently running in my home server setup.
Feel free to change whatever you need.
TODO
manifest.json still contains /static/app-icon.png which won't resolve properly, probabily will need to template the file using go.
Hi, I quickly added support for hosting behind a reverse proxy #125 (nginx).
Served urls have not been changed as the reverse proxy will hide the base url in the http request (
site.com/glance/
will be received as/
), only links have changed.Base url can be specified in the configuration under
Server
:Note that it must begin with a slash
/
to work properly.Tested with
go run .
and docker container, currently running in my home server setup.Feel free to change whatever you need.
TODO
manifest.json
still contains/static/app-icon.png
which won't resolve properly, probabily will need to template the file using go.Example
My current setup is the following:
nginx.conf
docker-compose.yml
glance.yml