mirror of
https://github.com/lightly-toasted/nix-config.git
synced 2025-10-04 11:35:41 +00:00
feat(vps): add caddy reverse proxy for vaultwarden at /vaultwarden/
This commit is contained in:
parent
362e2f99b1
commit
1f28e2853d
3 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
services.caddy = {
|
services.caddy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -6,5 +8,10 @@
|
||||||
virtualHosts."i.toast.name".extraConfig = ''
|
virtualHosts."i.toast.name".extraConfig = ''
|
||||||
reverse_proxy http://127.0.0.1:3000
|
reverse_proxy http://127.0.0.1:3000
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# vaultwarden
|
||||||
|
virtualHosts."vps.curl-pence.ts.net".extraConfig = ''
|
||||||
|
reverse_proxy /vaultwarden/* http://127.0.0.1:8222
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,5 +7,6 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
authKeyFile = config.sops.secrets."tailscale/authkey".path;
|
authKeyFile = config.sops.secrets."tailscale/authkey".path;
|
||||||
useRoutingFeatures = "both";
|
useRoutingFeatures = "both";
|
||||||
|
permitCertUid = "caddy";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
config = {
|
config = {
|
||||||
ROCKET_ADDRESS = "127.0.0.1";
|
ROCKET_ADDRESS = "127.0.0.1";
|
||||||
ROCKET_PORT = 8222;
|
ROCKET_PORT = 8222;
|
||||||
|
DOMAIN = "https://vps.curl-pence.ts.net/vaultwarden";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue