change default darkhttpd port

This commit is contained in:
Sean Buckley 2023-01-18 16:08:29 -05:00
parent 5293338dda
commit 1bca91dbda

View file

@ -7,7 +7,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
awscli2 awscli2
bat bat
darkhttpd
dnsutils dnsutils
du-dust du-dust
entr entr
@ -61,6 +60,18 @@
print(str(int(ln.split(' ')[-1])/(1024*1024*1024))[:5],'GB') print(str(int(ln.split(' ')[-1])/(1024*1024*1024))[:5],'GB')
'') '')
(darkhttpd.overrideAttrs (old: {
patches = [
(builtins.toFile "port.patch" ''
--- a/darkhttpd.c
+++ b/darkhttpd.c
@@ -291 +291 @@ static const char *bindaddr;
-static uint16_t bindport = 8080; /* or 80 if running as root */
+static uint16_t bindport = 8000; /* or 80 if running as root */
'')
];
}))
]; ];
environment.variables.HTOPRC = "/dev/null"; environment.variables.HTOPRC = "/dev/null";