monolayer Docs
monolayer Docs
Introduction

Getting Started

Install monolayer in your AWSAdd a GitHub App

User Guide

OverviewCreate a Project
Project Playground Sessions
Branch Tracking RulesDeployment TokensEnvironment VariablesCompute and Capacity SettingsEdge Settings and Custom DomainsProject Admin

Platform

Deployment ArchitectureProcfile

Other

Feedbackmonolayer SDK Docsmonolayer.dev
ProjectsSettings

Edge Settings and Custom Domains

Configure CloudFront cache behavior and connect a custom domain to production.

Configure Amazon CloudFront caching behavior and connect custom domains to your production environments.

This guide covers cache purges, certificate validation, CloudFront attachment, and Domain Name System (DNS) records.

About Cache Purges

Amazon CloudFront caches application assets at edge locations to reduce latency. When you enable the Purge cache after each deployment option, monolayer invalidates the CloudFront cache during each rollout.

Enable cache purges only when stale asset delivery is a problem. Frequent purges can increase propagation time and edge cost.

Connecting a Custom Domain

Follow these steps to connect a custom domain you purchased outside monolayer. You must generate a certificate, validate domain ownership, attach the certificate to your CloudFront distribution, and update your DNS records.

Before you start

You must deploy your production environment at least once before connecting a custom domain.

Steps

Generating a Certificate

  1. Choose Settings > Edge in the project sidebar.
  2. Type the fully qualified domain name in the Domain field, such as app.example.com.
  3. Click Generate certificate. monolayer requests a certificate from Amazon Web Services (AWS) Certificate Manager (ACM) and changes the custom domain status to VALIDATE_CERTIFICATE.

Validating Domain Ownership

  1. Copy the generated canonical name (CNAME) record name, type, and value from the Domain Validation panel.
  2. Add the CNAME validation records to your DNS registrar.
  3. Wait for DNS propagation. When ACM verifies domain ownership, the status changes to ISSUED.

Attaching the Certificate

  1. Click Attach certificate to CloudFront.
  2. Wait for AWS to update the CloudFront distribution. The status changes to UPDATE_DNS_RECORDS and displays the target CloudFront distribution domain.

Routing Traffic

  1. Copy the CloudFront distribution domain.
  2. Add an A record for your root domain with alias routing, or a CNAME record for a subdomain, and point it to the CloudFront distribution domain. The custom domain status changes to ACTIVE, and your application is available at your custom domain.

Compute and Capacity Settings

Manage compute limits, timeout values, and database capacity for project workloads.

Project Admin

Delete environments and remove project records when you offboard an application.

On this page

About Cache PurgesConnecting a Custom DomainBefore you startStepsGenerating a CertificateValidating Domain OwnershipAttaching the CertificateRouting Traffic