From 6d89551808dfce1ececa2e043b945c257db5c38a Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 29 Dec 2022 16:16:13 +0100 Subject: [PATCH] hosts/storage-2: add bahnansagen --- hosts/storage-2/bahnansagen.nix | 15 +++++++++++++++ hosts/storage-2/configuration.nix | 3 +-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 hosts/storage-2/bahnansagen.nix diff --git a/hosts/storage-2/bahnansagen.nix b/hosts/storage-2/bahnansagen.nix new file mode 100644 index 0000000..64e1757 --- /dev/null +++ b/hosts/storage-2/bahnansagen.nix @@ -0,0 +1,15 @@ +{ ... }: + +{ + services.nginx.virtualHosts = { + "bahnansagen.clerie.de" = { + enableACME = true; + forceSSL = true; + locations."/" = { + alias = "/data/bahnansagen/"; + basicAuthFile = "/var/src/secrets/nginx/bahnansagen.htpasswd"; + }; + }; + }; + +} diff --git a/hosts/storage-2/configuration.nix b/hosts/storage-2/configuration.nix index 0582d82..2b1c66e 100644 --- a/hosts/storage-2/configuration.nix +++ b/hosts/storage-2/configuration.nix @@ -6,6 +6,7 @@ ./hardware-configuration.nix ../../configuration/common ../../configuration/proxmox-vm + ./bahnansagen.nix ./mixcloud.nix ./share.nix ./storage.nix @@ -15,8 +16,6 @@ boot.loader.grub.version = 2; boot.loader.grub.device = "/dev/vda"; - boot.binfmt.emulatedSystems = [ "aarch64-linux" ]; - networking.hostName = "storage-2"; networking.useDHCP = false;