this post was submitted on 28 May 2024
5 points (100.0% liked)

Self Hosted - Self-hosting your services.

506 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules

Important

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

If you see a rule-breaker please DM the mods!

founded 3 years ago
MODERATORS
 

The ports 80 and 443 are already used by Adguard Home. I didnt find any way to change those ports for Bitwarden.

top 11 comments
sorted by: hot top controversial new old
[–] MentalEdge@sopuli.xyz 4 points 5 months ago* (last edited 5 months ago)

80 and 443 are the standard ports for webpages (http and https respectively). Lot of selfhosted software with web-based frontends will therefore try to use them.

You can change the ports for the bitwarden container to whatever you like, but the "proper" way to set up multiple services with web-based interfaces like this, is to use a reverse proxy to make them all accessible via these two standard ports. (Caddy is popular for this)

You can then access them using their respective subdomains or subpaths.

[–] mark@social.cool110.xyz 4 points 5 months ago (1 children)

@GregorTacTac If you use containers you can map something like 8080 on the host to 80 in the container. Generally it's recommended to have a reverse proxy listening on 80 and 443 with all your individual applications on localhost only high ports.

[–] GregorTacTac@lemm.ee 1 points 5 months ago (1 children)

I'd like to have the applications running at the same time. This can't be done with just 2 ports, can it?

[–] MangoPenguin@lemmy.blahaj.zone 7 points 5 months ago

It can be done if you implement a reverse proxy in front of the services.

[–] MangoPenguin@lemmy.blahaj.zone 3 points 5 months ago

With vaultwarden it's very easy, just change the port map in the docker compose file on the host side. No idea how to do it with the official server stack.

[–] Lodra@programming.dev 2 points 5 months ago

Unfortunately, I’m not familiar with installing Bitwarden so I can only offer general advice.

Port conflicts happen at runtime, not when software is installed. In general, you should be able to install as much software as you’d like that all relies on port 443 but only run one at a time.

If you’re seeing port conflicts when installing Bitwarden, then I suspect that something is starting the app after the install is done. If this is right, then maybe you can disable the automatic start. Or maybe you can ignore the error at install time, then configure the app, then start it.

[–] catloaf@lemm.ee 1 points 5 months ago (1 children)
[–] GregorTacTac@lemm.ee 1 points 5 months ago (1 children)

This doesn't show how to change those ports.

[–] catloaf@lemm.ee 1 points 5 months ago (1 children)

Does it not prompt during the installation wizard? That's what the documentation implies.

[–] GregorTacTac@lemm.ee 1 points 5 months ago

Nope, it doesn't,

[–] minnix@lemux.minnix.dev 1 points 5 months ago

You'll want to use a reverse proxy with separate domains/subdomains for each service.