configured nextcloud office
This commit is contained in:
parent
a23e7650ea
commit
fcacd16e48
2 changed files with 57 additions and 7 deletions
|
|
@ -42,8 +42,8 @@ in
|
||||||
searx = mkStringOption "8007";
|
searx = mkStringOption "8007";
|
||||||
qbittorrent = mkStringOption "8008";
|
qbittorrent = mkStringOption "8008";
|
||||||
actual = mkStringOption "8009";
|
actual = mkStringOption "8009";
|
||||||
pairdrop = mkStringOption "8010";
|
memos = mkStringOption "8010";
|
||||||
memos = mkStringOption "8011";
|
collabora = mkStringOption "8011";
|
||||||
jellyfin = mkStringOption "8096";
|
jellyfin = mkStringOption "8096";
|
||||||
sonarr = mkStringOption "8989";
|
sonarr = mkStringOption "8989";
|
||||||
jackett = mkStringOption "9117";
|
jackett = mkStringOption "9117";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,9 @@
|
||||||
{ config, pkgs, ... }:
|
{
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
services = {
|
services = {
|
||||||
|
|
@ -21,6 +26,31 @@
|
||||||
trusted_proxies = [ "127.0.0.1" ];
|
trusted_proxies = [ "127.0.0.1" ];
|
||||||
default_phone_region = "BR";
|
default_phone_region = "BR";
|
||||||
maintenance_window_start = "4";
|
maintenance_window_start = "4";
|
||||||
|
enabledPreviewProviders = [
|
||||||
|
"OC\\Preview\\BMP"
|
||||||
|
"OC\\Preview\\EMF"
|
||||||
|
"OC\\Preview\\Font"
|
||||||
|
"OC\\Preview\\GIF"
|
||||||
|
"OC\\Preview\\HEIC"
|
||||||
|
"OC\\Preview\\Illustrator"
|
||||||
|
"OC\\Preview\\JPEG"
|
||||||
|
"OC\\Preview\\Krita"
|
||||||
|
"OC\\Preview\\MarkDown"
|
||||||
|
"OC\\Preview\\Movie"
|
||||||
|
"OC\\Preview\\MP3"
|
||||||
|
"OC\\Preview\\MSOffice2003"
|
||||||
|
"OC\\Preview\\MSOffice2007"
|
||||||
|
"OC\\Preview\\MSOfficeDoc"
|
||||||
|
"OC\\Preview\\OpenDocument"
|
||||||
|
"OC\\Preview\\PDF"
|
||||||
|
"OC\\Preview\\Photoshop"
|
||||||
|
"OC\\Preview\\PNG"
|
||||||
|
"OC\\Preview\\Postscript"
|
||||||
|
"OC\\Preview\\SVG"
|
||||||
|
"OC\\Preview\\TIFF"
|
||||||
|
"OC\\Preview\\TXT"
|
||||||
|
"OC\\Preview\\XBitmap"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
config = {
|
config = {
|
||||||
dbtype = "pgsql";
|
dbtype = "pgsql";
|
||||||
|
|
@ -31,10 +61,30 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
nginx.virtualHosts.${config.services.nextcloud.hostName} = {
|
collabora-online = {
|
||||||
useACMEHost = "baduhai.dev";
|
enable = true;
|
||||||
forceSSL = true;
|
port = lib.strings.toInt config.ports.collabora;
|
||||||
kTLS = true;
|
settings.ssl = {
|
||||||
|
enable = false;
|
||||||
|
termination = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
nginx.virtualHosts = {
|
||||||
|
${config.services.nextcloud.hostName} = {
|
||||||
|
useACMEHost = "baduhai.dev";
|
||||||
|
forceSSL = true;
|
||||||
|
kTLS = true;
|
||||||
|
};
|
||||||
|
"office.baduhai.dev" = {
|
||||||
|
useACMEHost = "baduhai.dev";
|
||||||
|
forceSSL = true;
|
||||||
|
kTLS = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyPass = "http://127.0.0.1:${config.ports.collabora}";
|
||||||
|
proxyWebsockets = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue