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 = { onlyoffice = {
enable = true; enable = true;
hostname = "onlyoffice.local"; hostname = "office.zeroq.ru";
}; };
}; };
networking.hosts = { networking.hosts = {
"0.0.0.0" = [ "0.0.0.0" = [
"onlyoffice.local" "office.zeroq.ru"
]; ];
# "127.0.0.1" = [ # "127.0.0.1" = [
# "nextcloud.zeroq.ru" # "nextcloud.zeroq.ru"
+20 -20
View File
@@ -41,26 +41,26 @@
# } # }
# ]; # ];
# }; # };
"onlyoffice.local" = { # "onlyoffice.local" = {
forceSSL = false; # forceSSL = false;
enableACME = false; # enableACME = false;
listen = [ # listen = [
{ # {
addr = "100.64.0.0"; # addr = "100.64.0.0";
port = 8001; # port = 8001;
} # }
{ # {
addr = "192.168.1.20"; # addr = "192.168.1.20";
port = 8001; # port = 8001;
} # }
]; # ];
extraConfig = '' # extraConfig = ''
# Force nginx to return relative redirects. This lets the browser # # Force nginx to return relative redirects. This lets the browser
# figure out the full URL. This ends up working better because it's in # # 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. # # front of the reverse proxy and has the right protocol, hostname & port.
absolute_redirect off; # absolute_redirect off;
''; # '';
}; # };
# "localhost:9980" = { # "localhost:9980" = {
# forceSSL = false; # forceSSL = false;
# enableACME = false; # enableACME = false;
+2 -1
View File
@@ -33,11 +33,12 @@ in
forceSSL = true; forceSSL = true;
kTLS = true; kTLS = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:8001"; proxyPass = "http://${server}:8000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
absolute_redirect off;
''; '';
}; };
"immich.zeroq.ru" = { "immich.zeroq.ru" = {