dosubot[bot] commented on issue #7915:
URL: 
https://github.com/apache/incubator-devlake/issues/7915#issuecomment-2295926672

   <!-- Greeting -->
   Hey @zhangshenghai! I'm here to help you with your question. I'm a bot 
designed to assist with bugs, questions, and contributions. Feel free to ask me 
anything while waiting for a human maintainer.
   
   <!-- Answer -->
   The error message indicates that the configuration is missing several 
required settings: `cookie-secret`, `client-id`, `client-secret`, and 
`email-domain`.
   
   To address these issues, you can use environment variables to override the 
default values for these settings. The relevant environment variables are:
   
   - `OAUTH2_PROXY_COOKIE_SECRET`
   - `OAUTH2_PROXY_CLIENT_ID`
   - `OAUTH2_PROXY_CLIENT_SECRET`
   - `OAUTH2_PROXY_EMAIL_DOMAINS`
   
   These variables can be set in the `authproxy` service section of the 
`docker-compose-dev.yml` file. Here is an example of how to set them:
   
   ```yml
   authproxy:
     image: quay.io/oauth2-proxy/oauth2-proxy:v7.4.0-amd64
     network_mode: "host"
     ports:
       - 4180:4180
     env_file:
       - ./.env
     environment:
       OAUTH2_PROXY_PROVIDER: oidc
       OAUTH2_PROXY_PROVIDER_DISPLAY_NAME: my provider
       OAUTH2_PROXY_COOKIE_SECRET: your_cookie_secret
       OAUTH2_PROXY_COOKIE_DOMAINS: localhost:4180
       OAUTH2_PROXY_COOKIE_SECURE: 'false'
       OAUTH2_PROXY_EMAIL_DOMAINS: your_email_domain
       OAUTH2_PROXY_OIDC_ISSUER_URL: your_issuer_url
       OAUTH2_PROXY_OIDC_JWKS_URL: your_jwks_url
       OAUTH2_PROXY_CLIENT_ID: your_client_id
       OAUTH2_PROXY_CLIENT_SECRET: your_client_secret
       OAUTH2_PROXY_UPSTREAMS: http://localhost:4000
       OAUTH2_PROXY_HTTP_ADDRESS: http://0.0.0.0:4180
       OAUTH2_PROXY_REVERSE_PROXY: 'true'
       OAUTH2_PROXY_SKIP_AUTH_ROUTES: ^/grafana.*
   ```
   
   Make sure to replace `your_cookie_secret`, `your_email_domain`, 
`your_issuer_url`, `your_jwks_url`, `your_client_id`, and `your_client_secret` 
with your actual configuration values 
<sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/docker-compose-dev.yml)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to