Question about WEBUI
Gunnar Mills
gmills at linux.vnet.ibm.com
Thu Aug 13 01:19:55 AEST 2020
On 8/12/2020 2:38 AM, 李 星星 wrote:
>
> Hi,
>
> I am stark and a newbee for openBMC development.
>
Welcome to OpenBMC!
> Our company are planning to develop a customized software to manage
> BMC for our template. I am trying to use openBMC as framework and I
> have set up all required environment.
>
> For now I have set up a system based on Ubantu 16.0.4 and download all
> packages. Then I successfully build an image based on Romulus and use
> qemu to start it. And I can open localhost:2443 to manage it. All the
> steps have been done as Github procedures.
>
> But as requirement we want to customize the WebUI and I try to do as
> Github. I put phosphor-webui in build directory.
>
I would really recommend you give https://github.com/openbmc/webui-vue a
look, it is a replacement for phosphor-webui.
webui-vue uses the Redfish API, is translatable, themeable, does not
suffer some the anti-patterns that exist in phosphor-webui today, and is
built on Vue.
> And use npm start it. My npm version is 6.14.7. But when I try to
> login into my image with special IP address. It failed and show
> cors-xml problem and server unreachable.
>
To run the GUI locally you need to recompile bmcweb with
BMCWEB_INSECURE_DISABLE_XSS_PREVENTION and
BMCWEB_INSECURE_DISABLE_CSRF_PREVENTION turned on.
These are insecure and should be used for development only.
https://github.com/openbmc/phosphor-webui#logging-in
> After that I find original code in
> /home/bmc/openbmc/build/tmp/work/all-openbmc-linux/phosphor-webui/1.0+gitAUTOINC+2e1eec80de-r1/git/,
> and I try to change its logo picture. But it did not work. Can you
> give some advices how to do that? I can’t find some useful tutorials.
>
>
Have you seen
https://github.com/openbmc/docs/blob/master/development/web-ui.md ?
- Gunnar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20200812/3e002722/attachment.htm>
More information about the openbmc
mailing list