This commit is contained in:
2026-06-24 02:30:55 +03:00
parent ba7b36f16e
commit ee75c68ec3
7 changed files with 75 additions and 102 deletions
+3 -3
View File
@@ -113,9 +113,9 @@ let
hostName = "${xlib.device.hostname}"; hostName = "${xlib.device.hostname}";
networkmanager.enable = true; networkmanager.enable = true;
firewall.enable = false; firewall.enable = false;
nameservers = [ # nameservers = [
"127.0.0.1" # "127.0.0.1"
]; # ];
}; };
system = { system = {
+13
View File
@@ -77,6 +77,19 @@
MEYCIQD1coTa7hqU1PAdnamAIgq1ApadDWpWfNaXPGiLCrkxTwIhAJhj/YSzqTJR MEYCIQD1coTa7hqU1PAdnamAIgq1ApadDWpWfNaXPGiLCrkxTwIhAJhj/YSzqTJR
HvurdJ9m2glxV3rQHIUiVqKbQRcibObd HvurdJ9m2glxV3rQHIUiVqKbQRcibObd
-----END CERTIFICATE----- -----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
MIIBvjCCAWOgAwIBAgIRAMiJigRk8xbvHhCWN6a7D68wCgYIKoZIzj0EAwIwKDEO
MAwGA1UEChMFWmVyb1ExFjAUBgNVBAMTDVplcm9RIFJvb3QgQ0EwHhcNMjYwNjEz
MjI1NjA3WhcNMzYwNjEwMjI1NjA3WjAwMQ4wDAYDVQQKEwVaZXJvUTEeMBwGA1UE
AxMVWmVyb1EgSW50ZXJtZWRpYXRlIENBMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcD
QgAE2gUlKZ/z9kt5RrdYZHnGE1TVVegn+aDmGpZk5uvF04O9k/sfjD6QE7VtjwNH
ervZKu3iBXGRg92ba0k369VJpKNmMGQwDgYDVR0PAQH/BAQDAgEGMBIGA1UdEwEB
/wQIMAYBAf8CAQAwHQYDVR0OBBYEFCtYg4LEAHPIMrDPO7lrxKuFvw4PMB8GA1Ud
IwQYMBaAFH07/1blaqp0MVuSZIUHS9W3SjIrMAoGCCqGSM49BAMCA0kAMEYCIQD2
nNNHqs9/mIstOxetObgg8eqbrPWHXEVQ9CDucNFmQAIhANXAz2z1Rc7hxc6er23W
I8TU6UQc8dledPvalDJLyGym
-----END CERTIFICATE-----
'' ''
]; ];
}; };
+8 -2
View File
@@ -9,8 +9,14 @@
{ {
services.bentopdf = { services.bentopdf = {
enable = true; enable = true;
domain = "bentopdf.local"; domain = "pdf.home.arpa";
nginx.enable = true; nginx = {
enable = true;
# virtualHost = {
# forceSSL = true;
# enableACME = true;
# };
};
# package = pkgs-stable.bentopdf; # package = pkgs-stable.bentopdf;
}; };
} }
+9 -12
View File
@@ -9,19 +9,16 @@
config = '' config = ''
zeroq.su:53 { zeroq.su:53 {
hosts { hosts {
192.168.1.20 agent.zeroq.su
192.168.1.20 bentopdf.zeroq.su
192.168.1.20 calibre.zeroq.su
192.168.1.20 dns.zeroq.su
192.168.1.20 flux.zeroq.su
192.168.1.20 gitea.zeroq.su
192.168.1.20 health.zeroq.su
192.168.1.20 immich.zeroq.su
192.168.1.20 kuma.zeroq.su
192.168.1.20 n8n.zeroq.su
192.168.1.20 nextcloud.zeroq.su
192.168.1.20 office.zeroq.su
109.248.161.5 x.zeroq.su 109.248.161.5 x.zeroq.su
192.168.1.20 calibre.home.arpa
192.168.1.20 dns.home.arpa
192.168.1.20 flux.home.arpa
192.168.1.20 git.home.arpa
192.168.1.20 immich.home.arpa
192.168.1.20 kuma.home.arpa
192.168.1.20 nextcloud.home.arpa
192.168.1.20 office.home.arpa
192.168.1.20 pdf.home.arpa
fallthrough fallthrough
} }
cache 300 cache 300
+6 -6
View File
@@ -18,7 +18,7 @@ in
nextcloud-whiteboard-server = { nextcloud-whiteboard-server = {
enable = true; enable = true;
settings = { settings = {
NEXTCLOUD_URL = "http://nextcloud.private"; NEXTCLOUD_URL = "https://nextcloud.home.arpa";
}; };
secrets = [ config.sops.secrets.nextcloud-whiteboard-jwt.path ]; secrets = [ config.sops.secrets.nextcloud-whiteboard-jwt.path ];
}; };
@@ -47,22 +47,22 @@ in
"100.64.0.0" "100.64.0.0"
"192.168.1.20" "192.168.1.20"
"localhost" "localhost"
"nextcloud.local"
"nextcloud.private" "nextcloud.private"
"nextcloud.zeroq.su" "nextcloud.zeroq.su"
"office.local"
"office.zeroq.su" "office.zeroq.su"
"office.home.arpa"
"nextcloud.home.arpa"
]; ];
trusted_proxies = [ trusted_proxies = [
"100.64.1.0" "100.64.1.0"
"109.248.161.5" "109.248.161.5"
]; ];
overwriteprotocol = ""; # maybe no overwriteprotocol = "https"; # maybe no
}; };
extraAppsEnable = true; extraAppsEnable = true;
appstoreEnable = false; appstoreEnable = false;
notify_push = { notify_push = {
enable = false; enable = true;
bendDomainToLocalhost = true; bendDomainToLocalhost = true;
}; };
# phpPackage = pkgs.php85; # phpPackage = pkgs.php85;
@@ -137,7 +137,7 @@ in
# }; # };
onlyoffice = { onlyoffice = {
enable = true; enable = true;
hostname = "office.local"; hostname = "office.home.arpa";
port = 8090; port = 8090;
allowLocalConnections = true; allowLocalConnections = true;
wopi = true; wopi = true;
+35 -79
View File
@@ -31,11 +31,11 @@ in
} }
]; ];
}; };
"office.local" = { "office.home.arpa" = {
forceSSL = false; forceSSL = true;
enableACME = false; enableACME = true;
}; };
"bentopdf.local" = { "pdf.home.arpa" = {
forceSSL = false; forceSSL = false;
enableACME = false; enableACME = false;
listen = [ listen = [
@@ -56,9 +56,9 @@ in
client_max_body_size 5G; client_max_body_size 5G;
''; '';
}; };
"nextcloud.local" = { "nextcloud.home.arpa" = {
forceSSL = false; forceSSL = true;
enableACME = false; enableACME = true;
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${server}:10000"; proxyPass = "http://${server}:10000";
@@ -73,18 +73,7 @@ in
client_max_body_size 5G; client_max_body_size 5G;
''; '';
}; };
"gitea.zeroq.su" = { "ca.home.arpa" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://${server}:3000";
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
"ca.zeroq.su" = {
forceSSL = false; forceSSL = false;
enableACME = false; enableACME = false;
locations."/" = { locations."/" = {
@@ -95,9 +84,9 @@ in
client_max_body_size 5G; client_max_body_size 5G;
''; '';
}; };
"gitea.local" = { "git.home.arpa" = {
forceSSL = false; forceSSL = true;
enableACME = false; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:3000"; proxyPass = "http://${server}:3000";
proxyWebsockets = true; proxyWebsockets = true;
@@ -106,69 +95,36 @@ in
client_max_body_size 5G; client_max_body_size 5G;
''; '';
}; };
"nextcloud.zeroq.su" = { # "n8n.home.arpa" = {
forceSSL = false; # forceSSL = true;
enableACME = false; # enableACME = true;
locations = { # locations."/" = {
"/" = { # proxyPass = "http://${server}:5678";
proxyPass = "http://${server}:10000"; # proxyWebsockets = true;
proxyWebsockets = true; # };
}; # extraConfig = ''
"/whiteboard" = { # client_max_body_size 5G;
proxyPass = "http://${server}:3002"; # '';
proxyWebsockets = true; # };
}; "kuma.home.arpa" = {
}; forceSSL = true;
extraConfig = '' enableACME = true;
client_max_body_size 5G;
'';
};
"n8n.local" = {
forceSSL = false;
enableACME = false;
locations."/" = {
proxyPass = "http://${server}:5678";
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
"kuma.local" = {
forceSSL = false;
enableACME = false;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:4001"; proxyPass = "http://${server}:4001";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
"health.local" = { "flux.home.arpa" = {
forceSSL = false; addSSL = true;
enableACME = false; enableACME = true;
locations."/" = {
proxyPass = "http://${server}:19999";
proxyWebsockets = true;
};
};
"agent.local" = {
forceSSL = false;
enableACME = false;
locations."/" = {
proxyPass = "http://${server}:3000";
proxyWebsockets = true;
};
};
"flux.local" = {
forceSSL = false;
enableACME = false;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:6061"; proxyPass = "http://${server}:6061";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
"immich.local" = { "immich.home.arpa" = {
forceSSL = false; addSSL = true;
enableACME = false; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:2283"; proxyPass = "http://${server}:2283";
proxyWebsockets = true; proxyWebsockets = true;
@@ -177,9 +133,9 @@ in
client_max_body_size 5G; client_max_body_size 5G;
''; '';
}; };
"calibre.local" = { "calibre.home.arpa" = {
forceSSL = false; forceSSL = true;
enableACME = false; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:8083"; proxyPass = "http://${server}:8083";
proxyWebsockets = true; proxyWebsockets = true;
@@ -188,7 +144,7 @@ in
client_max_body_size 5G; client_max_body_size 5G;
''; '';
}; };
# "zeroq.local" = { # "zeroq.home.arpa" = {
# forceSSL = false; # forceSSL = false;
# enableACME = false; # enableACME = false;
# root = pkgs.writeTextDir "index.html" '' # root = pkgs.writeTextDir "index.html" ''
+1
View File
@@ -23,6 +23,7 @@ in
# address = "0.0.0.0:9000"; # address = "0.0.0.0:9000";
dnsNames = [ dnsNames = [
"*.zeroq.su" "*.zeroq.su"
"*.home.arpa"
"localhost" "localhost"
]; ];
db = { db = {