Add p service for pastes

This commit is contained in:
2025-06-13 12:53:58 +02:00
parent 01d531e05c
commit 076a367837
4 changed files with 80 additions and 6 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/;
}
'';
};
};