Skip to content

Commit

Permalink
Onlyoffice
Browse files Browse the repository at this point in the history
  • Loading branch information
Toomoch committed Aug 16, 2024
1 parent 30eeb9e commit da37cbe
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 92 deletions.
144 changes: 55 additions & 89 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion system/modules/homelab/homeassistant-configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ http:
- 127.0.0.1

logger:
default: debug
logs:
custom_components.huawei_solar: debug
huawei_solar: debug
Expand Down
17 changes: 16 additions & 1 deletion system/modules/homelab/nextcloud.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ in
extraApps = with config.services.nextcloud.package.packages.apps; {
# List of apps we want to install and are already packaged in
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
inherit calendar contacts mail notes tasks memories previewgenerator;
inherit calendar contacts mail notes tasks memories previewgenerator onlyoffice;
};
settings = {
default_phone_region = "ES";
Expand Down Expand Up @@ -131,6 +131,21 @@ in
file_server
'';
};
virtualHosts."office.${vars.domain}".extraConfig = ''
reverse_proxy http://127.0.0.1:8000 {
# Required to circumvent bug of Onlyoffice loading mixed non-https content
header_up X-Forwarded-Proto https
}
'';
};
users.users.nginx = {
group = "nginx";
isSystemUser = true;
};
users.groups.nginx = { };
services.onlyoffice = {
enable = true;
hostname = "office.${vars.domain}";
};
};
}
2 changes: 1 addition & 1 deletion system/packages/caddy-plugins.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ caddy.override {
cp -r --reflink=auto . $out
'';

outputHash = "sha256-B1L5nIKVDhgv97tQcc/VwNp5catzVnZ0U7xA3AnvRY8=";
outputHash = "sha256-yhEU9qHMPpw2H8W0pQ5i4AiNLkvda1WIZvcRyiaJJPI=";
outputHashMode = "recursive";
};

Expand Down

0 comments on commit da37cbe

Please sign in to comment.