i give up on nextcloud office
This commit is contained in:
parent
7e02970b56
commit
7da7b7167a
1 changed files with 10 additions and 29 deletions
|
|
@ -15,7 +15,7 @@ in
|
||||||
services = {
|
services = {
|
||||||
nextcloud = {
|
nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.nextcloud31;
|
package = pkgs.nextcloud32;
|
||||||
datadir = "/data/nextcloud";
|
datadir = "/data/nextcloud";
|
||||||
hostName = "cloud.baduhai.dev";
|
hostName = "cloud.baduhai.dev";
|
||||||
configureRedis = true;
|
configureRedis = true;
|
||||||
|
|
@ -23,6 +23,14 @@ in
|
||||||
secretFile = config.age.secrets."nextcloud-secrets.json".path;
|
secretFile = config.age.secrets."nextcloud-secrets.json".path;
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
maxUploadSize = "16G";
|
maxUploadSize = "16G";
|
||||||
|
extraApps = {
|
||||||
|
inherit (config.services.nextcloud.package.packages.apps)
|
||||||
|
calendar
|
||||||
|
contacts
|
||||||
|
notes
|
||||||
|
;
|
||||||
|
};
|
||||||
|
extraAppsEnable = true;
|
||||||
caching = {
|
caching = {
|
||||||
apcu = true;
|
apcu = true;
|
||||||
redis = true;
|
redis = true;
|
||||||
|
|
@ -66,36 +74,9 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
collabora-online = {
|
|
||||||
enable = true;
|
|
||||||
port = 9980;
|
|
||||||
settings = {
|
|
||||||
ssl = {
|
|
||||||
enable = false;
|
|
||||||
termination = true;
|
|
||||||
};
|
|
||||||
net = {
|
|
||||||
listen = "loopback";
|
|
||||||
frame_ancestors = "cloud.baduhai.dev";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nginx.virtualHosts = mkNginxVHosts {
|
nginx.virtualHosts = mkNginxVHosts {
|
||||||
acmeHost = "baduhai.dev";
|
acmeHost = "baduhai.dev";
|
||||||
domains = {
|
domains."cloud.baduhai.dev" = { };
|
||||||
"cloud.baduhai.dev" = { };
|
|
||||||
"office.baduhai.dev".locations = {
|
|
||||||
"/".proxyPass = "http://127.0.0.1:${toString config.services.collabora-online.port}";
|
|
||||||
"~ ^/cool/(.*)/ws$".proxyPass = "http://127.0.0.1:${toString config.services.collabora-online.port}";
|
|
||||||
"~ ^/cool/(.*)/ws$".extraConfig = ''
|
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
|
||||||
proxy_set_header Connection "Upgrade";
|
|
||||||
proxy_set_header Host $host;
|
|
||||||
proxy_read_timeout 36000s;
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue