From 8593ae10cf279db05902cfef1ee29cc824b18839 Mon Sep 17 00:00:00 2001 From: uttarayan21 Date: Mon, 4 Aug 2025 09:45:13 +0530 Subject: [PATCH] feat: changes to authelia --- nixos/mirai/services/authelia.nix | 6 +++++- nixos/ryu/services/minecraft.nix | 2 +- nixos/tsuba/services/caddy.nix | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nixos/mirai/services/authelia.nix b/nixos/mirai/services/authelia.nix index 9bbfd1fc..1777c84b 100644 --- a/nixos/mirai/services/authelia.nix +++ b/nixos/mirai/services/authelia.nix @@ -96,7 +96,11 @@ }; caddy = { virtualHosts."auth.darksailor.dev".extraConfig = '' - reverse_proxy localhost:5555 + reverse_proxy localhost:5555 { + # header_up Host {http.request.header.X-Forwarded-Host} + # header_up X-Forwarded-Host {http.request.header.X-Forwarded-Host} + # header_up X-Forwarded-Proto {http.request.header.X-Forwarded-Proto} + } ''; }; }; diff --git a/nixos/ryu/services/minecraft.nix b/nixos/ryu/services/minecraft.nix index 870f6655..10519bd4 100644 --- a/nixos/ryu/services/minecraft.nix +++ b/nixos/ryu/services/minecraft.nix @@ -67,7 +67,7 @@ craftmine-v2 = { inherit whitelist; enable = true; - jvmOpts = "-Xmx16G -Xms4G"; + jvmOpts = "-Xmx16G -Xms8G"; package = let getJavaVersion = v: (builtins.getAttr "openjdk${toString v}" pkgs.javaPackages.compiler).headless; in diff --git a/nixos/tsuba/services/caddy.nix b/nixos/tsuba/services/caddy.nix index 340e45e7..b80eb3ba 100644 --- a/nixos/tsuba/services/caddy.nix +++ b/nixos/tsuba/services/caddy.nix @@ -25,6 +25,7 @@ } (auth) { forward_auth https://auth.darksailor.dev { + header_up Host {upstream_hostport} uri /api/authz/forward-auth copy_headers Remote-User Remote-Groups Remote-Email Remote-Name }