Bitwarden docker behind NGINX issues #2201

Closed
opened 2025-10-09 17:50:31 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @sometimescool22 on GitHub.

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. 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
Author
Owner

@dani-garcia commented on GitHub:

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.

@dani-garcia commented on GitHub: 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:

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

@sometimescool22 commented on GitHub: 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.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2201