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
Docker using MICOBIN_PUBLIC_PATH always results in 404 #108
Comments
I think it's the /microbin/ path in your url it has issues with. Did you set up a reverse proxy to take /microbin/pasta to just /pasta for example? Because there is no /microbin/ path handled by MicroBin. You should probably set the public path to just https://my.server.net/ |
My reverse proxy (Traefik) is routing all URLs starting with https://my.server.net/microbin to the microbin Docker container. I had thought that setting the public path would allow such a configuration, for microbin to operate with a URI prefix in front of it? Perhaps I also need to strip the /microbin prefix between my reverse proxy and the microbin container. I'll give that a try. |
What the public path arg does is essentially just adjusting the outgoing links generated. It does not change what paths the server is listening to though. This is exactly for the use case when you want to use a path for microbin instead of a subdomain. Most people set it up as bin.server.net but with a custom public path and a reverse proxy you can do server.net/bin, but as you say you will need to strip that path from the requests |
Ok, that makes sense, thank you for the fast response and explanation. Stripping the prefix between Traefik and microbin did indeed solve this problem. My working
|
Nice! I will close this now, hopefully people will find this thread if they search on google, thanks for sharing your config. I will look into explaining this in the documentation as well, I am making some changes to it anyway. |
Everything seems to be right, but all links result in a 404 for what I presume is the paste section of the page. My.server.net is a valid domain, just modified for posting publicly here.
Browser outputs:
https://imgur.com/a/xtiF6Rs
HTML source in browser:
docker-compose.yaml
The text was updated successfully, but these errors were encountered: