nextcloud #3
1 changed files with 11 additions and 0 deletions
|
|
@ -8,6 +8,7 @@
|
||||||
host = "cloud.jsw.tf";
|
host = "cloud.jsw.tf";
|
||||||
nginxRoot = config.services.nginx.virtualHosts.${host}.root;
|
nginxRoot = config.services.nginx.virtualHosts.${host}.root;
|
||||||
fpmSocket = config.services.phpfpm.pools.nextcloud.socket;
|
fpmSocket = config.services.phpfpm.pools.nextcloud.socket;
|
||||||
|
imaginaryPort = 9005;
|
||||||
in {
|
in {
|
||||||
config = lib.mkIf server {
|
config = lib.mkIf server {
|
||||||
users.groups.nextcloud.members = ["nextcloud" "caddy"];
|
users.groups.nextcloud.members = ["nextcloud" "caddy"];
|
||||||
|
|
@ -59,7 +60,11 @@ in {
|
||||||
"OC\\Preview\\TXT"
|
"OC\\Preview\\TXT"
|
||||||
"OC\\Preview\\XBitmap"
|
"OC\\Preview\\XBitmap"
|
||||||
"OC\\Preview\\HEIC"
|
"OC\\Preview\\HEIC"
|
||||||
|
"OC\Preview\Imaginary"
|
||||||
];
|
];
|
||||||
|
preview_imaginary_url = "http://localhost:${builtins.toString imaginaryPort}";
|
||||||
|
preview_format = "webp";
|
||||||
|
|
||||||
trusted_proxies = ["127.0.0.1"];
|
trusted_proxies = ["127.0.0.1"];
|
||||||
maintenance_window_start = 1;
|
maintenance_window_start = 1;
|
||||||
log_type = "file";
|
log_type = "file";
|
||||||
|
|
@ -71,6 +76,12 @@ in {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
imaginary = {
|
||||||
|
enable = true;
|
||||||
|
port = imaginaryPort;
|
||||||
|
address = "localhost";
|
||||||
|
settings.returnSize = true;
|
||||||
|
};
|
||||||
|
|
||||||
nginx.enable = lib.mkForce false;
|
nginx.enable = lib.mkForce false;
|
||||||
phpfpm.pools.nextcloud.settings = let
|
phpfpm.pools.nextcloud.settings = let
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue