20190614_jeffrey - silenceuncrio/diary GitHub Wiki
0910
繼續整理一下方便待會 commit
commit 9665f7ea97bc97e04c9f2575fab6a1431e9e71cc
Refs: [feature/lighttpd], {origin/feature/lighttpd}
Author: jeffrey <[email protected]>
Date: Fri Jun 14 09:45:03 2019 +0800
replace the iweb with lighttpd at icos web module
- use web_x509_lighttpd.sh instead of web_x509.sh
- the arg for openssl command options `-keyout` and `-out` are different for iweb
- iweb_key.pem for `-keyout`
- iweb_cert.pem for `-out`
- but the arg for openssl command options `-keyout` and `-out` are the same for lighttpd
- lighttpd.pem for `-keyout` and `-out`
- prepare the x509 certificate at RAM first then move it to the NANDFLASH
- use `-D` command option to tell lighttpd don't go to background
- or after ICOS_ProcLaunch(), proc_msg_cb will be a problem
- before launch the lighttpd, prepare the configuraion for it base on icos web configuraion
- keep the same 2 daemon control but only use the daemon with id DID_HTTPS
- one lighttpd process can serve HTTP and HTTPS at the same time
- keep the same 2 daemon control at icos module save the implementing time
proscend/prosrc/icos/icoslib/web/webcfg.c | 118 +++++++++++++++++++----
proscend/prosrc/icos/script/web_x509_lighttpd.sh | 5 +
2 files changed, 103 insertions(+), 20 deletions(-)
這些 commit information 都可以當作後續寫 wiki 的參考
0950
記得修改 Management > Web
commit b8ead2cd9dfb65d52b5026b0b725cb5001ba80a3
Refs: [feature/lighttpd]
Author: jeffrey <[email protected]>
Date: Fri Jun 14 09:50:16 2019 +0800
finish 'Management > Web'
web.cgi
- jweb.access.filter(ATTVAL_SYSTEM_LEVEL1, _config);
- jweb.access.filter(ATTVAL_SYSTEM_LEVEL2, _apply);
- jweb.access.filter(ATTVAL_SYSTEM_LEVEL1, _help);
proscend/prosrc/webcgi/web.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
再 build 一次完整的 image 來測試
1035
整理一下這禮拜做的
- M300
- solve the problem about the icos module zebra init fail
- change a way to display the signal image at top banner
- start a wiki for web ui training
- git flow feature publish for
feature/lighttpd
- ready for replace the iweb with lighttpd
- replace the iweb with lighttpd at icos web module
- M330
- change a way to display the signal image at top banner
1100
把開發過程的暫存檔案刪掉吧
commit 1761d605e9abbb7511bc13016cb5bd973283919c
Refs: [feature/lighttpd], {origin/feature/lighttpd}
Author: jeffrey <[email protected]>
Date: Fri Jun 14 11:00:51 2019 +0800
remove the files needed while implementing
.../home/factory/icos/lighttpd/lighttpd.conf | 113 ---------------------
.../rootfs/home/factory/icos/lighttpd/lighttpd.pem | 49 ---------
2 files changed, 162 deletions(-)
1315
利用 wiki 來整理一下這次換掉 iweb 的過程