mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-09 09:13:02 +03:00
Page is not loading correctly when using alternate base dir #1486
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ahaw on GitHub.
Subject of the issue
Bitwarden doesnt load when using alternate base pathes.
When I set domain to 'example.com/subdir' it loads the page but when the browser is trying to load resources it's ignoring basepath. The url of file is: "testing.test/app/polyfills.c9c57acc9b845fdb9052.js" instead of "testing.test/bitwarden/app/polyfills.c9c57acc9b845fdb9052.js"
Your environment
Steps to reproduce
Use alternate base dir in config and open bitwarden page.
Expected behaviour
it should load resources using basepath eg: testing.test/bitwarden/app/polyfills.c9c57acc9b845fdb9052.js
Actual behaviour
It ignoring basepath testing.test/app/polyfills.c9c57acc9b845fdb9052.js
Relevant logs
My docker configuration:
my config:
bitwarden:
container_name: bitwarden-test
image: bitwardenrs/server:alpine
restart: always
volumes:
- ./bitwarden/:/data/
ports:
- '29083:80'
env_file: .env
environment:
SIGNUPS_ALLOWED: "true"
DOMAIN: "http://testing.test/bitwarden"
labels:
- "traefik.enable=true"
- "traefik.http.routers.bitwarden.tls=false"
- "traefik.http.routers.bitwarden.rule=Host(
testing.test) && PathPrefix(/bitwarden)"- "traefik.http.routers.bitwarden.entrypoints=web"