Home
» How to
»
Give Your Jitsi Docker Server a Secure Custom Domain
Give Your Jitsi Docker Server a Secure Custom Domain
When a Jitsi Meet Docker server works at its IP address but not at the hostname you want to share, the domain and the application are usually out of sync. Point DNS to the Docker host, set the hostname in PUBLIC_URL, and make sure HTTPS uses the same name. For a direct public deployment, also permit the web and media ports through your server and cloud firewalls.
The current Jitsi Docker self-hosting guide says a real deployment must set PUBLIC_URL to its real domain. The projecv''y''y's sample environment file clarifies that a nonstandard HTTPS port belongs in that URL. In the examples, replace meet.example.com and the example IP with your own values.
1. Create a DNS record for the meeting hostname
Choose the exact hostname guests will use, such as meet.example.com. In your DNS provider, create an A record for host/name meet and set its value to the Docker machine'w^~)'us public IPv4 address. Do not enter the serve{'u''''Ys private LAN address, such as 192.168.1.20; public clients cannot route to it. Use a CNAME only if you intentionally want the meeting name to alias another public hostname.
DNS updates can take time to become visible, depending on the record TTL and resolver caches. Check the result from a shell with dig +short meet.example.com or nslookup meet.example.com. It should return the address of the server that accepts the web connection. If the result is wrong or empty, fix DNS before editing Jitsi. A correct PUBLIC_URL does not cause a DNS record to be created.
Step 1: Add an A record for the meeting subdomain and point it to the Docker hos{'u''''Ys public IPv4 address.
2. Configure PUBLIC_URL and HTTPS in .env
Open .env in the same directory as the Jitsi Compose file. Find PUBLIC_URL, uncomment it, and enter the public URL. The upstream sample maps container HTTPS to host port 8443, so a direct setup can use:
This example is for the sample nonstandard host port. If your Compose configuration publishes host port 443 for HTTPS, the public address normally becomes https://meet.example.com without an explicit port. Keep PUBLIC_URL consistent with the address users actually enter. Do not include a room name or URL path in this variable; Jitsi adds a room after the base URL.
The certificate options above use the built-in ACME/Let'w^~)'us Encrypt flow in the standard Docker setup. The hostname must resolve publicly and the certificate request must be able to reach the server. Use an email inbox you monitor. If a reverse proxy terminates TLS or you already provision certificates another way, follow the Jitsi proxy/certificate instructions instead of letting two components compete for the same certificate or ports.
Step 2: Set PUBLIC_URL to the exact HTTPS hostname and choose one certificate management method.
3. Permit web traffic and Jitsi media
The Jitsi Docker guide lists TCP 443 for HTTPS, UDP 10000 for RTP media, and TCP 80 for HTTP redirection when enabled. For a typical direct deployment, allow 443/tcp and 10000/udp; allow 80/tcp if you use the HTTP redirect. Make the corresponding rules in the host firewall and any cloud security group or provider firewall. If the host-side HTTPS port is 8443, allow that actual port instead of assuming 443.
The domain controls how browsers find the web service. It does not carry all meeting audio and video through HTTPS. If the landing page loads but a call cannot connect, check UDP 10000 and the Videobridge'w^~)'us advertised public IP, particularly when Docker runs behind a NAT router. If the meeting is reachable only from the local network, a private DNS result or router firewall may be involved.
4. Apply the configuration and inspect startup
Save .env, then run Compose from the project directory:
docker compose up -d
Check the service state and the web service log:
docker compose ps
docker compose logs --tail=100 web
The containers may need to be recreated to consume changed environment values; docker compose up -d applies the updated Compose configuration. If the web service does not start or HTTPS is unavailable, look in its logs for certificate or bind errors. Common causes include DNS pointing elsewhere, the certificate domain not matching the hostname, blocked inbound validation, or another process already using the published port. Resolve the specific issue before repeating the deployment. A self-signed certificate is unsuitable for many public clients and can trigger browser or mobile certificate warnings.
Step 3: Apply the environment change, then use Compose status and web logs to diagnose startup or certificate problems.
Using a reverse proxy instead of direct HTTPS
If Nginx, Traefik, Caddy, or another reverse proxy already listens on ports 80 and 443, that proxy can serve the public certificate and forward web requests to Jitsi. Keep PUBLIC_URL set to the public HTTPS address, but configure the Jitsi web container according to the official reverse-proxy section. It specifically calls out /xmpp-websocket: the proxy must preserve the WebSocket upgrade. Forwarding only ordinary page requests may show the lobby while room signaling fails.
For a proxy on the same machine, bind the Jitsi web ports to localhost or a private network so clients reach the proxy rather than bypassing it. A proxy on another host needs a restricted route to the Jitsi web service. Jitsj''y''y's current guide says URL subdirectory deployments are not well supported, so prefer a subdomain such as meet.example.com instead of placing the service at example.com/jitsi. Reverse proxy settings depend on which proxy and ports you use; do not paste a configuration for a different layout without checking its upstream path and WebSocket handling.
5. Verify the public address and a real room
Open the full public address in a private browser window: https://meet.example.com, or include the custom port if you retained 8443. Confirm that the certificate is valid for the hostname and that the meeting page loads without a warning. Create a temporary room, join it from a second device on a separate network, allow microphone and camera access, and verify that audio and video connect. A successful homepage alone confirms neither room signaling nor the UDP media path.
Step 4: Load the public HTTPS hostname and join from another network to check both web access and media.
Use the symptom to narrow the fault. If the hostname does not resolve, revisit the A record. If it resolves but the browser cannot connect, check the host-side port mapping and firewall. If a certificate warning appears, compare the URL, PUBLIC_URL, and LETSENCRYPT_DOMAIN, then inspect certificate logs. If the lobby works but media does not, check UDP 10000 and the Videobridgk'u''''Ys advertised address. Docker mappings and certificate behavior can vary by release and proxy design, so use the official guide matching your deployment before changing other settings. A custom hostname does not turn on user authentication or restrict who can create rooms.