From 9ad988121575aee8495e86d129de019e783783c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Thu, 25 Jan 2024 10:19:24 +0200 Subject: [PATCH] 11sync: redirect /admin/* to admin.11sync.net --- hosts/fra1-a/configuration.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hosts/fra1-a/configuration.nix b/hosts/fra1-a/configuration.nix index 4c26d20..39b85ea 100644 --- a/hosts/fra1-a/configuration.nix +++ b/hosts/fra1-a/configuration.nix @@ -98,9 +98,7 @@ redir https://11sync.net ''; "11sync.net".extraConfig = lib.mkForce '' - respond /admin/* "Access denied" 403 { - close - } + redir /admin/* https://admin.11sync.net/admin/{uri} ${builtins.readFile "${pkgs.e11sync-caddyfile}"} ''; "http://admin.11sync.net".extraConfig = ''