Press Local Setup Custom Domain Map Failure

Hey :wave:

  1. Check that the DNS records point to your Frappe Press central instance.

  2. Add the following Nginx configuration (e.g. /etc/nginx/conf.d/ssl.conf).

# ACME Challenge for all TLS certificates
server {
	listen 80;
	listen [::]:80;
	server_name ssl.example.cloud;

	location ^~ /.well-known/acme-challenge/ {
		default_type "text/plain";
		root /home/myuser/.webroot;
	}

	location = /.well-known/acme-challenge/ {
		return 404;
	}

	location ^~ / {
		root /home/myuser/.webroot;
	}
}
  1. Reload the Nginx configuration (service nginx reload).

  2. Go to the TLS Certificate for the custom domain that fails.

  3. Click Obtain Certificate.

  4. Wait a little bit.

  5. On failure, look at the error log for a TLS Certificate Exception, and look at the connection Detail Type: connection\n Detail: IP ADDRESS and check that the IP is that of the Frappe Press instance. If not, maybe the DNS records are not yet propagated.

4 Likes