add mast route to box

This commit is contained in:
Anish Lakhwara
2024-10-25 16:15:05 -07:00
parent 3c3236cd2d
commit 8d2f747337
4 changed files with 94 additions and 87 deletions
+14 -3
View File
@@ -1,5 +1,4 @@
{ self, pkgs, ... }:
{
{ self, pkgs, ... }: {
imports = [
./configuration.nix
../profiles/core
@@ -48,7 +47,7 @@
"/data/books" # calibre-web
# "/home/anish/usr/nonfiction" # syncthing
"/home/anish/usr/finance" # beancount
"/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul
"/mnt/two/postgres" # sealight postgres backups TODO remove once moved to capsul
];
# seafile
};
@@ -72,6 +71,18 @@
};
};
services.nginx.virtualHosts."mast.mossnet.lan" = {
enableACME = false;
forceSSL = false;
locations."/" = {
extraConfig = ''
proxy_pass http://localhost:5731/;
proxy_set_header X-Forwarded-Host $host;
'';
};
};
age.secrets.box-wg.file = "${self}/secrets/box-wg.age";
age.secrets.box-wg.owner = "anish";
age.secrets.borg-key.file = "${self}/secrets/borg-key.age";