mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-11 04:30:41 +03:00
nice try
This commit is contained in:
@@ -74,7 +74,7 @@
|
|||||||
notify_push
|
notify_push
|
||||||
polls
|
polls
|
||||||
previewgenerator
|
previewgenerator
|
||||||
richdocuments
|
#richdocuments
|
||||||
spreed
|
spreed
|
||||||
tasks
|
tasks
|
||||||
user_oidc
|
user_oidc
|
||||||
@@ -108,24 +108,25 @@
|
|||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
onlyoffice = {
|
onlyoffice = {
|
||||||
enable = false;
|
enable = true;
|
||||||
hostname = "127.0.0.1";
|
hostname = "localhost";
|
||||||
|
port = 8890;
|
||||||
};
|
};
|
||||||
#rabbitmq.enable = false;
|
#rabbitmq.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.hosts = {
|
# networking.hosts = {
|
||||||
"127.0.0.1" = [
|
# "127.0.0.1" = [
|
||||||
"nextcloud.zeroq.ru"
|
# "nextcloud.zeroq.ru"
|
||||||
"office.zeroq.com"
|
# "office.zeroq.com"
|
||||||
"collabora.zeroq.ru"
|
# "collabora.zeroq.ru"
|
||||||
];
|
# ];
|
||||||
"::1" = [
|
# "::1" = [
|
||||||
"nextcloud.zeroq.ru"
|
# "nextcloud.zeroq.ru"
|
||||||
"collabora.zeroq.ru"
|
# "collabora.zeroq.ru"
|
||||||
"office.zeroq.com"
|
# "office.zeroq.com"
|
||||||
];
|
# ];
|
||||||
};
|
# };
|
||||||
|
|
||||||
# systemd.services.nextcloud-config-collabora =
|
# systemd.services.nextcloud-config-collabora =
|
||||||
# let
|
# let
|
||||||
|
|||||||
@@ -27,20 +27,20 @@
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
# "127.0.0.1" = {
|
"localhost:8890" = {
|
||||||
# forceSSL = false;
|
forceSSL = false;
|
||||||
# enableACME = false;
|
enableACME = false;
|
||||||
# listen = [
|
listen = [
|
||||||
# {
|
{
|
||||||
# addr = "100.64.0.0";
|
addr = "100.64.0.0";
|
||||||
# port = 8000;
|
port = 8890;
|
||||||
# }
|
}
|
||||||
# {
|
{
|
||||||
# addr = "192.168.1.20";
|
addr = "192.168.1.20";
|
||||||
# port = 8000;
|
port = 8890;
|
||||||
# }
|
}
|
||||||
# ];
|
];
|
||||||
# };
|
};
|
||||||
# "localhost:9980" = {
|
# "localhost:9980" = {
|
||||||
# forceSSL = false;
|
# forceSSL = false;
|
||||||
# enableACME = false;
|
# enableACME = false;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:8000";
|
proxyPass = "http://${server}:8890";
|
||||||
proxyWebsockets = true; # onlyoffice uses websockets
|
proxyWebsockets = true; # onlyoffice uses websockets
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
@@ -33,16 +33,16 @@ in
|
|||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
kTLS = true;
|
kTLS = true;
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://${server}:9980";
|
proxyPass = "http://${server}:8890";
|
||||||
proxyWebsockets = true; # collabora uses websockets
|
proxyWebsockets = true; # collabora uses websockets
|
||||||
};
|
};
|
||||||
listen = [
|
# listen = [
|
||||||
{
|
# {
|
||||||
addr = "0.0.0.0";
|
# addr = "0.0.0.0";
|
||||||
port = 443;
|
# port = 443;
|
||||||
ssl = true;
|
# ssl = true;
|
||||||
}
|
# }
|
||||||
];
|
# ];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
client_max_body_size 5G;
|
client_max_body_size 5G;
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user