diff --git a/nixosModules/server/nextcloud.nix b/nixosModules/server/nextcloud.nix index ceadbbf..b1dadca 100755 --- a/nixosModules/server/nextcloud.nix +++ b/nixosModules/server/nextcloud.nix @@ -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" diff --git a/nixosModules/server/nginx.nix b/nixosModules/server/nginx.nix index 1c6f1de..45755ec 100755 --- a/nixosModules/server/nginx.nix +++ b/nixosModules/server/nginx.nix @@ -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; diff --git a/nixosModules/vds/nginx.nix b/nixosModules/vds/nginx.nix index 049a45e..b280b73 100755 --- a/nixosModules/vds/nginx.nix +++ b/nixosModules/vds/nginx.nix @@ -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" = {