mirror of
https://tangled.org/tranquil.farm/tranquil-pds
synced 2026-09-04 01:06:55 +00:00
feat: actual good config from Isabel
This commit is contained in:
@@ -36,5 +36,6 @@ in rustPlatform.buildRustPackage {
|
||||
|
||||
meta = {
|
||||
license = lib.licenses.agpl3Plus;
|
||||
mainProgram = "tranquil-pds";
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,7 +30,13 @@
|
||||
default = pkgs.callPackage ./shell.nix {};
|
||||
});
|
||||
|
||||
nixosModules.default = import ./module.nix self;
|
||||
nixosModules = {
|
||||
default = self.nixosModules.tranquil-pds;
|
||||
tranquil-pds = {
|
||||
_file = "${self.outPath}/flake.nix#nixosModules.tranquil-pds";
|
||||
imports = [(import ./module.nix self)];
|
||||
};
|
||||
};
|
||||
|
||||
checks.x86_64-linux.integration = import ./test.nix {
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
|
||||
+215
-695
File diff suppressed because it is too large
Load Diff
@@ -16,11 +16,6 @@ pkgs.testers.nixosTest {
|
||||
services.tranquil-pds = {
|
||||
enable = true;
|
||||
database.createLocally = true;
|
||||
secretsFile = pkgs.writeText "tranquil-secrets" ''
|
||||
JWT_SECRET=test-jwt-secret-must-be-32-chars-long
|
||||
DPOP_SECRET=test-dpop-secret-must-be-32-chars-long
|
||||
MASTER_KEY=test-master-key-must-be-32-chars-long
|
||||
'';
|
||||
|
||||
nginx = {
|
||||
enable = true;
|
||||
@@ -28,12 +23,15 @@ pkgs.testers.nixosTest {
|
||||
};
|
||||
|
||||
settings = {
|
||||
server.pdsHostname = "test.local";
|
||||
server.host = "0.0.0.0";
|
||||
PDS_HOSTNAME = "test.local";
|
||||
SERVER_HOST = "0.0.0.0";
|
||||
|
||||
storage.blobBackend = "filesystem";
|
||||
rateLimiting.disable = true;
|
||||
security.allowInsecureSecrets = true;
|
||||
DISABLE_RATE_LIMITING = 1;
|
||||
TRANQUIL_PDS_ALLOW_INSECURE_SECRETS = 1;
|
||||
|
||||
JWT_SECRET="test-jwt-secret-must-be-32-chars-long";
|
||||
DPOP_SECRET="test-dpop-secret-must-be-32-chars-long";
|
||||
MASTER_KEY="test-master-key-must-be-32-chars-long";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user