Add p service for pastes

Reviewed-by: Aleix Boné <abonerib@bsc.es>
Reviewed-by: Aleix Roca Nonell <aleix.rocanonell@bsc.es>
This commit is contained in:
2025-06-13 12:53:58 +02:00
parent 8af1b259f5
commit 47ad89dee1
3 changed files with 74 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
./gitlab-runner.nix
./gitea.nix
../hut/public-inbox.nix
../module/p.nix
];
# Select the this using the ID to avoid mismatches
@@ -32,6 +33,8 @@
defaultGateway = "10.0.44.1";
};
services.p.enable = true;
services.prometheus.exporters.node = {
enable = true;
enabledCollectors = [ "systemd" ];

View File

@@ -64,6 +64,9 @@ in
autoindex on;
absolute_redirect off;
}
location /p/ {
alias /var/lib/p/;
}
'';
};
};