nextcloud fixes

This commit is contained in:
Danilo Reyes 2025-03-23 16:18:12 -06:00
parent 795a91d00b
commit 9332cd9f37
3 changed files with 16 additions and 2 deletions

View File

@ -35,6 +35,16 @@ in
default = "127.0.0.1";
description = "The localhost address.";
};
localhost6 = lib.mkOption {
type = lib.types.str;
default = "::1";
description = "The localhost ipv6 address.";
};
routerip = lib.mkOption {
type = lib.types.str;
default = "192.168.1.254";
description = "The ip address of my router.";
};
domain = lib.mkOption {
type = lib.types.str;
default = "servidos.lat";

View File

@ -23,7 +23,6 @@
proxied = false;
domains = [
config.my.domain
"wedsgk5ac2qcaf9yb.click"
];
apiTokenFile = config.sops.secrets.cloudflare-api.path;
};

View File

@ -153,6 +153,11 @@ in
settings = {
log_type = "file";
loglevel = 1;
trusted_proxies = [
config.my.localhost
config.my.localhost6
config.my.routerip
];
trusted_domains = [
config.my.ips.${config.networking.hostName}
"localhost"
@ -160,7 +165,7 @@ in
"cloud.servidos.lat"
];
overwriteprotocol = "https";
overwrite.cli.url = "${cfg.url}";
"overwrite.cli.url" = "${cfg.url}";
forwarded_for_headers = [ "HTTP_X_FORWARDED_FOR" ];
default_phone_region = "MX";
allow_local_remote_servers = true;