dani-garcia / vaultwarden

Unofficial Bitwarden compatible server written in Rust, formerly known as bitwarden_rs
GNU Affero General Public License v3.0
38.47k stars 1.87k forks source link

IOS can't download attachments #881

Closed snakefox666 closed 4 years ago

snakefox666 commented 4 years ago

Hello guys, my bitwarden_rs + nginx on docker is working perfectly fine, a big thanks for everything !!! The only issue I had is with the IOS apps and the attachements. Working

not working

as I'm behind a nginx reverse proxy I already tried to play with the env DOMAIN without any sucess. When I hit the download button on IOS I had a message "can't download the attachments" and nothing in the logs of my NGIX, like if bitwarden can't build correctly the link ...

Any ideas g? ;-)

shauder commented 4 years ago

Seems like you likely still have a setting wrong or the domain setting not correct. I am able to download from the iOS app no problem.

I am also behind a reverse proxy (nginx) running on docker with Let's Encrypt certificates.

snakefox666 commented 4 years ago

Hey shauder, I think that I followed your nginx example in the wiki :-) Do you know how I can check what's wrong ? Should I insist with the DOMAIN env ?

Edit: what I don't understand is that I tried with Chrome (for example) to download the attachments and it's working perfectly fine, If I'm reading the URL generated to download it it's the correct one with my public DNS entry.

shauder commented 4 years ago

What kind of certificate are you using?

BlackDex commented 4 years ago

Also, do you see anything during the download failed in the log file of either nginx or bitwarden?

snakefox666 commented 4 years ago

Hello guys, it's now working fine ! I played a little bit with the env variable "DOMAIN" and now it's working perfectly fine. I think that I made a typo mistake in the URL, the domain URL should be added without the / final ( http://testexample.com and not http://testexample.com/ ). Thanks all for your help on that one and have a nice day ;-)