local dns test and chrony added

This commit is contained in:
2026-06-29 23:03:17 +03:00
parent e2e0e57918
commit 3ec5efb090
6 changed files with 53 additions and 14 deletions
+4 -3
View File
@@ -113,9 +113,10 @@ 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"
# ]; "192.168.1.1"
];
}; };
system = { system = {
+10
View File
@@ -0,0 +1,10 @@
{
config,
pkgs,
...
}:
{
services.chrony = {
enable = true;
};
}
+1
View File
@@ -7,6 +7,7 @@
../software/beets ../software/beets
./bentopdf.nix ./bentopdf.nix
./calibre-web.nix ./calibre-web.nix
./chrony.nix
./coredns.nix ./coredns.nix
./gitea.nix ./gitea.nix
./glances.nix ./glances.nix
+1 -1
View File
@@ -14,7 +14,7 @@
appName = "ZeroQ Gitea Service"; appName = "ZeroQ Gitea Service";
settings = { settings = {
server = { server = {
DOMAIN = "gitea.local"; DOMAIN = "git.home.arpa";
HTTP_PORT = 3000; HTTP_PORT = 3000;
}; };
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = true;
+33 -10
View File
@@ -29,6 +29,10 @@ in
addr = "192.168.1.20"; addr = "192.168.1.20";
port = 10000; port = 10000;
} }
{
addr = "127.0.0.1";
port = 10000;
}
]; ];
}; };
"office.home.arpa" = { "office.home.arpa" = {
@@ -51,6 +55,10 @@ in
addr = "192.168.1.20"; addr = "192.168.1.20";
port = 8446; port = 8446;
} }
{
addr = "127.0.0.1";
port = 10000;
}
]; ];
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
@@ -61,7 +69,7 @@ in
enableACME = true; enableACME = true;
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${server}:8446"; proxyPass = "http://127.0.0.1:8446";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -74,11 +82,11 @@ in
enableACME = true; enableACME = true;
locations = { locations = {
"/" = { "/" = {
proxyPass = "http://${server}:10000"; proxyPass = "http://127.0.0.1:10000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
"/whiteboard" = { "/whiteboard" = {
proxyPass = "http://${server}:3002"; proxyPass = "http://127.0.0.1:3002";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -90,7 +98,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:9000"; proxyPass = "http://127.0.0.1:9000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -101,7 +109,18 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:3000"; proxyPass = "http://127.0.0.1:3000";
proxyWebsockets = true;
};
extraConfig = ''
client_max_body_size 5G;
'';
};
"git.zeroq.su" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://127.0.0.1:3000";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -123,7 +142,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:4001"; proxyPass = "http://127.0.0.1:4001";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -131,7 +150,7 @@ in
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:6061"; proxyPass = "http://127.0.0.1:6061";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
@@ -139,7 +158,7 @@ in
addSSL = true; addSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:2283"; proxyPass = "http://127.0.0.1:2283";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -150,7 +169,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:8083"; proxyPass = "http://127.0.0.1:8083";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = '' extraConfig = ''
@@ -161,7 +180,7 @@ in
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://${server}:53"; proxyPass = "http://127.0.0.1:53";
}; };
extraConfig = '' extraConfig = ''
client_max_body_size 5G; client_max_body_size 5G;
@@ -187,6 +206,10 @@ in
addr = "192.168.1.20"; addr = "192.168.1.20";
port = 80; port = 80;
} }
{
addr = "127.0.0.1";
port = 80;
}
]; ];
}; };
}; };
+4
View File
@@ -31,6 +31,10 @@ in
dataSource = "${varDir}/db"; dataSource = "${varDir}/db";
}; };
authority = { authority = {
claims = {
defaultTLSCertDuration = "2160h";
maxTLSCertDuration = "2160h";
};
provisioners = [ provisioners = [
{ {
type = "ACME"; type = "ACME";