Skip to content

Instantly share code, notes, and snippets.

View BigAlRender's full-sized avatar

Alan Pennell-Smith BigAlRender

View GitHub Profile
@johnbeynon
johnbeynon / add_domain.rb
Last active May 19, 2024 07:24
Add custom domain to Render preview environment app
#!/usr/bin/ruby
# Script to add a custom domain to a preview environment web service. Use it via the buildCommand
#
# Resultant custom domain added to the service will be:
# <servicename>-pr-<number>.prs.mydomain.com
#
# Setup:
#
# Add a wildcard DNS entry to your domain, something like *.prs.mydomain.com pointing to 216.57.24.1