rename vaultwarden

This commit is contained in:
Leon Vatthauer 2024-05-08 12:20:42 +02:00
parent deca1f5881
commit dae80a3779
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
5 changed files with 10 additions and 6 deletions

View file

@ -30,7 +30,7 @@
users.users.leonv = { users.users.leonv = {
isNormalUser = true; isNormalUser = true;
initialPassword = "leonv"; initialPassword = "leonv";
extraGroups = [ "wheel" ]; # Enable 'sudo' for the user. extraGroups = [ "wheel" "nginx" ]; # Enable 'sudo' for the user.
packages = with pkgs; [ packages = with pkgs; [
]; ];
}; };

View file

@ -2,7 +2,7 @@
security.acme.acceptTerms = true; security.acme.acceptTerms = true;
security.acme.certs = { security.acme.certs = {
"git.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "git.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"bitwarden.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "vaultwarden.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"video.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "video.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"files.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "files.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"www.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "www.vatthauer.xyz".email = "leonvatthauer@outlook.com";

View file

@ -16,7 +16,7 @@
}; };
}; };
services.nginx.virtualHosts."bitwarden.vatthauer.xyz" = { services.nginx.virtualHosts."vaultwarden.vatthauer.xyz" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
locations."/" = { locations."/" = {
@ -32,6 +32,7 @@
}; };
}; };
services.nginx.virtualHosts."www.vatthauer.xyz" = { services.nginx.virtualHosts."www.vatthauer.xyz" = {
serverAliases = [ "vatthauer.xyz" ];
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
root = pkgs.callPackage ./resumee-website.nix {}; root = pkgs.callPackage ./resumee-website.nix {};
@ -39,6 +40,9 @@
services.nginx.virtualHosts."files.vatthauer.xyz" = { services.nginx.virtualHosts."files.vatthauer.xyz" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
root = "/var/www"; locations."/" = {
root = "/var/www";
extraConfig = "autoindex on;";
};
}; };
} }

View file

@ -10,6 +10,6 @@ stdenv.mkDerivation {
buildPhase = "hugo -d $out"; buildPhase = "hugo -d $out";
outputHashAlgo = "sha256"; outputHashAlgo = "sha256";
outputHashMode = "recursive"; outputHashMode = "recursive";
outputHash = "sha256-PQzuhxRrruBbEfUjhPGPeJkJ6vsbMJ+5Ojg4t11oNV8="; outputHash = "sha256-BReyv7kH/dSd0xcISbCA8AFing7uFkghkbjF24pU0Og=";
} }

View file

@ -2,7 +2,7 @@
services.vaultwarden = { services.vaultwarden = {
enable = true; enable = true;
config = { config = {
DOMAIN = "https://bitwarden.vatthauer.xyz"; DOMAIN = "https://vaultwarden.vatthauer.xyz";
SIGNUPS_ALLOWED = false; SIGNUPS_ALLOWED = false;
ROCKET_ADDRESS = "127.0.0.1"; ROCKET_ADDRESS = "127.0.0.1";