So i want to setup bitwarden on my localhost for development purposes. Already got the mssql container running in docker, I got the server’s Api and Identity projects running and also the web extension compiled and working.
However, i cannot seem to complete any requests, always getting a 500 error. What do i have to setup in the connections setting in the extension?
Right now i have:
Web Vault Server Url: localhost:1433 (the db port that’s running on docker)
API Server Url: localhost:4000
Identity Server Url: localhost:33656
What am I missing here?
So, apparently I’m getting an exception on the server.
Bit.Api.Utilities.ExceptionHandlerFilterAttribute Cannot open database "vault" requested by the login. The login failed. Login failed for user 'sa'
Which is weird, since I start the DB with the command
docker run -d -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<pwd>" -p 1433:1433 --name bitwarden-mssql-dev \ --mount type=bind,source="$(pwd)"/mssql/data,target=/var/opt/mssql/data \ --mount type=bind,source="$(pwd)"/logs/mssql,target=/var/opt/mssql/log \ --mount type=bind,source="$(pwd)"/mssql/backups,target=/etc/bitwarden/mssql/backups bitwarden/mssql
from inside the
/bwdata folder, created by running the
bitwarden.sh script suggested.
Even more weird, I can connect to the DB once it’s up on docker through my terminal.
I already tried changing the
global.override.env and the
mssql.override.env and it’s not working.