Is it possible to run the Docker-based LHCI Server (patrickhulce/lhci-server) with basic auth enabled? #1007
-
Hello! I was browsing the documentation (https://github.com/GoogleChrome/lighthouse-ci/tree/main/docs/recipes/docker-server) and I didn't see an obvious way of configuring basic auth with the pre-built image. Is that something that users have to build a custom image for, or are there some sort of hidden/undocumented environment variables that might be used to configure this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You can use the "LCHI_" env variables. I'm doing it like this, with version: '3'
services:
lhserver:
image: patrickhulce/lhci-server:latest
environment:
LHCI_BASIC_AUTH__USERNAME: "..."
LHCI_BASIC_AUTH__PASSWORD: "..."
ports:
- '9001:9001'
volumes:
- lhci-data:/data
volumes:
lhci-data: You can see more context here for the env vars and this is where I got the compose file |
Beta Was this translation helpful? Give feedback.
You can use the "LCHI_" env variables. I'm doing it like this, with
docker-compose.yml
:You can see more context here for the env vars and this is where I got the compose file