Domain & HTTPS Setup (Linux / Nginx)
When deploying your self-hosted Avalex instance on a Linux server, you can connect your custom domain name (e.g.license.yourdomain.com or crm.yourdomain.com) and secure all API and Admin Portal traffic with HTTPS.
This guide walks you through setting up an Nginx reverse proxy on Linux with automated, free SSL certificates via Let’s Encrypt / Certbot.
1. Point Your Domain Name to Your Server
Before configuring Nginx, point your domain or subdomain to your Linux server’s public IP address:- Log into your DNS provider (Cloudflare, Namecheap, GoDaddy, Porkbun, AWS Route 53, etc.).
- Add an
ARecord:- Name / Host:
license(forlicense.yourdomain.com) or@(for root domainyourdomain.com) - Target / Value: Your Linux server’s public IPv4 address
- TTL: Auto or 300 seconds
- Name / Host:
2. Install Nginx and Certbot
Connect to your Linux server via SSH and install Nginx and Certbot:Ubuntu / Debian:
RHEL / Rocky Linux / AlmaLinux / CentOS:
3. Configure the Nginx Site
- Create a new site configuration file in
/etc/nginx/sites-available/avalex.conf: - Paste the following production configuration, replacing
license.yourdomain.comwith your actual domain name:
- Enable the site and test Nginx syntax:
4. Obtain Free SSL Certificate via Certbot
Run Certbot to automatically issue and install your Let’s Encrypt certificate:5. Verify Your Setup
Once configured:- Admin Portal UI: Access your web dashboard securely at
https://license.yourdomain.com. - License Validation API: In your software applications, call
POST https://license.yourdomain.com/licenses/validate. - BuiltByBit Webhook: Set your BuiltByBit resource webhook URL to
https://license.yourdomain.com/builtbybit.
