BitWarden - self hosted password manager using vaultwarden/server image

Docker BitWarden - self hosted password manager using vaultwarden/server image

Currently reading
Docker BitWarden - self hosted password manager using vaultwarden/server image

Telos

Subscriber
2,635
850
NAS
DS418play, DS213j, DS3622+, DSM 7.2.4-11091
Last edited:
For the more timid... Stop the bitwardenrs container, then copy the /docker/bitwarden/data folder to /docker/vaultwarden/data. Point /docker/vaultwarden/data (external) to /data (internal).

Assign an external port to internal port 80, and update your reverse proxy to point to the vaultwarden port, and then launchthe new container!

Sync to confirm all is connected.
 
613
115
NAS
RS820+, DS718+
Operating system
  1. Windows
Mobile operating system
  1. iOS
No, apart from the name and the image itself, nothing. You can use your existing volumes with this image.

yes I have made the switch over. The only thing I had to do was create a new container. I had to refer back to the resource to make sure all steps were properly configured. Stuff like this I have to create my own reference and throw it in a word doc, in case I need it in a pinch.
 
65
15
NAS
DS209j | DS210j | DS410 | DS214 | DS216+II | DS916+ | DS920+
Router
  1. RT2600ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Hi @Rusty, thanks a lot for your effort here!
Vaultwarden 2.23.0 is still running like a charm.

I just wonder:
What's the most elegant way to achieve a redirect from http to https?

I've set up websocket LiveSync like described here.
Some browsers (Firefox) redirect http://mybitwarden.url to https://mybitwarden.url like expected.
But some browsers (Safari) redirect http://mybitwarden.url to https://myNAS.url:port

This corresponds to my settings in "Control Panel": Redirect for my DSM interface is turned on.
But how do I achieve the redirect for my specific bitwarden.url?

Using this tutorial (installing web station etc.) or is there a better/easier?

Thanks a lot,
marko
 

Rusty

Moderator
NAS Support
5,842
1,720
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
redirect from http to https?
Best way imho would be to use a proper reverse proxy. I use NPM docker image for this and by default it redirects http to https for all my apps. Ofc, you will have to have 80 and 443 open at the same time for this, but still, it works.

 
17
2
NAS
DS412+
Hi, I've just updated the vault warden image to the last one (2.23.0) via Portainer. Everything goes well, and when I launch the address fort the graphical interface it appears without problem (it's http://192.168.1.109:32769).
I put e-mail address and the password, and I receive an error message: "This browser requires https to use the web vault. Check the Vaultwarden wiki for details on how to enable it".

Have I change something in the docker configuration? External access via Synology Reverse Proxy works fine, and redirect my "xxxx.synology.me:443" to the local "http://192.168.0.109:32769".

Thanks in advance.
 

Rusty

Moderator
NAS Support
5,842
1,720
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
Hi, I've just updated the vault warden image to the last one (2.23.0) via Portainer. Everything goes well, and when I launch the address fort the graphical interface it appears without problem (it's http://192.168.1.109:32769).
I put e-mail address and the password, and I receive an error message: "This browser requires https to use the web vault. Check the Vaultwarden wiki for details on how to enable it".

Have I change something in the docker configuration? External access via Synology Reverse Proxy works fine, and redirect my "xxxx.synology.me:443" to the local "http://192.168.0.109:32769".

Thanks in advance.
You can’t access bw without a valid https url regardless where you are accessing it from.
 
613
115
NAS
RS820+, DS718+
Operating system
  1. Windows
Mobile operating system
  1. iOS
Hi, I've just updated the vault warden image to the last one (2.23.0) via Portainer. Everything goes well, and when I launch the address fort the graphical interface it appears without problem (it's http://192.168.1.109:32769).
I put e-mail address and the password, and I receive an error message: "This browser requires https to use the web vault. Check the Vaultwarden wiki for details on how to enable it".

Have I change something in the docker configuration? External access via Synology Reverse Proxy works fine, and redirect my "xxxx.synology.me:443" to the local "http://192.168.0.109:32769".

Thanks in advance.

Can you try HTTPS://192.168.1.109:32769 you'll get a cert error because its not a registered domain name, but you should be able to click advanced (depending on browser) and proceed with the connection
 
17
2
NAS
DS412+
You can’t access bw without a valid https url regardless where you are accessing it from.

I’ve tried to use https://192.168.1.109:32769, but it doesn’t work. It’s a bit annoying not to access to the local Bitwarden server…
-- post merged: --

Can you try HTTPS://192.168.1.109:32769 you'll get a cert error because its not a registered domain name, but you should be able to click advanced (depending on browser) and proceed with the connection

I’ll try with another browser, because using Safari the https local url gives me an error without possibility to continue.
 
613
115
NAS
RS820+, DS718+
Operating system
  1. Windows
Mobile operating system
  1. iOS
I’ve tried to use https://192.168.1.109:32769, but it doesn’t work. It’s a bit annoying not to access to the local Bitwarden server…

Actually when accessing it internally make sure you use the local bw port. If port 32769 is the external port, which is forwarded to your internal port it won’t work.

@Rusty I know this would work for synology. Maybe bw is different
 

Rusty

Moderator
NAS Support
5,842
1,720
www.blackvoid.club
NAS
DS718+, DS918+, 2x RS3614RPxs+
Router
  1. RT1900ac
  2. RT2600ac
  3. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
That's an outdated image. Use Vaultwarden. It works with all Bitwarden apps.
The guide has modifications reflecting the image change (just not the screenshots).

Hi Rusty, will this setup work with the Apple iOS Bitwarden app, or is there any additional steps to follow please? Thank you
Yes it works fine with the latest official mobile app. Dev team uses the official code for this fork to maintain the compatibility. There was never any problem with it.
 
Note: Vaultwarden uses Bitwarden's official api contract, which is expressed in openapi v3/Swagger and can be used to generate the api client code. Everything else is re-implemented in Rust. Beeing fully api-compliant is what makes all Bitwarden clients work with Vaultwarden as if it would be Bitwarden.
 
613
115
NAS
RS820+, DS718+
Operating system
  1. Windows
Mobile operating system
  1. iOS
Last edited:
How are you guys backing up Bitwarden (Vaultwarden image)? Is it safe to use hyper backup or snapshot replication to take snapshots considering its a sqlite3 database? Or are you doing backups through the admin page "Backup database?"
 
417
164
NAS
DS212J, DS214play, DS216, DS216play, DS414, DS918+, RS816
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. Windows
Mobile operating system
  1. iOS
I periodically go into Docker and EXPORT the container into a subdirectory in my Docker shared folder. And, I use hyperbackup to back up the entire Docker shared folder (which includes all the data, settings, etc for all my docker containers/applications) to another NAS every two hours.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

Telos submitted a new resource: Seafile (self-hosted) on Docker - A powerful, open source, cross-platform...
Replies
0
Views
263
I'll delete everything I can containers/images/etc, and start fresh over the weekend. While I really like...
Replies
48
Views
3,705
From looking in a terminal session on the running FreshRSS container... [email protected]:/# more /etc/hosts...
Replies
58
Views
6,026
I ran across a very complete how-to-install-nextcloud on Docker using the Synology UI (just the UI, not...
Replies
28
Views
6,120
Hello, i just tried to follow these steps above, but all I get is a psql: could not connect to server...
Replies
43
Views
7,933
I discovered if you use fireflyiii/core:latest everything works just fine
Replies
35
Views
13,161

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top