I am new to Asuswrt-Merlin, my hobby is WebDev, I know the basic of linux, I am a RT-N10U owner and I want to be a part of this great community.
I want to make a more compact (in size and request) WebUI, maintaining the same UI/UX, without installing others HTTPd or apps.
For frontend that meas a more faster loading/render of the pages and for backend this will increase the size of /jffs directory.
My primary target is the /jffs directory, I want more that 1 mb free space, without deadline because it is a free time project.
I can interact with the generic HTTPd with usb stick attached :
#
mount -o bind /dir/to/usbstick /www
service restart_httpd
#
My questions are:
-Where in /jffs/scripts/ is best to add the commands to bind and restart the HTTPd?
-This tag <% nvram_dump("syscmd.log",""); %> is to read the output of the last command but is there something like <% nvram_exec("reboot"); %> for input?
-Where are the .cgi files stored and is there a way to disable/delete from HTTPd?
-Is there a way to add security headers like X-Frame-Options or CORS to the generic HTTPd?
Kind regards!
I want to make a more compact (in size and request) WebUI, maintaining the same UI/UX, without installing others HTTPd or apps.
For frontend that meas a more faster loading/render of the pages and for backend this will increase the size of /jffs directory.
My primary target is the /jffs directory, I want more that 1 mb free space, without deadline because it is a free time project.
I can interact with the generic HTTPd with usb stick attached :
#
mount -o bind /dir/to/usbstick /www
service restart_httpd
#
My questions are:
-Where in /jffs/scripts/ is best to add the commands to bind and restart the HTTPd?
-This tag <% nvram_dump("syscmd.log",""); %> is to read the output of the last command but is there something like <% nvram_exec("reboot"); %> for input?
-Where are the .cgi files stored and is there a way to disable/delete from HTTPd?
-Is there a way to add security headers like X-Frame-Options or CORS to the generic HTTPd?
Kind regards!