nextcloud fixes
This commit is contained in:
@@ -35,6 +35,16 @@ in
|
|||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
description = "The localhost address.";
|
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 {
|
domain = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
default = "servidos.lat";
|
default = "servidos.lat";
|
||||||
|
|||||||
@@ -23,7 +23,6 @@
|
|||||||
proxied = false;
|
proxied = false;
|
||||||
domains = [
|
domains = [
|
||||||
config.my.domain
|
config.my.domain
|
||||||
"wedsgk5ac2qcaf9yb.click"
|
|
||||||
];
|
];
|
||||||
apiTokenFile = config.sops.secrets.cloudflare-api.path;
|
apiTokenFile = config.sops.secrets.cloudflare-api.path;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -153,6 +153,11 @@ in
|
|||||||
settings = {
|
settings = {
|
||||||
log_type = "file";
|
log_type = "file";
|
||||||
loglevel = 1;
|
loglevel = 1;
|
||||||
|
trusted_proxies = [
|
||||||
|
config.my.localhost
|
||||||
|
config.my.localhost6
|
||||||
|
config.my.routerip
|
||||||
|
];
|
||||||
trusted_domains = [
|
trusted_domains = [
|
||||||
config.my.ips.${config.networking.hostName}
|
config.my.ips.${config.networking.hostName}
|
||||||
"localhost"
|
"localhost"
|
||||||
@@ -160,7 +165,7 @@ in
|
|||||||
"cloud.servidos.lat"
|
"cloud.servidos.lat"
|
||||||
];
|
];
|
||||||
overwriteprotocol = "https";
|
overwriteprotocol = "https";
|
||||||
overwrite.cli.url = "${cfg.url}";
|
"overwrite.cli.url" = "${cfg.url}";
|
||||||
forwarded_for_headers = [ "HTTP_X_FORWARDED_FOR" ];
|
forwarded_for_headers = [ "HTTP_X_FORWARDED_FOR" ];
|
||||||
default_phone_region = "MX";
|
default_phone_region = "MX";
|
||||||
allow_local_remote_servers = true;
|
allow_local_remote_servers = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user