Fix auth.chir.rs #149
2 changed files with 9 additions and 6 deletions
|
@ -18,9 +18,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
in BaseConfig::{
|
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"
|
, 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 {
|
in {
|
||||||
|
@ -60,8 +60,11 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
services.redis.servers."auth_chir_rs" = {
|
services.redis.servers."auth_chir_rs" = {
|
||||||
enable = true;
|
enable = config.networking.hostName == "nixos-8gb-fsn1-1";
|
||||||
port = 53538;
|
port = 53538;
|
||||||
save = [];
|
save = [];
|
||||||
|
requirePassFile = config.sops.secrets."services/chir-rs/auth/password".path;
|
||||||
|
user = "auth_chir_rs";
|
||||||
};
|
};
|
||||||
|
networking.firewall.interfaces."wg0".allowedTCPPorts = [53538];
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,11 +56,11 @@
|
||||||
"rust-overlay": "rust-overlay"
|
"rust-overlay": "rust-overlay"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1673620617,
|
"lastModified": 1673690903,
|
||||||
"narHash": "sha256-O52S5V1/T2DYeVS3+oWohpX45p1Cosd2azXkigZ9jP8=",
|
"narHash": "sha256-tBeEIbm7XK2ce4/H6zwSo5dasussj6yraaQ7c3jp7DY=",
|
||||||
"owner": "DarkKirb",
|
"owner": "DarkKirb",
|
||||||
"repo": "chir.rs",
|
"repo": "chir.rs",
|
||||||
"rev": "f921629e7dc7299788a3f99943e069ffa545e529",
|
"rev": "e3a2e5779044e18cc67707bac3b2d91de912e187",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
Loading…
Reference in a new issue