commit 07f917057aca30fc52b181dbb8149349a6b485dd
parent 60a49253e71453b5f26afc66406aa90471b88040
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Mon, 19 Nov 2018 09:26:05 +0100
Elaborate on domain setup in readme
Diffstat:
M | README.md | | | 33 | ++++++++++++++++++++++++++++++--- |
1 file changed, 30 insertions(+), 3 deletions(-)
diff --git a/README.md b/README.md
@@ -2,10 +2,37 @@
[](https://gitlab.com/admesg/admesg.gitlab.io/commits/master)
This repository contains the source for
-[andersdamsgaard.com](https://andersdamsgaard.com). The domain is registered
-through [domains.google.com](https://domains.google.com), where the FastMail
-nameservers are defined as primary nameservers.
+[andersdamsgaard.com](https://andersdamsgaard.com) and
+[andersdamsgaard.dk](https://andersdamsgaard.dk). The .com domain is registered
+through [domains.google.com](https://domains.google.com), and the .dk domain is
+registered through [dandomain.dk](https://dandomain.dk). When a client connects
+to the `.dk` domain, a redirect makes sure to display the danish localization
+under `https://andersdamsgaard.com/da/`. Gitlab pages serve the content with the
+root path [admesg.gitlab.io](https://admesg.gitlab.io) under a repository with
+the name `<username>.gitlab.io`.
+## DNS setup
+The FastMail nameservers are defined as primary nameservers for both domains,
+and consist of the following records:
+
+For andersdamsgaard.com:
+
+ Type Domain Data Comment
+ ----------------------------------------------------------------------------
+ A andersdamsgaard.com 35.185.44.232 Points to gitlab.com
+ CNAME www.andersdamsgaard.com admesg.gitlab.io Point `www.` to root
+
+For andersdamsgaard.dk:
+
+ Type Domain Data Comment
+ ----------------------------------------------------------------------------
+ A andersdamsgaard.dk 35.185.44.232 Points to gitlab.com
+ CNAME www.andersdamsgaard.dk admesg.gitlab.io Point `www.` to root
+
+In addition, `TXT` records are used for Gitlab-pages verification. Mail records
+are for both domains set to FastMail servers.
+
+## Deployment
A preview of the webpage can be generated on the localhost with `make`.
Deployment occurs through the [GitLab CI
pipeline](https://gitlab.com/admesg/admesg.gitlab.io/pipelines) after pushing