Compare commits

...

2 commits

Author SHA1 Message Date
Tom Hubrecht
05e8e501f5 feat(nextcloud): Restart nextcloud at activation time
All checks were successful
build configuration / build_storage01 (push) Successful in 46s
build configuration / build_web01 (push) Successful in 45s
build configuration / build_compute01 (push) Successful in 1m24s
2023-12-20 13:48:26 +01:00
Tom Hubrecht
09d341a098 feat(nextcloud): Add dns resolution to collabora 2023-12-20 13:48:11 +01:00

View file

@ -83,6 +83,17 @@ in {
};
};
virtualisation = {
podman = {
enable = true;
defaultNetwork.settings = {
dns_enable = true;
ipv6_enabled = true;
};
};
};
virtualisation.oci-containers = {
# # Since 22.05, the default driver is podman but it doesn't work
# # with podman. It would however be nice to switch to podman.
@ -180,4 +191,12 @@ in {
networking.hosts = { "129.199.146.148" = [ "s3.dgnum.eu" ]; };
dgn-secrets.matches."^nextcloud-.*$" = { owner = "nextcloud"; };
system.activationScripts = {
restart-nextcloud.text = ''
if [ "$(${pkgs.systemd}/bin/systemctl is-active phpfpm-nextcloud)" == "active" ]; then
${pkgs.systemd}/bin/systemctl restart phpfpm-nextcloud
fi
'';
};
}