question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bitwarden nginx 502 + jwilder/nginx-proxy

See original GitHub issue

Hello everybody

I need help. I have set up bitwarden, and now comes a 502 error.

Do not see the mistake, have already tried different.

Thanks in advance.

config.yml

# Note: After making changes to this file you need to run the `rebuild` or `update`
# command for them to be applied.
# 
# Full URL for accessing the installation from a browser. (Required)
url: https://host.xyz
# 
# Auto-generate the `./docker/docker-compose.yml` config file.
# WARNING: Disabling generated config files can break future updates. You will be
# responsible for maintaining this config file.
# Template: https://github.com/bitwarden/server/blob/master/util/Setup/Templates/DockerCompose.hbs
generate_compose_config: true
# 
# Auto-generate the `./nginx/default.conf` file.
# WARNING: Disabling generated config files can break future updates. You will be
# responsible for maintaining this config file.
# Template: https://github.com/bitwarden/server/blob/master/util/Setup/Templates/NginxConfig.hbs
generate_nginx_config: true
# 
# Docker compose file port mapping for HTTP. Leave empty to remove the port mapping.
# Learn more: https://docs.docker.com/compose/compose-file/#ports
http_port: 8000

And here the docker-compose.override.yml file: docker-compose.override.yml

version: '3'
services:
 nginx:
    ports:
      - 8000
    environment:
      - VIRTUAL_HOST=host.xyz
      - VIRTUAL_PORT=8000
      - VIRTUAL_PROTO=http
      - LETSENCRYPT_HOST=host.xyz
      - LETSENCRYPT_EMAIL=email
    networks:
      webproxy:

networks:
  webproxy:
    external:
      name: nginx-proxy

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

1reaction
Jerome2103commented, Oct 1, 2019

rent a mini server now xD

1reaction
ghostcommented, Sep 11, 2019

Thats my config:

  bitwarden:
    container_name: bitwarden
    image: 'mprasil/bitwarden'
    ports:
      - "3012:3012"
    volumes:
      - '.bitwarden/:/data'
    environment:
      - VIRTUAL_HOST=vault.domain.com
      - VIRTUAL_NETWORK=nginx-proxy
      - VIRTUAL_PORT=80
      - LETSENCRYPT_HOST=vault.domain.com
      - LETSENCRYPT_EMAIL=mail@domain.com
      - DOMAIN=https://vault.domain.com/
      - SIGNUPS_ALLOWED=true
      - SMTP_HOST=send.123.com
      - SMTP_FROM=mail@domain.com
      - SMTP_PORT=587
      - SMTP_SSL=true
      - SMTP_USERNAME=mail@domain.com
      - SMTP_PASSWORD=xxx123
    networks:
      - proxy-tier
    restart: always 
  • custom. vhost.d for vault.domain.com vault.domain.com.conf
client_max_body_size 128M;
    location /notifications/hub {
        proxy_pass http://172.19.0.2:3012;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
    }

    location /notifications/hub/negotiate {
        proxy_pass http://172.19.0.2:80;
    }
  • custom. vhost.d_location for vault.domain.com vault.domain.com.conf_location
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
Read more comments on GitHub >

github_iconTop Results From Across the Web

Bitwarden nginx 502 + jwilder/nginx-proxy
Hello everybody I need help. I have set up bitwarden, and now comes a 502 error. Do not see the mistake, have already...
Read more >
Bitwarden nginx 502 + jwilder/nginx-proxy · Issue #549 - GitHub
Hello everybody I need help. I have set up bitwarden, and now comes a 502 error. Do not see the mistake, have already...
Read more >
Bitwarden nginx 502 + jwilder/nginx-proxy - Reddit
Hello everybody I need help. I have set up bitwarden, and now comes a 502 error. Do not see the mistake, have already...
Read more >
Setup Nginx reverse-proxy - docker - Stack Overflow
I am using jwilder/nginx-proxy which makes it very easy to add new ... The bitwarden developer suggested adjusting the reverse-proxy.
Read more >
Vaultwarden gives 502 bad gateway nginx after reboot
Description of my issue. Bitwarden was randomly noty accepting my master password. Each time, the problem was fixed after a server reboot. After ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found