This commit is contained in:
Joakim Repomaa
2025-02-07 20:27:53 +02:00
committed by Joakim Repomaa
parent e0d0c12a8e
commit 6a5789d45b
12 changed files with 27 additions and 33 deletions

View File

@@ -223,7 +223,7 @@
acme.dnsChallenge = true;
vHosts."koti.repomaa.com" = {
proxyBuffering = false;
locations."/".proxy = "http://127.0.0.1:8123";
locations."/".proxyPort = 8123;
};
};

View File

@@ -42,6 +42,6 @@ in
]
);
"${fqdn}".locations."/".proxy = "http://127.0.0.1:${toString port}";
"${fqdn}".locations."/".proxyPort = port;
};
}

View File

@@ -43,7 +43,7 @@ in
];
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
services.postgresql = {
ensureDatabases = [ "grafana" ];

View File

@@ -9,5 +9,5 @@ in
inherit port;
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
}

View File

@@ -167,7 +167,7 @@ in
wantedBy = [ "multi-user.target" ];
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
fileSystems."${immich_data_dir}" = {
device = "//u407959.your-storagebox.de/backup/immich";

View File

@@ -19,5 +19,5 @@ in
};
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
}

View File

@@ -10,5 +10,5 @@ in
inherit port;
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
}

View File

@@ -15,9 +15,9 @@ in
enable = true;
description = "Snips pastebin";
environment = {
SNIPS_HTTP_INTERNAL = "http://127.0.0.1:${toString port}";
SNIPS_HTTP_INTERNAL = "http://[::1]:${toString port}";
SNIPS_HTTP_EXTERNAL = "https://${fqdn}";
SNIPS_SSH_INTERNAL = "ssh://0.0.0.0:${toString sshPort}";
SNIPS_SSH_INTERNAL = "ssh://[::0]:${toString sshPort}";
SNIPS_SSH_EXTERNAL = "ssh://${fqdn}:${toString sshPort}";
SNIPS_HOST_KEY_PATH = "/var/lib/snips/keys/snips";
SNIPS_DB_FILEPATH = "/var/lib/snips/snips.db";
@@ -38,7 +38,7 @@ in
};
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
networking.firewall.allowedTCPPorts = [ sshPort ];
}

View File

@@ -14,7 +14,7 @@ in
settings.gui.insecureSkipHostCheck = true;
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
fileSystems."${storage_dir}" = {
device = "//u407959.your-storagebox.de/backup/syncthing";

View File

@@ -1,6 +1,7 @@
{ lib, ... }:
let
fqdn = "pw.freun.dev";
port = 8000;
in
{
services.vaultwarden = {
@@ -21,10 +22,11 @@ in
SMTP_PORT = 587;
HELO_NAME = "freun.dev";
ROCKET_LIMITS = "{json=10485760}";
ROCKET_PORT = port;
};
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:8000";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
services.postgresql = {
ensureDatabases = [ "vaultwarden" ];

View File

@@ -31,5 +31,5 @@ in
};
};
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://127.0.0.1:${toString port}";
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
}