Skip to content

Commit b3ba2cf

Browse files
author
Jonas Hendrickx
authored
PAS-570 | Extra colon appended to ApiUrl unnecessarily (#723)
1 parent ffb88d0 commit b3ba2cf

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

self-host/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ ENV BWP_ENABLE_API=true
6969
ENV BWP_DB_FILE_API="/etc/bitwarden_passwordless/api.db"
7070
ENV BWP_DB_FILE_ADMIN="/etc/bitwarden_passwordless/admin.db"
7171
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
72-
ENV Passwordless_ApiUrl="http://localhost:5701/api"
73-
ENV PasswordlessManagement_ApiUrl="http://localhost:5701/api"
7472
ENV SelfHosted=true
7573
ENV RP_PORT=5701
7674

self-host/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if [ "$BWP_DOMAIN" != "localhost" ] && [ "$BWP_ENABLE_SSL" != "false" ]; then
4848
echo "[Configuration] WARNING: WebAuthn requires SSL when not running on 'localhost'. This could result in unexpected behavior.";
4949
fi
5050

51-
if [ "$BWP_PORT" == "null" ]; then
51+
if [ -z "$BWP_PORT" ]; then
5252
export Passwordless__ApiUrl="https://${BWP_DOMAIN}/api/"
5353
export PasswordlessManagement__ApiUrl="https://${BWP_DOMAIN}/api/"
5454
else

0 commit comments

Comments
 (0)