andersdamsgaard.com

my photography webpage
git clone git://src.adamsgaard.dk/andersdamsgaard.com # fast
git clone https://src.adamsgaard.dk/andersdamsgaard.com.git # slow
Log | Files | Refs | Submodules | README | LICENSE Back to index

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:
MREADME.md | 33++++++++++++++++++++++++++++++---
1 file changed, 30 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md @@ -2,10 +2,37 @@ [![pipeline status](https://gitlab.com/admesg/admesg.gitlab.io/badges/master/pipeline.svg)](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