From 6094dfaf92258c183a256b189cd213f63ec5d571 Mon Sep 17 00:00:00 2001 From: cellarspoon Date: Sun, 5 Dec 2021 01:45:21 +0100 Subject: [PATCH] docs: help with dns Closes https://git.coopcloud.tech/coop-cloud/organising/issues/274. --- cli/server/new.go | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/cli/server/new.go b/cli/server/new.go index 249fa503..0faf40ab 100644 --- a/cli/server/new.go +++ b/cli/server/new.go @@ -96,9 +96,18 @@ Please note, this server is not managed by Abra yet (i.e. "abra server ls" will not list this server)! You will need to assign a domain name record ("abra record new") and add the server to your Abra configuration ("abra server add") to have a working server that you can deploy Co-op Cloud apps to. + +When setting up domain name records, you probably want to set up the following +2 A records. This supports deploying apps to your root domain (e.g. +example.com) and other apps on sub-domains (e.g. foo.example.com, +bar.example.com). + + @ 1800 IN A %s + * 1800 IN A %s + `, internal.HetznerCloudName, ip, rootPassword, - ip, + ip, ip, ip, )) return nil @@ -169,6 +178,15 @@ Please note, this server is not managed by Abra yet (i.e. "abra server ls" will not list this server)! You will need to assign a domain name record ("abra record new") and add the server to your Abra configuration ("abra server add") to have a working server that you can deploy Co-op Cloud apps to. + +When setting up domain name records, you probably want to set up the following +2 A records. This supports deploying apps to your root domain (e.g. +example.com) and other apps on sub-domains (e.g. foo.example.com, +bar.example.com). + + @ 1800 IN A + * 1800 IN A + `, internal.CapsulName, resp.ID, internal.CapsulInstanceURL)) return nil