From 55ee7fa7735157067a8fa698b50676e0d9a20dae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 21 Aug 2022 13:02:23 +0100 Subject: [PATCH] add global redirect blog.cyplo.net -> blog.cyplo.dev --- nixos/boxes/vpsfree1/blog.cyplo.net.nix | 17 +++++++++++++++++ nixos/boxes/vpsfree1/default.nix | 1 + 2 files changed, 18 insertions(+) create mode 100644 nixos/boxes/vpsfree1/blog.cyplo.net.nix diff --git a/nixos/boxes/vpsfree1/blog.cyplo.net.nix b/nixos/boxes/vpsfree1/blog.cyplo.net.nix new file mode 100644 index 00000000..8ce946d9 --- /dev/null +++ b/nixos/boxes/vpsfree1/blog.cyplo.net.nix @@ -0,0 +1,17 @@ +{ config, pkgs, inputs, lib, ... }: + +{ + + imports = [ ../nginx.nix ]; + + services.nginx = { + virtualHosts = { + "blog.cyplo.net" = { + forceSSL = true; + enableACME = true; + globalRedirect = "blog.cyplo.dev"; + }; + }; + }; + +} diff --git a/nixos/boxes/vpsfree1/default.nix b/nixos/boxes/vpsfree1/default.nix index 6e936296..e0ef9f58 100644 --- a/nixos/boxes/vpsfree1/default.nix +++ b/nixos/boxes/vpsfree1/default.nix @@ -8,6 +8,7 @@ ./cryptpad.nix ./syncthing-relay.nix ./backups.nix + ./blog.cyplo.net.nix ]; services.dockerRegistry = {