added onlyoffice to nextcloud
This commit is contained in:
parent
2de413ad7b
commit
a8cbb0bca1
1 changed files with 23 additions and 1 deletions
|
|
@ -1,6 +1,11 @@
|
||||||
{ pkgs, config, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
|
let
|
||||||
|
oo_domain = "onlyoffice.mc-fucker.cool";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
|
|
||||||
|
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "corefonts" ]; #allow a single package from unfree
|
||||||
|
|
||||||
services.postgresql = {
|
services.postgresql = {
|
||||||
ensureDatabases = [ "nextcloud" ];
|
ensureDatabases = [ "nextcloud" ];
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
|
|
@ -58,6 +63,23 @@
|
||||||
unixSocketPerm = 770;
|
unixSocketPerm = 770;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.onlyoffice = {
|
||||||
|
enable = true;
|
||||||
|
hostname = oo_domain;
|
||||||
|
};
|
||||||
|
|
||||||
|
services.nginx.virtualHosts."${oo_domain}" = {
|
||||||
|
forceSSL = true;
|
||||||
|
enableACME = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users = {
|
||||||
|
nginx = {
|
||||||
|
extraGroups = [ "onlyoffice" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
users.groups.redis.members = [ "nextcloud" ];
|
users.groups.redis.members = [ "nextcloud" ];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue