This commit is contained in:
2025-09-24 19:28:15 +03:00
parent 6a61c81a5f
commit ffc96d19a3
3 changed files with 43 additions and 24 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ in
nextcloud-whiteboard-server = { nextcloud-whiteboard-server = {
enable = true; enable = true;
settings = { settings = {
NEXTCLOUD_URL = "https://nextcloud.local"; NEXTCLOUD_URL = "http://nextcloud.local";
}; };
secrets = [ "${inputs.zeroq-credentials}/services/nextcloud/jwt-secret.txt" ]; secrets = [ "${inputs.zeroq-credentials}/services/nextcloud/jwt-secret.txt" ];
}; };
+28 -18
View File
@@ -26,10 +26,20 @@
port = 10000; port = 10000;
} }
]; ];
locations."/whiteboard" = { };
proxyPass = "http://localhost:3002"; "localhost:3002" = {
proxyWebsockets = true; forceSSL = false;
}; enableACME = false;
listen = [
{
addr = "100.64.0.0";
port = 3002;
}
{
addr = "192.168.1.20";
port = 3002;
}
];
}; };
# "trilium" = { # "trilium" = {
# forceSSL = false; # forceSSL = false;
@@ -45,20 +55,20 @@
# } # }
# ]; # ];
# }; # };
"office.zeroq.ru" = { # "office.zeroq.ru" = {
forceSSL = false; # forceSSL = false;
enableACME = false; # enableACME = false;
locations."/" = { # locations."/" = {
proxyPass = "http://onlyoffice.local:8000"; # proxyPass = "http://onlyoffice.local:8000";
proxyWebsockets = true; # proxyWebsockets = true;
}; # };
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;
''; # '';
}; # };
# "onlyoffice.local" = { # "onlyoffice.local" = {
# forceSSL = false; # forceSSL = false;
# enableACME = false; # enableACME = false;
+14 -5
View File
@@ -38,8 +38,7 @@ in
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
absolute_redirect off; ''; # absolute_redirect off;
'';
}; };
"immich.zeroq.ru" = { "immich.zeroq.ru" = {
forceSSL = true; forceSSL = true;
@@ -57,9 +56,19 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
kTLS = true; kTLS = true;
locations."/" = { locations = {
proxyPass = "http://${server}:10000"; "/" = {
proxyWebsockets = true; proxyPass = "http://${server}:10000";
proxyWebsockets = true;
};
"/whiteboard" = {
proxyPass = "http://${server}:3002";
proxyWebsockets = true;
};
"/onlyoffice" = {
proxyPass = "http://${server}:8000";
proxyWebsockets = true;
};
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;