PierreZ / goStatic

A really small static web server for Docker
GNU General Public License v2.0
391 stars 77 forks source link

Add --context parameter to allow the definition of an initial url path #13

Closed jessebluemr closed 6 years ago

jessebluemr commented 6 years ago

Hello,

this patch provides a way to define the 'context path' of the file server.

I required this to sync the URL path part between a load balancer and and a container with this image hosting some documentation. The external path was /documents/ and the load balancer was not able to strip this path from the request so I required this patch to reflect this context name inside the container.

Maybe this is of interest for others, too.

PierreZ commented 6 years ago

Thanks for the PR :heart: