Skip to content
WebsitePanelStatus
NolayDocumentation
WebsitePanelStatus
SectionsGuides: Domains and HTTPS
Getting started
  • Section overview
  • What is Nolay
  • What is a VPS
  • Server requirements
  • Connecting a server
  • First project
Guides
  • Section overview
  • Domains and HTTPS
  • Secrets
  • Tunnel behind NAT
Concepts
  • Section overview
  • What is stored where
Reference
  • Section overview
  • Error codes
  • nolay.toml
Security
  • Section overview
Migration
  • Section overview
Troubleshooting
  • Section overview
Changelog
  • Section overview
Getting started
  • Section overview
  • What is Nolay
  • What is a VPS
  • Server requirements
  • Connecting a server
  • First project
Guides
  • Section overview
  • Domains and HTTPS
  • Secrets
  • Tunnel behind NAT
Concepts
  • Section overview
  • What is stored where
Reference
  • Section overview
  • Error codes
  • nolay.toml
Security
  • Section overview
Migration
  • Section overview
Troubleshooting
  • Section overview
Changelog
  • Section overview
  1. Documentation
  2. Guides
  3. Domains and HTTPS

Domains and HTTPS

Point a domain at the server, add it to a project and get a certificate without manual steps.

Markdown

After this page the project opens at your domain over HTTPS. The agent on your server issues and renews the certificate through Let's Encrypt.

Before you start

WhatHow to check
The project runsThe panel status is Running
The domain is yoursYou can change DNS records at the registrar or DNS host
Ports 80 and 443 are openThe provider firewall lets inbound 80 and 443 through

If the server has no public address, read tunnel behind NAT: there the domain is connected with a CNAME record.

Steps

  1. At the domain registrar create an A record with your server address. For www create a second A record or a CNAME to the main domain. If the server has IPv6, add AAAA too.
TypeNameValue
Aapp.example.com203.0.113.10
Awww.app.example.com203.0.113.10
  1. Wait for the record to work. Check from any computer:
dig +short A app.example.com

The command should return the server address. Usually it takes minutes, with some registrars up to several hours.

  1. In the panel open the project, the Settings tab, the Domains field. Separate several domains with spaces or commas. Tick “Redirect www to the apex domain” if www. should lead to the main address. Click Save and deploy.
The Domains field in project settingsThe Domains field in project settings
Domains are set in the project settings, one or several separated by spaces.
  1. The agent updates the proxy and issues a certificate. Usually it takes under a minute once DNS points at the server.

The same in nolay.toml:

[proxy]
domains = ["app.example.com"]
redirect_www = true

Good to know

  • Wildcards like *.example.com are not supported: list each subdomain separately.
  • Domains are written in lowercase.
  • HTTP redirects to HTTPS with code 308. Turn it off with protection.https_redirect.
  • Certificates live on the server in /var/lib/nolay/caddy and survive an agent reinstall.
  • Let's Encrypt limits failed attempts per domain per hour. If the certificate was not issued, fix DNS first and only then save again.

Check

curl -I https://app.example.com

The answer has HTTP/2 200 or your app's code. The certificate log on the server:

docker logs nolay-caddy --tail 50

A successful issue is the line certificate obtained successfully.

Troubleshooting

What you seeWhyWhat to do
Status “Running, but unreachable from outside”DNS does not point at the server yet, or 80 and 443 are closedCheck dig and the provider firewall
A certificate error in the browserThe certificate is not issued yetSee docker logs nolay-caddy; DNS is the usual cause
Projects with domains failAnother process holds ports 80 and 443ss -lptn 'sport = :80 or sport = :443', free the ports

Next

Set the secrets and tune domain protection with the [protection] fields.

PreviousGuidesNextSecrets

On this page

  • Before you start
  • Steps
  • Good to know
  • Check
  • Troubleshooting
  • Next
Updated 2026-09-23
Nolay

Nolay documentation: connecting your own server, deploys, domains, secrets.

Documentation

Getting startedReferenceChangelogllms.txt for AI

Product

WebsitePanelStatus
Nolay