summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/ahmed/minecraft-log-server/default.nix6
-rw-r--r--hosts/ahmed/minecraft/default.nix4
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"];
}