mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-04-02 19:12:11 +02:00
27 lines
576 B
Nix
27 lines
576 B
Nix
{ config, ... }:
|
|
let domain = "vault.hadi.diy";
|
|
in {
|
|
services = {
|
|
vaultwarden = {
|
|
enable = true;
|
|
config = {
|
|
DOMAIN = "https://" + domain;
|
|
SIGNUPS_ALLOWED = true;
|
|
ROCKET_ADDRESS = "127.0.0.1";
|
|
ROCKET_PORT = 8222;
|
|
ROCKET_LOG = "critical";
|
|
};
|
|
};
|
|
|
|
nginx.virtualHosts."${domain}" = {
|
|
useACMEHost = "hadi.diy";
|
|
forceSSL = true;
|
|
locations."/" = {
|
|
proxyPass = "http://127.0.0.1:${
|
|
toString config.services.vaultwarden.config.ROCKET_PORT
|
|
}";
|
|
};
|
|
};
|
|
};
|
|
}
|