[GH-ISSUE #369] Bitwarden docker behind NGINX issues #214

Closed
opened 2026-03-03 01:26:50 +03:00 by kerem · 2 comments
Owner

Originally created by @sometimescool22 on GitHub (Jan 26, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/369

Hey, I'm trying to run Bitwarden_rs behind NGINX (with cloudflare HTTPS enabled). Here is my nginx.conf:

server {
        listen          80;
        server_name     bw.domain.net;
        location / {
          proxy_pass http://127.0.0.1:8000;
          proxy_set_header Host             $host;
          proxy_set_header X-Real-IP        $remote_addr;
          proxy_set_header X-Forwarded-For  $proxy_add_x_forwarded_for;
        }
}

And the command I'm launching the docker with:

docker run -d --name bitwarden -v /home/h/bw-data/:/data/ -p 8080:80 mprasil/bitwarden:latest

But I haven't been able to reach the server on port 80 (with the nginx config). Going to the IP

Originally created by @sometimescool22 on GitHub (Jan 26, 2019). Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/369 Hey, I'm trying to run Bitwarden_rs behind NGINX (with cloudflare HTTPS enabled). Here is my `nginx.conf`: ``` server { listen 80; server_name bw.domain.net; location / { proxy_pass http://127.0.0.1:8000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } ``` And the command I'm launching the docker with: ``` docker run -d --name bitwarden -v /home/h/bw-data/:/data/ -p 8080:80 mprasil/bitwarden:latest ``` But I haven't been able to reach the server on port 80 (with the nginx config). Going to the IP
kerem closed this issue 2026-03-03 01:26:50 +03:00
Author
Owner

@dani-garcia commented on GitHub (Jan 26, 2019):

I deleted you other issue, as you asked. About your problem, I don't know much about proxies and Docker, so maybe someone else sees this and helps you with it.

<!-- gh-comment-id:457847205 --> @dani-garcia commented on GitHub (Jan 26, 2019): I deleted you other issue, as you asked. About your problem, I don't know much about proxies and Docker, so maybe someone else sees this and helps you with it.
Author
Owner

@sometimescool22 commented on GitHub (Jan 26, 2019):

Thanks (last issue had some PII). Turns out my DNS record for bw.domain.net was going to the wrong IP, whoops. Works now.

<!-- gh-comment-id:457849581 --> @sometimescool22 commented on GitHub (Jan 26, 2019): Thanks (last issue had some PII). Turns out my DNS record for bw.domain.net was going to the wrong IP, whoops. Works now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#214
No description provided.