mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
add vaultwarden
This commit is contained in:
29
modules/nixos/vaultwarden.nix
Normal file
29
modules/nixos/vaultwarden.nix
Normal file
@ -0,0 +1,29 @@
|
||||
{lib, ...}: {
|
||||
services = {
|
||||
vaultwarden = {
|
||||
enable = true;
|
||||
config = {
|
||||
domain = "https://vault.0xtux.com";
|
||||
enableWebsocket = true;
|
||||
signupsAllowed = true;
|
||||
disableIconDownload = true;
|
||||
};
|
||||
};
|
||||
|
||||
nginx = {
|
||||
enable = lib.mkForce true;
|
||||
virtualHosts = {
|
||||
"vault.0xtux.com" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations = {
|
||||
"/" = {
|
||||
proxyPass = "http://localhost:8000";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user