dani-garcia / vaultwarden

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

Can't change logo #674

Closed DA-Michael closed 4 years ago

DA-Michael commented 4 years ago

I can't seem to figure out how to theme my install. I did find in src/static/images there was a logo-grey.png, but changing that to my own logo and building the docker image doesn't update the logo on the webpage.

If I inspect the page, that logo is actually referencing https://[redacted_domain]/images/logo-dark@2x.png. I didn't find a file by that name in the bitwarden_rs repository, so I'm not sure how to do this.

I do know that this won't update the logo in any of the clients, but I would have thought I'd be able to do the web interface.

Any help would be appreciated!

BlackDex commented 4 years ago

If you want to modify/theme the web-vault you will need to build/modify it your self. Some information about this can be found here: https://github.com/dani-garcia/bitwarden_rs/wiki/Building-binary#install-the-web-vault

mprasil commented 4 years ago

I think the question was answered, compiling your own Vault is probably the best approach. Going to close this, but feel free to reopen if you have further questions.

kpcyrd commented 2 years ago

If you're using the docker container you can probably customize it by using bind-mounts for the following paths:

docker run \
    --volume "$PWD/images/logo-dark@2x.png:/web-vault/images/logo-dark@2x.png:ro" \
    --volume "$PWD/images/logo-horizontal-white.png:/web-vault/images/logo-horizontal-white.png:ro" \
    --volume "$PWD/images/logo-white@2x.png:/web-vault/images/logo-white@2x.png:ro" \
    [...]
ar0per0 commented 2 months ago

(web icon) local_path/favicon-16x16.png:/web-vault/images/favicon-16x16.png:ro (web icon) local_path/favicon-32x32.png:/web-vault/images/favicon-32x32.png:ro (inside logo) local_path/icon-white.png:/web-vault/images/icon-white.png:ro (welcome image) local_path/logo-dark@2x.png:/web-vault/images/logo-dark@2x.png:ro (welcome image) local_path/logo-white@2x.png:/web-vault/images/logo-white@2x.png:ro

Email

copy template https://github.com/dani-garcia/vaultwarden/tree/main/src/static/templates/email local_path/email_header.hbs:/data/templates/email/email_header.hbs:ro local_path/email_footer.hbs:/data/templates/email/email_footer.hbs:ro