Fix auth.chir.rs

This commit is contained in:
Charlotte 🦝 Delenk 2023-01-14 13:01:31 +01:00
parent ff6870bcb7
commit 75713b498a
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 9 additions and 6 deletions

View file

@ -18,9 +18,9 @@
}
in BaseConfig::{
, database_url = "postgres://auth_chir_rs:${d}{password}@nixos-8gb-fsn1-1.int.chir.rs",
, database_url = "postgres://auth_chir_rs:${d}{password}@nixos-8gb-fsn1-1.int.chir.rs"
, listen_addr = "[::1]:7954"
, redis_url = "redis://localhost:53538/0"
, redis_url = "redis://${d}{password}@nixos-8gb-fsn1-1.int.chir.rs:53538/0"
}
'';
in {
@ -60,8 +60,11 @@ in {
}
];
services.redis.servers."auth_chir_rs" = {
enable = true;
enable = config.networking.hostName == "nixos-8gb-fsn1-1";
port = 53538;
save = [];
requirePassFile = config.sops.secrets."services/chir-rs/auth/password".path;
user = "auth_chir_rs";
};
networking.firewall.interfaces."wg0".allowedTCPPorts = [53538];
}

View file

@ -56,11 +56,11 @@
"rust-overlay": "rust-overlay"
},
"locked": {
"lastModified": 1673620617,
"narHash": "sha256-O52S5V1/T2DYeVS3+oWohpX45p1Cosd2azXkigZ9jP8=",
"lastModified": 1673690903,
"narHash": "sha256-tBeEIbm7XK2ce4/H6zwSo5dasussj6yraaQ7c3jp7DY=",
"owner": "DarkKirb",
"repo": "chir.rs",
"rev": "f921629e7dc7299788a3f99943e069ffa545e529",
"rev": "e3a2e5779044e18cc67707bac3b2d91de912e187",
"type": "github"
},
"original": {