diff --git a/nixos-configurations/lindberg-webapps/applications/README.md b/nixos-configurations/lindberg-webapps/applications/README.md index b4445bb..c9ce161 100644 --- a/nixos-configurations/lindberg-webapps/applications/README.md +++ b/nixos-configurations/lindberg-webapps/applications/README.md @@ -1,3 +1,17 @@ # Web Apps -## fabianhauser.ch +## Setting up new static sites + + +Generate ssh key for deployment: + +```bash +export SSH_KEYFILE=$(mktemp --dry-run -- /dev/shm/key-XXXXXXXXX) +mkfifo -m 600 $SSH_KEYFILE +ssh-keygen -q -t ed25519 -C "ci@git.qo.is" -N "" -f $SSH_KEYFILE <<< "y\ny\n" & +wl-copy --trim-newline --foreground --paste-once < $SSH_KEYFILE +# Paste private key in CI secret "SSH_DEPLOY_KEY" now + +# Configure public key: +wl-copy --trim-newline < ${SSH_KEYFILE}.pub +``` diff --git a/nixos-modules/qois/static-page/default-pages.nix b/nixos-modules/qois/static-page/default-pages.nix index a89a947..765d092 100644 --- a/nixos-modules/qois/static-page/default-pages.nix +++ b/nixos-modules/qois/static-page/default-pages.nix @@ -22,5 +22,13 @@ "docs-ops.qo.is".authorizedKeys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBS65v7n5ozOUjYGuO/dgLC9C5MUGL5kTnQnvWAYP5B3 ci@git.qo.is" ]; + "qo.is" = { + domainAliases = [ + "www.qo.is" + ]; + authorizedKeys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMG6xYcf7+l1RDPB7XcLxTvb6CqkaKqEGGb529Qk3b5T ci@git.qo.is" + ]; + }; }; }