Fix redirect matching

This commit is contained in:
Filippo Berto 2025-08-16 11:51:34 +02:00
parent 8c7d2dd6cb
commit eb79e85eee
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -80,7 +80,7 @@
in
{
"me.bertof.net" = ssl // {
locations."/".extraConfig = "rewrite ^/(.*)$ https://homes.di.unimi.it/berto/$1 redirect ;";
locations."/".extraConfig = "rewrite ^/(berto/)?(.*)$ https://homes.di.unimi.it/berto/$2 redirect ;";
};
"home-assistant.bertof.net" = ssl // {
locations."/" = {