add ssh and pgp.key

This commit is contained in:
Ingolf Wagner 2022-09-20 22:57:44 +02:00
commit cdca149e72
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
3 changed files with 110 additions and 0 deletions
nixos/machines/robi

View file

@ -9,6 +9,7 @@
../../system/all/syncthing.nix
../../system/all/tinc.nix
../../system/server/netdata.nix
../../system/server/packages.nix
./hetzner.nix

View file

@ -38,6 +38,26 @@ in
enable = true;
recommendedProxySettings = true;
virtualHosts = {
"ingolf-wagner.de" = {
forceSSL = true;
enableACME = true;
extraConfig = error.extraConfig;
root = "/srv/www/ingolf-wagner.de";
locations = {
"/" = { };
"= /pgp.key" = {
alias = pkgs.writeText "key" (lib.fileContents ../../assets/pgp.key);
};
"= /gpg.key" = {
alias = pkgs.writeText "key" (lib.fileContents ../../assets/pgp.key);
};
"= /ssh.key" = {
alias = pkgs.writeText "key" (lib.fileContents ../../assets/ssh/card_rsa.pub);
};
} // error.locations;
};
"stable-diffusion.ingolf-wagner.de" = {
forceSSL = true;
enableACME = true;