mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-15 06:30:10 +03:00
123123
This commit is contained in:
@@ -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" ];
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user