-
Notifications
You must be signed in to change notification settings - Fork 213
Self Hosting Issues Getting Started - 404 (Sign up not going through) #219
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
Comments
Same issue, only I don't use Caddy nor Tailscale, just accessing the Web-UI directly (doesn't work through NPM either). |
Can you check if #135 solves your issue? |
I haven't tried it yet. Is there a branch or tag I can look at |
No, you've to use a proxy and rewrite as of now. |
That's a different error, actually. Fairly sure it's also related to some routing issue though, and should be somewhere in your setup, since I can't see that problem. Could you maybe share the exact way you set this up? We can try to replicate and find solutions / fix Thank you! |
Hmm. I've posted env and docker compose. I use caddy and so I posted caddy file. I also use Tailscale. What can I post to help with understanding the setup ? |
Can you share your current caddy file please?
I notice you map Docker to host port in your env. Could you also try to remove that, and instead map directly via caddy to the docker container? For reference my NGINX backend block:
(not sure abut the exact equivalent caddy syntax but I could imagine the trailing slashes are as well important in Caddy as they are in nginx). Not sure caddy can process the same type of regex, but it should help to understand where and how to rewrite) |
My Caddyfile is above in my post, the first thing. |
If the Caddy file you shared is still as in the first post, it is not rewriting
In your .env, you have:
that is not how it is documented in the .env here: https://github.com/rybbit-io/rybbit/blob/master/.env.example So, I am suspecting you did that to map host:docker ports, however, I can imagine this creating some conflicts this way. Hope that makes sense! |
I cant figure it out :( Ill wait till the fix I suppose. I tried cleaning up Caddyfile according to the link but nothing. Happy to send mt docker compose again and see if there's anything there that I can do. |
Try this caddy file:
(this is assuming you run everything on the same machine - caddy, rybbit back and front end) Then, change your .env to this:
Then, restart the docker (I am not sure if you use pure docker compose or the setup.sh scripts, both offer ways to restart / rebuild the containers) Let me know if that works! |
Yep tried same thing no luck. Really odd. I didn't edit docker compose though not sure if it's needed |
Sorry, I notice something else in your env: If you do that, I think you need to use their Caddy - that is, it appears to me you probably started off with the That creates an .env file that will set the server to true, since it includes Caddy. What I suggest:
Honestly, if you do not want to use their inbuilt server, I suggest https://www.rybbit.io/docs/self-hosting-advanced#docker-compose-setup-with-npm-without-exposing-ports - but that will require you to use the proxy in docker, so you can have it in the same network. |
A suggestion would be to add an environment variable to backend "PREFIX_PATH=/api" and add this to all routes (if not provided follow the current behavior) instead of needing to rewrite paths (which can get complicated depending on environment) |
Thanks how do I do that |
Actually that suggestion was meant for the maintainers as it would be necessary to implement into the backend's code itself, or maybe you can try if you're feeling like it via Pull Request, anyway sorry for the confusion lol |
Rest assured this is definitely a BUG, not something that is intended to be "this is how it has to be done" |
Thanks I’m not in a rush so I can wait for the fix unless someone wants to create a PR
|
In this case, @doronkatz - you should be able to follow #135 as it would be the main/same issue as this one. So don't copy that just yet :D |
Assuming the original need was handled, this will be automatically closed now. |
Uh oh!
There was an error while loading. Please reload this page.
Hi folks
Starting out new here. Trying to install on my mac mini via docker. My stack also includes caddy and tailscale, both of which I run using local standalone instead of docker versions. They work fine with my other apps.
When i go to sign up and enter my details it wont let me continue. It gives me a 404 error.
My .Caddyfile is:
My .env is:
docker-compose not altered..
Logs are:
Attached is UI error
The text was updated successfully, but these errors were encountered: