refactor
This commit is contained in:
committed by
Joakim Repomaa
parent
e0d0c12a8e
commit
6a5789d45b
@@ -223,7 +223,7 @@
|
||||
acme.dnsChallenge = true;
|
||||
vHosts."koti.repomaa.com" = {
|
||||
proxyBuffering = false;
|
||||
locations."/".proxy = "http://127.0.0.1:8123";
|
||||
locations."/".proxyPort = 8123;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -42,6 +42,6 @@ in
|
||||
]
|
||||
);
|
||||
|
||||
"${fqdn}".locations."/".proxy = "http://127.0.0.1:${toString port}";
|
||||
"${fqdn}".locations."/".proxyPort = port;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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" ];
|
||||
|
||||
@@ -9,5 +9,5 @@ in
|
||||
inherit port;
|
||||
};
|
||||
|
||||
modules.webserver.vHosts.${fqdn}.locations."/".proxy = "http://localhost:${toString port}";
|
||||
modules.webserver.vHosts.${fqdn}.locations."/".proxyPort = port;
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 ];
|
||||
}
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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" ];
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user