mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #469] How to use with nginx reverse proxy container and nginx letsencrypt companion container #287
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#287
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @leggettc18 on GitHub (May 2, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/469
I'm attempting to deploy this using a docker_compose file, I already have it hosting a few more service set up in a similar way that work just fine, but for some reason with bitwarden_rs I'm getting a 502 bad gateway when I visit the domain. SSL is working, but I'm not getting to the actual app. Some help would be appreciated, here's the relevant parts of my docker_compose file.
@mprasil commented on GitHub (May 2, 2019):
If I understand letsencrypt companion container configuration correctly (never used it, so I might be wrong here), you might want to remove
VIRTUAL_PORT: 443from your configuration, becausebitwarden_rslistens on port80by default.@leggettc18 commented on GitHub (May 2, 2019):
I still get the bad gateway if I take that out. I also tried changing the Virtual Port to 80, as well as setting the Rocket Port to 443 with Virtual Port to 443.
@mprasil commented on GitHub (May 2, 2019):
You also want to remove
VIRTUAL_PROTO: httpsif you're not doing https on thebitwarden_rsside.@leggettc18 commented on GitHub (May 2, 2019):
I did that as well, still getting the bad gateway error.
@mprasil commented on GitHub (May 2, 2019):
Any errors in the
bitwarden_rscontainer logs?@leggettc18 commented on GitHub (May 2, 2019):
Would they be somewhere in the bwdata folder? Or somewhere in the container itself? I'm at work currently but I'll take a look as soon as I can.
@mprasil commented on GitHub (May 2, 2019):
The logs are sent to stdout by default, so you should be able to see them with
docker logs.@leggettc18 commented on GitHub (May 3, 2019):
Actually I may have figured it out. It looks like had an incorrectly configured container running that was maybe taking up the port or something? I think it was caused by me renaming the parent directory and attempting to relaunch the containers, not realizing it made new containers. I saw an error and put it back but I didn't realize the containers had been created already. Stopping and removing all containers and relaunching the docker-compose command seems to have fixed it. Thanks for your help!
@scope-username commented on GitHub (May 7, 2019):
Could you please help me out with docker-compose you have used to get bitwarden_rs container running with nginx reverse proxy container and nginx letsencrypt companion container ? I am getting the same 502 bad gateway error as you did previously and changing the port for bitwarden_rs container didn't help.
@kdaveid commented on GitHub (May 29, 2019):
Maybe @leggettc18 can confirm he used the posted
docker-composefile above (or post the current one) to help other users/community. If everything is fine, please close the issue, that helps additionally. Thanks!@leggettc18 commented on GitHub (Jun 3, 2019):
I apologize for just now seeing this. I only have access to my phone for right now, but I'll post my current docker-compose file tomorrow night.
@leggettc18 commented on GitHub (Jun 4, 2019):
Here's the relevant parts of my docker-compose file that are currently working. (Sensitive information edited out, obvs). I don't believe I changed anything between these trys, the problem I had was a previously incorrectly configured container taking the port but not getting routed to properly by the reverse proxy. Check to make sure you don't have any containers still running from failed attempts or previous configurations. Otherwise this setup should work.
@leggettc18 commented on GitHub (Jun 4, 2019):
I'll close this issue now since I've got it working. @scope-username if you're still having issues you may want to open another issue, since your problem seems to be different.