mirror of
https://forge.katzen.cafe/katzen-cafe/katzen-cafe.git
synced 2024-12-11 21:45:54 +01:00
switch to pass
for key management
This commit is contained in:
parent
57a9d854ae
commit
70a7ee395d
10 changed files with 14 additions and 25 deletions
|
@ -9,17 +9,15 @@ This is the repository for the NixOS configurations of the Katzen Café (Katzen
|
|||
- [x] Keycloak
|
||||
- [x] Penpot
|
||||
- [x] Forgejo
|
||||
- [ ] Vault
|
||||
- [x] Jitsi
|
||||
- [x] Mumble
|
||||
- [ ] Nextcloud
|
||||
- [x] Nextcloud
|
||||
- [ ] Karton
|
||||
- [ ] A plain ol' website
|
||||
- [ ] Mail sender
|
||||
- [x] Mail sender
|
||||
- [ ] Vaultwarden
|
||||
- [x] Calckey
|
||||
- [ ] Some matrix server
|
||||
- [x] minecraft
|
||||
- [x] <del>Some matrix server</del> conduit
|
||||
- [ ] Wiki for service and administration doc
|
||||
- [ ] Some external monitoring
|
||||
|
||||
|
|
|
@ -17,8 +17,7 @@
|
|||
hostPkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
in {
|
||||
devShell."x86_64-linux" = with hostPkgs; mkShell {
|
||||
buildInputs = [ colmena vault ];
|
||||
VAULT_ADDR = "https://hc-vault.katzen.cafe";
|
||||
buildInputs = [ colmena pass ];
|
||||
};
|
||||
colmena = {
|
||||
meta = {
|
||||
|
@ -57,7 +56,6 @@
|
|||
./modules/mumble.nix
|
||||
./modules/modded-mc.nix
|
||||
#./modules/prosody.nix
|
||||
./modules/vault.nix
|
||||
./modules/monitoring.nix
|
||||
./modules/mailserver.nix
|
||||
];
|
||||
|
|
|
@ -86,12 +86,12 @@
|
|||
# NOTE: for some reason, i ahd to manually chown +r the password file for mediawiki to work.
|
||||
# i should figure out why to make this work when setting up new instances...
|
||||
"katzenwikiPwFile" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/katzenwiki-passwordFile" ];
|
||||
keyCommand = [ "pass" "wikis/katzenwiki/password" ];
|
||||
destDir = "/katzenwiki";
|
||||
name = "passwordFile";
|
||||
};
|
||||
"katzenwikiKeycloakClientSecret" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/katzenwiki-keycloak-secret" ];
|
||||
keyCommand = [ "pass" "wikis/katzenwiki/keycloak-secret" ];
|
||||
destDir = "/katzenwiki";
|
||||
name = "keycloakClientSecret";
|
||||
permissions = "0604";
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
};
|
||||
deployment.keys = {
|
||||
"nextcloud-admin-pass" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/nextcloud-admin-pass" ];
|
||||
keyCommand = [ "pass" "nextcloud/admin-password" ];
|
||||
destDir = "/nextcloud/secret";
|
||||
permissions = "0604";
|
||||
};
|
||||
|
|
|
@ -84,7 +84,7 @@
|
|||
};
|
||||
deployment.keys = {
|
||||
"penpot-secrets" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/penpot-secrets" ];
|
||||
keyCommand = [ "pass" "penpot/envfile" ];
|
||||
destDir = "/var/lib/secrets";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -109,11 +109,11 @@
|
|||
};
|
||||
deployment.keys = {
|
||||
"passwordFile" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/phtanumb-wiki-passwordFile" ];
|
||||
keyCommand = [ "pass" "wikis/phtanumb/password" ];
|
||||
destDir = "/phtanum-b/wiki";
|
||||
};
|
||||
"keycloakClientSecret" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/phtanumb-wiki-keycloak-secret" ];
|
||||
keyCommand = [ "pass" "wikis/phtanumb/keycloak-secret" ];
|
||||
destDir = "/phtanum-b/wiki";
|
||||
permissions = "0604";
|
||||
};
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
};
|
||||
deployment.keys = {
|
||||
"noreply-mail-pw-plain" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/noreply-mail-pw-plain" ];
|
||||
keyCommand = [ "pass" "mailpws/plain/noreply" ];
|
||||
destDir = "/var/lib/secrets";
|
||||
permissions = "0604";
|
||||
};
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
};
|
||||
};
|
||||
deployment.keys."keycloakDbPw" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/keycloak-db" ];
|
||||
keyCommand = [ "pass" "keycloak/db-pass" ];
|
||||
destDir = "/var/lib/secrets";
|
||||
};
|
||||
}
|
||||
|
|
|
@ -19,11 +19,11 @@
|
|||
};
|
||||
deployment.keys = {
|
||||
"admin-mail-pw" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/admin-mail-pw" ];
|
||||
keyCommand = [ "pass" "mailpws/hashes/admin" ];
|
||||
destDir = "/var/lib/secrets";
|
||||
};
|
||||
"noreply-mail-pw" = {
|
||||
keyCommand = [ "cat" "/home/jade/keys-tmp/noreply-mail-pw" ];
|
||||
keyCommand = [ "pass" "mailpws/hashes/noreply" ];
|
||||
destDir = "/var/lib/secrets";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -177,13 +177,6 @@
|
|||
add_header Strict-Transport-Security "max-age=15552000; includeSubDomains" always;
|
||||
'';
|
||||
};
|
||||
"hc-vault.katzen.cafe" = {
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://127.0.0.1:8200";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue