This commit is contained in:
2025-09-24 14:01:05 +03:00
parent 5c62823ae9
commit 9a95052e4c
4 changed files with 61 additions and 69 deletions
+2 -2
View File
@@ -8,8 +8,8 @@
# ./open-webui.nix # ./open-webui.nix
../software/beets ../software/beets
./calibre-web.nix ./calibre-web.nix
./memos.nix # ./memos.nix
#./trilium.nix # ./trilium.nix
./immich.nix ./immich.nix
./mealie.nix ./mealie.nix
./miniflux.nix ./miniflux.nix
+1 -5
View File
@@ -6,13 +6,9 @@
xlib, xlib,
... ...
}: }:
# let
# pkgsn = import inputs.nixpkgs-master { system = "x86_64-linux"; };
# in
{ {
services = { services = {
immich = { immich = {
#package = pkgsn.immich; # inputs.self.packages.x86_64-linux.immich;
enable = true; enable = true;
port = 2283; port = 2283;
host = "0.0.0.0"; host = "0.0.0.0";
@@ -37,7 +33,7 @@
}; };
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"z /mnt/immich 0755 immich immich -" # beets absolute paths "z /mnt/immich 0755 immich immich -"
]; ];
users.users.immich.extraGroups = [ users.users.immich.extraGroups = [
+5 -1
View File
@@ -4,8 +4,12 @@
}: }:
{ {
services.mealie = { services.mealie = {
enable = false; enable = true;
listenAddress = "0.0.0.0"; listenAddress = "0.0.0.0";
port = 9000; port = 9000;
database.createLocally = true;
settings = {
ALLOW_SIGNUP = "true";
};
}; };
} }
+53 -61
View File
@@ -16,64 +16,68 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
virtualHosts = { virtualHosts = {
"office.zeroq.ru" = { "zeroq.ru" = {
enableACME = true;
forceSSL = true; forceSSL = true;
kTLS = true;
locations."/" = {
proxyPass = "http://${server}:8080";
proxyWebsockets = true; # onlyoffice uses websockets
};
extraConfig = ''
client_max_body_size 5G;
absolute_redirect off;
'';
};
"collabora.zeroq.ru" = {
enableACME = true; enableACME = true;
forceSSL = true;
kTLS = true; kTLS = true;
locations."/" = { locations = {
proxyPass = "http://${server}:9980"; "/mealie" = {
proxyWebsockets = true; proxyPass = "http://${server}:9000";
}; proxyWebsockets = true;
#proxy_set_header X-Forwarded-Proto https; };
extraConfig = '' "/memos" = {
client_max_body_size 5G; proxyPass = "http://${server}:5230";
''; proxyWebsockets = true;
}; };
"memos.zeroq.ru" = { "/trilium" = {
enableACME = true; proxyPass = "http://${server}:11000";
forceSSL = true; proxyWebsockets = true;
kTLS = true; };
locations."/" = { "/flux" = {
proxyPass = "http://${server}:5230"; proxyPass = "http://${server}:6061";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' "/calibre" = {
client_max_body_size 5G; proxyPass = "http://${server}:8083";
''; proxyWebsockets = true;
}; };
"trilium.zeroq.ru" = { "/pdf" = {
enableACME = true; proxyPass = "http://${server}:6060";
forceSSL = true; proxyWebsockets = true;
kTLS = true; };
locations."/" = { "/immich" = {
proxyPass = "http://${server}:11000"; proxyPass = "http://${server}:2283";
proxyWebsockets = true; proxyWebsockets = true;
};
"/nextcloud" = {
proxyPass = "http://${server}:10000";
proxyWebsockets = true;
};
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
''; '';
}; };
# "office.zeroq.ru" = {
# enableACME = true;
# forceSSL = true;
# kTLS = true;
# locations."/" = {
# proxyPass = "http://${server}:8080";
# proxyWebsockets = true;
# };
# extraConfig = ''
# client_max_body_size 5G;
# absolute_redirect off;
# '';
# };
"immich.zeroq.ru" = { "immich.zeroq.ru" = {
# 31.57.105.253
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
kTLS = true; kTLS = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:2283"; # Порт Immich proxyPass = "http://${server}:2283";
proxyWebsockets = true; # Если Immich использует WebSockets proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
@@ -84,19 +88,7 @@ in
enableACME = true; enableACME = true;
kTLS = true; kTLS = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:10000"; # Порт Nextcloud proxyPass = "http://${server}:10000";
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
"flux.zeroq.ru" = {
forceSSL = true;
enableACME = true;
kTLS = true;
locations."/" = {
proxyPass = "http://${server}:6061"; # Порт Nextcloud
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -108,7 +100,7 @@ in
enableACME = true; enableACME = true;
kTLS = true; kTLS = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:8083"; # Порт Nextcloud proxyPass = "http://${server}:8083";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -120,7 +112,7 @@ in
enableACME = true; enableACME = true;
kTLS = true; kTLS = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:6060"; # Порт Nextcloud proxyPass = "http://${server}:6060";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -131,7 +123,7 @@ in
# addSSL = true; # addSSL = true;
# enableACME = true; # enableACME = true;
# locations."/" = { # locations."/" = {
# proxyPass = "http://atoridu.laxta-platy.ts.net:11111"; # Порт Open WebUI # proxyPass = "http://atoridu.laxta-platy.ts.net:11111";
# proxyWebsockets = true; # proxyWebsockets = true;
# }; # };
# }; # };