jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

Enable optionally serving applications under subpath/path prefix #42

Open tgerakitis opened 4 years ago

tgerakitis commented 4 years ago

By adding an alias to the nginx default site configuration we can define an environment variable PATH_PREFIX that enables the application to be accessed by the provided value.

The change is very small and simple, I also extended the docs accordingly. If it is bothersome that the app can be accessed in two paths now when left unconfigured namely by root example.com:5800/ & the default unconfigured path example.com:5800/sed_path_prefix/, then I can simply comment out the lines and remove the comments when the ENV is set.

This PR consists of three commits I'd like to have squashed into one.

ps: this is my first merge request on github pls tell me if I need to fix anything.