Planned internal webserver?

I see this Add HTTP server and JSON API by DL6ER · Pull Request #659 · pi-hole/FTL · GitHub

Add HTTP server and JSON API

Not sure if this is a side project or to be merged into the main release.

And wanted to make everyone aware we use lighttpd for other projects at the same time. For me it runs a local webserver virtual radar and dump1090 If your going to add a internal webserver it needs to support being on another port and be compatible with lighttpd running at the same time.. Used to use apache but after installing pi hole lighttpd works much better and uses less memory on the pi. Please dont break everything. And btw it would be nice if pihole didn't keep erasing my lighttpd port configs on reinstalls.

I use lighttpd for things other than pi-hole as well. To maintain your custom port, you can use an external.conf file in the /etc/lighttpd folder. If your lighttpd version is new enough you can use the syntax:
replace : NAME := VALUE (replace/overwrite earlier value) (since 1.4.46),
like
server.port := 8080 to override the pi-hole supplied value from the lighttpd.conf.

1 Like

We'll have the port user configurable.

Please note the prominent warning in the lighttpd configuration file:

###############################################################################
#     FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE INSTALL/UPDATE PROCEDURE.     #
# ANY CHANGES MADE TO THIS FILE AFTER INSTALL WILL BE LOST ON THE NEXT UPDATE #
#                                                                             #
#              CHANGES SHOULD BE MADE IN A SEPARATE CONFIG FILE:              #
#                         /etc/lighttpd/external.conf                         #
###############################################################################

As another user pointed out, you can make a permanent and non-conflicting port change in file /etc/lighttpd/external.conf.

There is an existing feature request for our installer to be aware of existing lighttpd installs.