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; [
awscli2
bat
darkhttpd
dnsutils
du-dust
entr
@ -61,6 +60,18 @@
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";