Skip to main content

HTTPS with Tailscale

Reach Hrida.ai over HTTPS from your own devices and team through a private Tailscale network, without exposing it to the internet.

Best for: private access across devices · Certificates: automatic, from tailscale serve · Open ports: none

Tailscale creates an encrypted mesh VPN (a "tailnet") between your devices. Every device gets a stable hostname like my-server.tail1234.ts.net, and Tailscale can provision trusted HTTPS certificates for it automatically. Your Hrida.ai instance stays completely private, accessible only to devices on your tailnet.

When to use Tailscale

Tailscale is ideal when you want private, authenticated access across devices without exposing Hrida.ai to the public internet. Perfect for personal setups, small teams, or accessing a home server from your phone or laptop on the go.

Looking for the full guide?

This page covers HTTPS setup specifically. For the complete Tailscale integration story, including SSO authentication, Docker Compose sidecar setup, and more, see the Tailscale Integration Tutorial.

Prerequisites​

RequirementDetails
Hrida.aiRunning locally on port 8080 (default)
Tailscale accountFree for personal use at tailscale.com
Tailscale installedOn both the server running Hrida.ai and any client devices

1. Install Tailscale​

Download from the Mac App Store or:

bash
brew install tailscale

2. Connect the server​

On the machine running Hrida.ai:

bash
sudo tailscale up

Your machine gets a tailnet hostname like my-server.tail1234.ts.net. Find it with:

bash
tailscale status

3. Access Hrida.ai​

From any device on the same tailnet, open:

http://my-server.tail1234.ts.net:8080

This connection is already encrypted end-to-end by WireGuard. For browser features that require HTTPS (like Voice Calls), continue to the next step.

Enable HTTPS with Tailscale Certificates​

Tailscale can provision trusted Let's Encrypt certificates for your tailnet hostname.

1. Enable HTTPS in the admin console​

Go to Tailscale Admin → DNS and enable HTTPS Certificates.

2. Generate a certificate​

bash
sudo tailscale cert my-server.tail1234.ts.net

This creates two files in the current directory:

  • my-server.tail1234.ts.net.crt (certificate)
  • my-server.tail1234.ts.net.key (private key)

3. Serve Hrida.ai over HTTPS​

Use tailscale serve to proxy HTTPS traffic directly to Hrida.ai without any reverse proxy:

bash
sudo tailscale serve https / http://localhost:8080

Now access Hrida.ai at:

https://my-server.tail1234.ts.net

No port number needed. Tailscale handles TLS termination and proxies to your local Hrida.ai.

Configure Hrida.ai​

Set HRIDAAI_URL so OAuth callbacks and internal links resolve correctly:

bash
docker run -d \
  -p 8080:8080 \
  -e HRIDAAI_URL=https://my-server.tail1234.ts.net \
  -v hrida-ai:/app/backend/data \
  --name hrida-ai \
  ghcr.io/hrida-ai/hrida-ai-studio:main

Tailscale Funnel (Optional Public Access)​

If you want to share Hrida.ai publicly (without requiring Tailscale on the client), Tailscale Funnel exposes your tailscale serve endpoint to the internet:

bash
sudo tailscale funnel https / http://localhost:8080

Your Hrida.ai is now publicly accessible at https://my-server.tail1234.ts.net with a valid TLS certificate. Funnel routes traffic through Tailscale's infrastructure, similar to Cloudflare Tunnel.

Warning

Funnel makes your Hrida.ai accessible to anyone on the internet. Make sure you have authentication configured in Hrida.ai before enabling it.

Quick Reference​

WhatCommand / Value
Connect to tailnetsudo tailscale up
Check hostnametailscale status
Serve over HTTPSsudo tailscale serve https / http://localhost:8080
Public access (Funnel)sudo tailscale funnel https / http://localhost:8080
Generate cert manuallysudo tailscale cert my-server.tail1234.ts.net
Admin consolelogin.tailscale.com/admin
Set CORS originCORS_ALLOW_ORIGIN=https://my-server.tail1234.ts.net
Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.