2023-01-26 15:15:35 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
2023-01-30 19:53:24 +00:00
|
|
|
krebs.sync-containers3.containers.ubik = {
|
2023-01-26 15:15:35 +00:00
|
|
|
sshKey = "${toString <secrets>}/ubik.sync.key";
|
|
|
|
};
|
|
|
|
containers.ubik.bindMounts."/var/lib" = {
|
|
|
|
hostPath = "/var/lib/sync-containers3/ubik/state";
|
|
|
|
isReadOnly = false;
|
|
|
|
};
|
|
|
|
containers.ubik.bindMounts."/var/lib/nextcloud/data" = {
|
|
|
|
hostPath = "/var/ubik";
|
|
|
|
isReadOnly = false;
|
|
|
|
};
|
|
|
|
services.nginx.virtualHosts."c.apanowicz.de" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
proxyWebsockets = true;
|
|
|
|
proxyPass = "http://ubik.r";
|
|
|
|
extraConfig = ''
|
|
|
|
client_max_body_size 9001M;
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|