This commit is contained in:
2025-09-24 16:44:56 +03:00
parent 498207d986
commit 13b0d96d20
3 changed files with 24 additions and 23 deletions
+2 -2
View File
@@ -117,13 +117,13 @@ in
# };
onlyoffice = {
enable = true;
hostname = "onlyoffice.local";
hostname = "office.zeroq.ru";
};
};
networking.hosts = {
"0.0.0.0" = [
"onlyoffice.local"
"office.zeroq.ru"
];
# "127.0.0.1" = [
# "nextcloud.zeroq.ru"
+20 -20
View File
@@ -41,26 +41,26 @@
# }
# ];
# };
"onlyoffice.local" = {
forceSSL = false;
enableACME = false;
listen = [
{
addr = "100.64.0.0";
port = 8001;
}
{
addr = "192.168.1.20";
port = 8001;
}
];
extraConfig = ''
# Force nginx to return relative redirects. This lets the browser
# figure out the full URL. This ends up working better because it's in
# front of the reverse proxy and has the right protocol, hostname & port.
absolute_redirect off;
'';
};
# "onlyoffice.local" = {
# forceSSL = false;
# enableACME = false;
# listen = [
# {
# addr = "100.64.0.0";
# port = 8001;
# }
# {
# addr = "192.168.1.20";
# port = 8001;
# }
# ];
# extraConfig = ''
# # Force nginx to return relative redirects. This lets the browser
# # figure out the full URL. This ends up working better because it's in
# # front of the reverse proxy and has the right protocol, hostname & port.
# absolute_redirect off;
# '';
# };
# "localhost:9980" = {
# forceSSL = false;
# enableACME = false;
+2 -1
View File
@@ -33,11 +33,12 @@ in
forceSSL = true;
kTLS = true;
locations."/" = {
proxyPass = "http://${server}:8001";
proxyPass = "http://${server}:8000";
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
absolute_redirect off;
'';
};
"immich.zeroq.ru" = {