we have a new self hosted instalation of bitwarden. Everything is working exept for downloading of attachments. Uploading and deleting attachments work.
When we click on attachement to download it just spins, when looking at dev console in browser i can see that its actually trying to access http://localhost:4000/attachments//xxxxxxxxxxxxxxxx to download it. Looks like url rewrite is failing on nginx that comes with the bitwarden install. We do not have other proxies.
./bwdata/env/global.override.env
./bwdata/config.yml
I’m having the same issue with a new self-hosted instance through a custom domain (not localhost). I don’t see any instances of localhost in global.override.env or config.yaml
When I try to download the attachment, the request is to:
domain/api/ciphers/…/attachment/…
and the response json is:
{“Object”:“attachment”,“Id”:“long id here”,“Url”:“http://localhost:4000/attachments//long key here”,“FileName”:“2.”,“Size”:“8327857”,“SizeName”:“7.94 MB”}
I’m getting the same issues with attachments & send self hosted.
Tried what @donatas recommended, but i don’t have a /etc/bitwarden/core/attachments directory
However updating baseURL got me a little closer
I can see attachments and send files being uploaded to: Attachments with out the a
/opt/bitwarden/bwdata/core/attchments$ ls
5091fd3f-e951-4031-bb03-ad410061afa6
Where can I check the functions and parameter details of these environment variables?
I want to modify Bitwarden’s defaults time zone, but I don’t know how to set it. Bitwarden defaults UTC time is used, which results in times in emails always needing to be converted to a time zone.
My current version is 2023.12.0. It is possible to follow @donatas method. In addition, if the port you use is not 443, you need to change it to the correct port.