swap vaultwarden
This commit is contained in:
parent
b6117d062b
commit
1a0c20b63a
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue