-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Base URL #4
Comments
@kmlucy This is not possible right now. But it wouldn't be too hard to add it. Before doing it, I want to make sure I understand your use case. I think in Docker you can only bound one container to each port. So I am wondering why it would be useful to have this running on |
I have it running behind a reverse proxy so I would like to be able to access it at https://URL/dozzle. The alternative is to create another subdomain. While that is possible, I would greatly prefer to just have it in a subdirectory instead. |
If you are already running it behind a revery proxy then wouldn't it be possible to map |
It is possible to map it, yes, but it doesn't work for any hardcoded paths. So when it tries to get something like For this specific instance, the application doesn't load because it is looking for |
ahhh. I see. Ok, that makes more sense. I thought that might be the problem but I wasn't sure. Let me see if I can make it easy to fix that. |
Awesome, thanks! |
@kmlucy can you try with https://github.com/amir20/dozzle/releases/tag/v1.2.0? It should work now with Please let me know how it goes! And thanks for the feedback. |
That seems to have fixed this issue, but revealed another. I've opened #6, but this one look fixed. Thanks for the quick turnaround! |
Ok, so how to pass the --base variable in docker-compose? why not just use environment variables? UPDATE: Given the unusual use of arguments, I've managed to circumvent rebuilding the project to use environment variables (i.e: os.Getenv("ADDR")), I figured docker-compose could handle passing the arguments via command: https://docs.docker.com/compose/compose-file/#command for example:
|
I was going to suggest using It wouldn't be hard to make it read ENV though in https://github.com/amir20/dozzle/blob/master/main.go#L36-L38. I use |
This might fix this. I'll need to update the docs. You can do |
Is there a way to set a base URL? I'd like to run Dozzle at /dozzle/, instead of at /.
The text was updated successfully, but these errors were encountered: