nextcloud proxy logic attempt
This commit is contained in:
@@ -12,6 +12,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
users = "jawz";
|
users = "jawz";
|
||||||
};
|
};
|
||||||
|
enableProxy = true;
|
||||||
enableContainers = true;
|
enableContainers = true;
|
||||||
apps.dictionaries.enable = true;
|
apps.dictionaries.enable = true;
|
||||||
apps.dictionaries.users = "jawz";
|
apps.dictionaries.users = "jawz";
|
||||||
@@ -51,6 +52,7 @@ in
|
|||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCron = true;
|
enableCron = true;
|
||||||
|
enableProxy = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// enableList mkEnabled [
|
// enableList mkEnabled [
|
||||||
|
|||||||
@@ -272,6 +272,21 @@ in
|
|||||||
"~ ^/nextcloud/(?:index|remote|public|cron|core/ajax/update|status|ocs/v[12]|updater/.+|oc[ms]-provider/.+|.+/richdocumentscode/proxy).php(?:$|/)" =
|
"~ ^/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 {
|
"${cfgC.host}" = lib.mkIf cfgC.enableProxy {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user