mirror of
https://github.com/kmein/niveum
synced 2026-03-16 18:21:07 +01:00
feat(nextcloud): enable onlyoffice
This commit is contained in:
2
secrets
2
secrets
Submodule secrets updated: 99320671a5...d9d7540399
@@ -16,6 +16,7 @@ in {
|
||||
./names.nix
|
||||
./nextcloud.nix
|
||||
./radio-news.nix
|
||||
./onlyoffice.nix
|
||||
./retiolum-map.nix
|
||||
./tarot.nix
|
||||
./tt-rss.nix
|
||||
|
||||
31
systems/makanek/onlyoffice.nix
Normal file
31
systems/makanek/onlyoffice.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
services.onlyoffice = {
|
||||
enable = true;
|
||||
port = 8111;
|
||||
hostname = "onlyoffice.kmein.de";
|
||||
jwtSecretFile = config.age.secrets.onlyoffice-key.path;
|
||||
};
|
||||
|
||||
age.secrets.onlyoffice-key = {
|
||||
file = ../../secrets/onlyoffice-jwt-key.age;
|
||||
owner = "onlyoffice";
|
||||
};
|
||||
|
||||
systemd.services.onlyoffice-docservice.serviceConfig.ExecStartPre = [
|
||||
# otherwise this leads to nginx
|
||||
# open() "/var/lib/onlyoffice/documentserver/App_Data/cache/files/data/conv_check_1138411943_docx/output.docx" failed (13: Permission denied)
|
||||
# and mysterious 403 errors
|
||||
(pkgs.writers.writeDash "make-reachable" ''
|
||||
chmod a+x /var/lib/onlyoffice/documentserver/
|
||||
'')
|
||||
];
|
||||
|
||||
services.nginx.virtualHosts.${config.services.onlyoffice.hostname} = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user