From 67c8a9706b76e976fb9f772c7e4d9ca7a5e6643d Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 13 Feb 2025 15:59:28 +0100 Subject: ahmed/minecraft-log-server: Fix missing ACME certificates --- hosts/ahmed/minecraft-log-server/default.nix | 6 ++++++ hosts/ahmed/minecraft/default.nix | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/hosts/ahmed/minecraft-log-server/default.nix b/hosts/ahmed/minecraft-log-server/default.nix index 1c18915..9ed5e90 100644 --- a/hosts/ahmed/minecraft-log-server/default.nix +++ b/hosts/ahmed/minecraft-log-server/default.nix @@ -8,6 +8,9 @@ config, ... }: let + # Enable HTTPS stuff. + useACME = true; + socket-path = "/run/minecraft-log-server.sock"; python = pkgs.python3.withPackages (ps: @@ -67,6 +70,9 @@ in { services.nginx = { virtualHosts."minecraft.linus.onl" = { + enableACME = useACME; + forceSSL = useACME; + # Let's be safe and pass-word protect it just in case the logs contain some sensitive data. basicAuthFile = ./.htpasswd; diff --git a/hosts/ahmed/minecraft/default.nix b/hosts/ahmed/minecraft/default.nix index 416e787..4989a0d 100644 --- a/hosts/ahmed/minecraft/default.nix +++ b/hosts/ahmed/minecraft/default.nix @@ -61,8 +61,4 @@ } ]; }; - - # Update the DDNS. - # This would be the "IP" we give to folks. - services.cloudflare-dyndns.domains = ["minecraft.linus.onl"]; } -- cgit v1.2.3