[zineshop] proxyforward with auth

This commit is contained in:
2025-04-14 12:35:48 +02:00
parent ae31ad99bb
commit 38b2fd0bcc
4 changed files with 38 additions and 3 deletions

View File

@@ -5,6 +5,7 @@ in
{
sops.defaultSopsFile = ./secrets.yaml;
sops.secrets.wg_private = {};
sops.secrets.shop_auth = {};
imports =
[ # Include the results of the hardware scan.
@@ -144,6 +145,18 @@ in
'';
};
};
virtualHosts."shop.malobeo.org" = {
# created with: nix-shell --packages apacheHttpd --run 'htpasswd -B -c foo.txt malobeo'
# then content of foo.txt put into sops
basicAuthFile = config.sops.secrets.shop_auth.path;
locations."/" = {
proxyPass = "http://10.0.0.15:8080";
extraConfig = ''
proxy_set_header Host $host;
'';
};
};
};
services.tor = {