swap vaultwarden

This commit is contained in:
nyxerinys 2026-10-17 23:51:41 -05:00
parent b6117d062b
commit 1a0c20b63a

View file

@ -1,6 +1,7 @@
{inputs, pkgs, config, ...}: {inputs, pkgs, config, ...}:
{ {
# Secrets
sops.secrets."CF_DNS_API_TOKEN" = { sops.secrets."CF_DNS_API_TOKEN" = {
format = "json"; format = "json";
sopsFile = "${inputs.secrets}/mirror/nginx.json"; sopsFile = "${inputs.secrets}/mirror/nginx.json";
@ -16,6 +17,7 @@
CF_ZONE_API_TOKEN="${config.sops.placeholder."CF_ZONE_API_TOKEN"}" CF_ZONE_API_TOKEN="${config.sops.placeholder."CF_ZONE_API_TOKEN"}"
''; '';
# Security
networking.firewall.allowedTCPPorts = [ networking.firewall.allowedTCPPorts = [
80 # http 80 # http
443 # https 443 # https
@ -31,6 +33,7 @@
}; };
}; };
# Definitions
services.nginx = let services.nginx = let
services = [ services = [
{ name = "authentik"; port = "30000"; } { name = "authentik"; port = "30000"; }
@ -58,7 +61,7 @@
acmeRoot = null; acmeRoot = null;
locations."/" = { locations."/" = {
proxyPass = "http://10.5.0.2:83"; proxyPass = "http://vaultwarden";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };