harlan-zw / unlighthouse

Scan your entire site with Google Lighthouse in 2 minutes (on average). Open source, fully configurable with minimal setup.
https://unlighthouse.dev
MIT License
3.65k stars 105 forks source link

Add support for LHCI basic auth #214

Closed tiagosv closed 1 month ago

tiagosv commented 1 month ago

Clear and concise description of the problem

I'm using a private LHCI and it has basic auth set up, which means I can't use the LHCI functionality offered by this app. It would be great to add two extra optional CLI/CI params for username and password.

Suggested solution

Add two new cli params:

cli.option('--lhci-user <lhci-user>', 'Basic auth username of your LHCI server.')
cli.option('--lhci-pass <lhci-pass>', 'Basic auth password of your LHCI server.')

Of course there's more changes needed, but this was to exemplify more clearly what I'm talking about.

Alternative

No response

Additional context

No response

harlan-zw commented 1 month ago

This should now be possible in v0.12.2 using --lhci-auth username:password