From 4b1b303ad778c67b3902c7aa417feb6edd4cc851 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Sat, 19 Oct 2024 18:40:52 +0200 Subject: [PATCH] nixos/solitary: Correct path prefix matching --- nixos/config/solitary/configuration.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/config/solitary/configuration.nix b/nixos/config/solitary/configuration.nix index f771fd7..12b5a4e 100644 --- a/nixos/config/solitary/configuration.nix +++ b/nixos/config/solitary/configuration.nix @@ -342,11 +342,11 @@ in { acl host-syncv3 hdr(host),host_only syncv3.solitary.social acl host-resolve hdr(host),host_only resolve.solitary.social - acl path-acme path_dir /.well-known/acme-challenge + acl path-acme path_reg ^/\.well-known/acme-challenge(/.*)?$ acl path-security.txt path /.well-known/security.txt - acl path-matrix-well-known path_dir /.well-known/matrix - acl path-proxy path_dir /proxy - acl path-media path_dir /media + acl path-matrix-well-known path_reg ^/\.well-known/matrix(/.*)?$ + acl path-proxy path_reg ^/proxy(/.*)?$ + acl path-media path_reg ^/media(/.*)?$ #http-request normalize-uri fragment-strip #http-request normalize-uri path-strip-dot