-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Question: How to set up Caddy? #301
Comments
My caddyfile is setup like this:
Both the proxy and the server are running in the same machine. Because I have my domain behind cloudflare, I'm setting the HTTPS with the cloudflare plugin, but you can use the default option or another plugin (check https://caddyserver.com/docs/tls). To test if the problem is obtaining the certificates, you can try using |
@dani-garcia |
Thanks that helped a bit. I got new certs. :) But still no luck with proxy. Just 502 error. My Caddyfile is like above except tls [email protected]. Caddy run command:
Bitwarden_rs run command:
I don't understand what is wrong. Some help is needed. Can you see what is wrong? |
Or, if you really want a DNS name (or to test!), check out this site: http://nip.io/ |
@dani-garcia Error.log with localhost in the caddyfile
Curl -Iv https://bw.domain.net (with 0.0.0.0)
Results are same with 'localhost' setting. Only numbers after 'easy handle' changes. Ssl off
With Google I found this. caddyserver/caddy#1944 Added bw.domain.net to hosts file. No help. Still no working reverse proxy. Do you still have ideas to try? :) |
@MeiRos The problem is that localhost/127.0.0.1 inside the caddy docker container is not the IP of the host, but rather the local caddy container. See #126 (comment) for an docker-compose example, it will automatically create a local |
Thanks @sitic it was easy to setup with docker-compose. I thought it's easy to use 'docker run' too, but it needs more work than I can do. |
I think this is solved by now and we can close it |
Hi everybody!
Bitwarden_rs is awesome and easy to set up, if people use the easy way.
When I only run Bitwarden_rs Docker image I didn't have any problems. Container was easy to set up. Now I want to use Caddy as reverse proxy on the same server. But nothing works. I have searched guides, info and stories, but none of them solve my problem. I have tryed different settings and results are: bad gateway, too many redirections or something is wrong with ssl connection. Can't get new certs with Caddy and I can't make old ones to work.
I think I have tryed all the possible configurations, even those which I knew won't work.
I have bw.domain.net with my Bitwarden_rs server's IP. Domain.net is with other server's IP. Can this cause problems with Caddy Docker image? With Certbot I didn't have problems.
I tryed to set Caddyfile like the example in the proxy file. Servers were localhost and 127.0.0.1. Both didn't work.
Can't say much about Caddyfile or parameters with docker run command, because I have tryed so many different sets.
If someone have similar setup or knowledge how this should work, some advice would be awesome.
Maybe I'm too tired to figure this out. It's already time to get ready for the night and bed.
The text was updated successfully, but these errors were encountered: