2024-01-25 15:54:05 +00:00
|
|
|
{config, ...}: let
|
|
|
|
port = 12224;
|
|
|
|
in {
|
|
|
|
age.secrets.bitwarden.file = ../../secrets/bitwarden.age;
|
|
|
|
|
|
|
|
services = {
|
|
|
|
vaultwarden = {
|
|
|
|
enable = true;
|
|
|
|
environmentFile = config.age.secrets.bitwarden.path;
|
|
|
|
config = {
|
|
|
|
domain = "https://bitwarden.buffet.sh/";
|
|
|
|
signupsAllowed = false;
|
|
|
|
rocketPort = port;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
|
|
|
virtualHosts."bitwarden.buffet.sh" = {
|
2024-04-20 16:41:52 +00:00
|
|
|
useACMEHost = "buffet.sh";
|
2024-01-25 15:54:05 +00:00
|
|
|
forceSSL = true;
|
|
|
|
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://localhost:${toString port}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|