This guide covers the instance-wide domain for your self-hosted OpnForm
deployment. Workspace or form-level custom domains are configured
separately inside OpnForm and are not the same as the instance URL.
Custom Domain Setup
To use a custom domain (or subdomain) with OpnForm:- Purchase a domain (if needed)
- Configure DNS records to point to your OpnForm instance
- Update OpnForm configuration:
- Set both
APP_URLandFRONT_URLinapi/.env - Set
NUXT_PUBLIC_APP_URLandNUXT_PUBLIC_API_BASEinclient/.env
- Set both
- Secure with SSL certificate
https://forms.example.com:
FRONT_URL is used by the backend when it creates frontend callback URLs,
including OIDC callbacks. Keep it aligned with the public frontend URL.
After changing these files, recreate the containers; a restart alone does not
load new environment values. See Updating Environment Variables.
If an OIDC connection already exists, edit it afterwards, use Use current
app URL to refresh its redirect URI, save it, and update the URI in your
identity provider. Existing connections retain their previous redirect URI
until you save a new one.
The easiest way to get started with OpnForm is through our official managed service in the Cloud. It takes just 1 minute to start building forms with the free plan, with high availability, backups, security, and maintenance all managed for you.