nextcloud proxy logic attempt

This commit is contained in:
Danilo Reyes
2026-02-05 06:54:14 -06:00
parent 81f9025dc9
commit 3517e394c6
2 changed files with 17 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ in
enable = true;
users = "jawz";
};
enableProxy = true;
enableContainers = true;
apps.dictionaries.enable = true;
apps.dictionaries.users = "jawz";
@@ -51,6 +52,7 @@ in
nextcloud = {
enable = true;
enableCron = true;
enableProxy = true;
};
}
// enableList mkEnabled [

View File

@@ -272,6 +272,21 @@ in
"~ ^/nextcloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+|.+/richdocumentscode/proxy).php(?:$|/)" =
{ };
};
}
// lib.optionalAttrs cfg.enable {
forceSSL = false;
enableACME = false;
http2 = false;
listen = [
{
addr = config.my.ips.wg-server;
port = 8081;
}
{
addr = config.my.localhost;
port = 8081;
}
];
};
"${cfgC.host}" = lib.mkIf cfgC.enableProxy {
forceSSL = true;