made a whoopsie
diff --git a/modules/caddy.nix b/modules/caddy.nix
index a76672e..e3309fe 100644
--- a/modules/caddy.nix
+++ b/modules/caddy.nix
@@ -2,7 +2,7 @@
services.caddy.enable = true;
services.caddy.configFile = lib.pipe ./caddy/caddyfile.nix [
import
- (f: f { inherit pkgs lib; })
+ (f: f { inherit pkgs lib config; })
builtins.toJSON
(pkgs.writeText "caddy.json")
];
diff --git a/modules/caddy/caddyfile.nix b/modules/caddy/caddyfile.nix
index 8ebf226..ec0d82b 100644
--- a/modules/caddy/caddyfile.nix
+++ b/modules/caddy/caddyfile.nix
@@ -73,7 +73,7 @@
];
};
in
-{ pkgs, lib }: {
+{ pkgs, lib, config }: {
apps = {
http.servers = {
srv0 = {
@@ -279,6 +279,7 @@
};
}
))
+ (HTTPReverseProxyRoute [ "passwords.clicks.codes" ] [ "localhost:${config.services.vaultwarden.config.ROCKET_PORT}" ])
];
};
srv1 = {
diff --git a/modules/vaultwarden.nix b/modules/vaultwarden.nix
index 8eba3ed..c02d2f1 100644
--- a/modules/vaultwarden.nix
+++ b/modules/vaultwarden.nix
@@ -1,4 +1,4 @@
-{ pkgs... }: {
+{ pkgs, ... }: {
environment.systemPackages = with pkgs; [ vaultwarden ];
services.vaultwarden.enable = true;
@@ -47,7 +47,7 @@
# YubiKey Settings
- YUBICO_CLIENT_ID="FILL_ME_IN";
+ YUBICO_CLIENT_ID="89788";
YUBICO_SECRET_KEY="FILL_ME_IN";