From ead47f3cdba59fa456b874868faecd137bcc5873 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Jun 2024 20:35:00 +0200 Subject: [PATCH] web-misc --- pastila/configuration.nix | 1 + pastila/web-misc.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 pastila/web-misc.nix diff --git a/pastila/configuration.nix b/pastila/configuration.nix index a27de8a..5605ca8 100644 --- a/pastila/configuration.nix +++ b/pastila/configuration.nix @@ -19,6 +19,7 @@ in ./paste.nix ./smtp.nix ./imap.nix + ./web-misc.nix ]; nixpkgs.overlays = [ diff --git a/pastila/web-misc.nix b/pastila/web-misc.nix new file mode 100644 index 0000000..516e267 --- /dev/null +++ b/pastila/web-misc.nix @@ -0,0 +1,14 @@ +{ config, lib, pkgs, ... }: + +{ + services.nginx.enable = true; + + services.nginx.virtualHosts."armael.gueneau.me" = { + globalRedirect = "gallium.inria.fr/~agueneau"; + }; + + services.nginx.virtualHosts."gueneau.me" = { + globalRedirect = "armael.gueneau.me"; + }; + +} \ No newline at end of file