if I use the default https port 443, I can access Web Vault and Admin Portal.
but when I change the https port 443 to 8443, I can access Web Vault, But can’t access Admin Portal.
When I access https://vault.bitwarden.in:8443/admin, it automatically jump to https://vault.bitwarden.in/admin/login?returnUrl=%2Fadmin.
Hello @wcjxixi,
may I suggest you to use a reverse proxy instead of just opening another port? I think it should be for you also much easier to work with . Then you would have:
Instead of https://…:8080, and need to remember the ports.
If you want to make this change I already have an example and can help you with that. Otherwise say so and I will help you with your implementation when I have some time.
It’s definitely a bug as I just ran into it myself 3 months later.
I also found when you register as a new user, the email verification prompt similarly fails to include the custom port.
Really wish the devs would add this as part of their QA testing as it’s going to be annoying to fix it manually every single time.
Also for those saying to use a Proxy, the bitwarden-nginx container IS a proxy, so we put the proxy behind another proxy?
Also what if you are self hosted and your ISP blocks 80/443?
Then bitwarden.sh restart
So it pulls in the new value.
I found numerous references to This “BaseServiceUri” in the code and remembered seeing it when I was setting up my SMTP details.
I verified that my Admin Panel login code for example did NOT have the custom port in the email the first time, but after this change it now does.
Same with the New User Verification Email.
Don’t forget to flush your browser cache related to bitwarden . yourdomain . com otherwise you might get the old page from cache.