nixos: bucket replica and XMPP certificate sync
s3-replicate is the same rclone sync with the same delete limit, run by the rclone package instead of its image. The certificate push keeps its shape: ops reads Traefik's acme.json and sends each certificate over SSH with a key that may run one command on services, from ops only. The key is now a sops secret with its public half in the config, instead of being generated on the host, so a rebuilt pair works without a manual step. Tried on the rehearsal pair with a throwaway certificate; any other command is refused. Assisted-by: Claude:fable-5-2
This commit is contained in:
parent
e95d97869f
commit
422eb3bc6e
1 changed files with 359 additions and 79 deletions
|
|
@ -13,6 +13,7 @@
|
|||
systemd.network.networks."10-public".address = lib.mkForce [ "2a01:4f9:c01d:6f9::1/64" ];
|
||||
|
||||
asxpio.publicIPv4 = "2.29.197.9";
|
||||
asxpio.xmppCertSyncKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHXhvaO3Dhkw3QuMUHycoPU12Vx8bKWk2PCFoULvnTAf";
|
||||
|
||||
# A 4 GB server
|
||||
services.minecraft-server.jvmOpts = lib.mkForce "-Xmx2G -Xms1G";
|
||||
|
|
@ -37,6 +38,9 @@
|
|||
autoStart = false;
|
||||
});
|
||||
|
||||
# Dummy keys; and nothing here may write to the production buckets
|
||||
systemd.timers.s3-replicate.enable = false;
|
||||
|
||||
# This runner would take real jobs of another project
|
||||
systemd.services.forgejo-runner-interop.wantedBy = lib.mkForce [ ];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue