Luci collections add luci-lighttpd#6596
Conversation
This simplifies HTML but also make it smaller. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
The default /www/index.html is used to redirect to /cgi-bin/luci. Router manufactures often have their own admin panel. So they have to override the default index.html. Instead make a separate package. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Simplify dependencies Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
The luci depends on luci-light. The luci-light adds a dependency to uhttpd. But also it declares some set of apps. The luci package also adds one luci-app-opkg. This all is very confusing. So here a simplification: * the luci package now only declare a set of standard apps including the luci-app-opkg * the luci-light will only depend on the luci and add uhttpd. After the change the luci-light will also install luci-app-opkg. This also simplifies luci-nginx. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
Some firmwares like Turris and Gl.Inet use Lighttpd for Luci. The mod_alias is often used so we need to set luci alias paths. The lighttpd use own user but for Luci we need root user. That's why the server.username is overridden to empty. When removing the package it will be rolled back to use the default lighttpd user. But the log file was created with root. We should remove it manually to allow the lighttpd user to recreate it. We also need to enable CGI for the cgi-bin folder. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
|
I haven't looked into the whole thing in detail now. But while we are at it, that we want to run the LuCI on other web servers. Then we should have a package naming convention.
|
|
I agree with you and also thought about this. But here some thoughts that stopped me:
Basically there shouldn't be any luci-SOME_WEBSERVER packages. In ideal world the Luci should work out of the box with any webserver. The only difference is luci-lighttpd that adds a config file to Lighttpd. |
This is a problem of downstream. Regardless, they can build their own package that has
There we can use the PROVIDE:= feature of openwrt to set an alternative name so that we can still use
LuCI should work with any web server, but you need additional packages and configuration to make it work on them. That's why I think it's not bad if I can simply type |
If this can work then I probably can drop the commit with extracting of the luci-www. |
We don't have to delete it. We can move it with a postfix. |
|
Nice trick. That's just for me the luci-www seems more easier to implement (it's already), understand and use. |
The PR is based on #6591 so check only the last commit.
Turris Omnia and Gl.Inet use the Lighttpd webserver.
But for the Luci we need to add some configuration. In order to help users who also want to use the Lighttpd the new package luci-lighttpd would be helpful.
For the TurrisOS there is a task Add package luci-lighttpd