DockerYourXyzzy icon indicating copy to clipboard operation
DockerYourXyzzy copied to clipboard

Possible to change the base_url

Open ckanoab opened this issue 4 years ago • 2 comments

I'd like to put xyz behind a reverse_proxy but it doesn't like being at a subdirectory. Can I specify a base_url in the docker run command?

ckanoab avatar Apr 03 '20 07:04 ckanoab

Would be great to have this ability, currently unable to run it as a subdomain with my DDNS provider so can only run as subdirectory but am faced with this error message every time

HTTP ERROR 404
Problem accessing /cah. Reason:

    Not Found

spencerskinner99 avatar May 13 '20 21:05 spencerskinner99

I've recently published a docker-compose example featuring an ngrok tunnel, which should demonstrate how to run this container in most networking scenarios.

A reverse proxy such as Nginx or HAProxy or Traefik should be of similar configuration - the base_url param shouldn't need changing inside the container, routing should happen at the network layer outside the container. I think the network proxy should also handle URL rewriting so that public-facing paths end up routed to /cah or similar.

I think such networking configuration is outside the scope of this particular image as there are many possibilities... do you agree? We could probably come up with an Nginx example if that would help. 👍

emcniece avatar Aug 20 '20 04:08 emcniece