Skip to main content

HTTPS with Caddy

Serve Hrida.ai over HTTPS with Caddy, which gets and renews its certificates from Let's Encrypt by itself.

Best for: self-hosted production with minimal config · Certificates: automatic (Let's Encrypt) · Open ports: 80 and 443

This guide sets up an Ubuntu server with Caddy as a reverse proxy for Hrida.ai, with HTTPS and automatic certificate management. It has five parts:

  1. Docker
  2. Hrida.ai
  3. Caddy
  4. Testing HTTPS
  5. Upgrade & migration

Docker​

Follow the guide to set up Docker's apt repository Docker

I've included docker-compose as it's needed to run docker compose.

Installing Docker

Here's the command I've used to install Docker on Ubuntu:

bash
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-compose

Hrida.ai​

I'd go ahead and create a directory for the Hrida.ai project:

bash
mkdir -p ~/hrida-ai
cd ~/hrida-ai

Installing Hrida.ai

Create a docker-compose.yml file in the ~/hrida-ai directory. I've left in a commented section for setting some environment variables for Qdrant, but you can follow that for any other environment variables you might need to set.

yaml
services:
    hrida-ai:
        image: ghcr.io/hrida-ai/hrida-ai-studio:main
        container_name: hrida-ai
        ports:
            - "8080:8080"
        volumes:
            - ./data:/app/backend/data
        # environment:
        #     - "QDRANT_API_KEY=API_KEY_HERE"
        #     - "QDRANT_URI=https://example.com"
        restart: unless-stopped

Caddy​

Caddy is a powerful web server that automatically manages TLS certificates for you, making it an excellent choice for serving Hrida.ai over HTTPS.

Installing Caddy

Follow the guide to set up Caddy's on Ubuntu.

/etc/caddy/Caddyfile

Configure Caddy

You're going to need to change the CaddyFile to use your domain.

To do that, edit the file /etc/caddy/Caddyfile.

bash
sudo nano /etc/caddy/Caddyfile

Then the configuration should have the following:

your-domain.com {
reverse_proxy localhost:8080
}

Make sure to replace your-domain.com with your actual domain name.

Testing HTTPS​

Now assuming you've already set up your DNS records to point to your server's IP address, you should be able to test if Hrida.ai is accessible via HTTPS by running docker compose up in the ~/hrida-ai directory.

bash
cd ~/hrida-ai
docker compose up -d
Tip

You should now be able to access Hrida.ai at https://your-domain.com.

Caddy handles TLS certificate provisioning and renewal automatically.

Hrida.ai Upgrade & Migration​

I wanted to include a quick note on how to update Hrida.ai without losing your data. Since we're using a volume to store the data, you can simply pull the latest image and restart the container.

  • Step 1 — Stop: Stopping Hrida.ai

    First we need to stop and remove the existing container:

    bash
    docker rm -f hrida-ai
  • Step 2 — Pull: Pulling the latest image

    Then you can start the container again:

    bash
    docker pull ghcr.io/hrida-ai/hrida-ai-studio:main
  • Step 3 — Start: Starting Hrida.ai

    Now you can start the Hrida.ai container again:

    bash
    docker compose up -d
Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.