mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
add vaultwarden
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
config,
|
config,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
security = {
|
security = {
|
||||||
@ -40,7 +41,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = lib.mkForce true;
|
||||||
virtualHosts = {
|
virtualHosts = {
|
||||||
"hs.0xtux.com" = {
|
"hs.0xtux.com" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
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