diff --git a/nixosModules/server/nginx.nix b/nixosModules/server/nginx.nix index eead24b..b26483a 100755 --- a/nixosModules/server/nginx.nix +++ b/nixosModules/server/nginx.nix @@ -27,6 +27,14 @@ } ]; }; + # "localhost:8890" = { + # listen = [ + # { + # addr = "127.0.0.1"; + # port = 8890; + # } + # ]; + # }; "localhost:8890" = { forceSSL = false; enableACME = false; diff --git a/nixosModules/vds/nginx.nix b/nixosModules/vds/nginx.nix index 4732bed..18e6f32 100755 --- a/nixosModules/vds/nginx.nix +++ b/nixosModules/vds/nginx.nix @@ -36,7 +36,7 @@ in proxyPass = "http://${server}:8890"; proxyWebsockets = true; # collabora uses websockets }; - # listen = [ + # listen = [ # { # addr = "0.0.0.0"; # port = 443; @@ -118,6 +118,17 @@ in # }; }; }; + caddy = { + enable = true; + virtualHosts = { + "collabora.zeroq.ru".extraConfig = '' + reverse_proxy http://100.64.0.0:8890 { + # Required to circumvent bug of Onlyoffice loading mixed non-https content + header_up X-Forwarded-Proto https + } + ''; + }; +}; }; security.acme = { acceptTerms = true;