Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
confserver: record username & email from HTTP headers in commits
To use this feature with uwsgi (typical prod or docker-compose environment), add a reverse proxy that defines headers for username and/or e-mail address, and set the following environment variables to the name of these headers. For example: ``` CURIECONF_TRUSTED_USERNAME_HEADER=X-Forwarded-User CURIECONF_TRUSTED_EMAIL_HEADER=X-Forwarded-Email ``` Working oauth2-proxy configuration (container to be added to docker-compose.yml): ``` oauth2: container_name: oauth2 hostname: oauth2 image: quay.io/oauth2-proxy/oauth2-proxy:v7.3.0 restart: always environment: - "OAUTH2_PROXY_PROVIDER=google" - "OAUTH2_PROXY_PROVIDER_DISPLAY_NAME=Test google.com provider" - "OAUTH2_PROXY_CLIENT_ID=(...use proper value....).apps.googleusercontent.com" - "OAUTH2_PROXY_CLIENT_SECRET=(...use proper value...)" - "OAUTH2_PROXY_REDIRECT_URL=https://accounts.google.com/o/oauth2/auth" - "OAUTH2_PROXY_REDIRECT_URL=http://localvm.com:4180/oauth2/callback" - "OAUTH2_PROXY_COOKIE_SECURE=false" - "OAUTH2_PROXY_COOKIE_SECRET=(...use proper value...)" - "OAUTH2_PROXY_EMAIL_DOMAINS=*" - "OAUTH2_PROXY_UPSTREAMS=http://uiserver:80" - "OAUTH2_PROXY_HTTP_ADDRESS=http://0.0.0.0:4180" networks: - confnet ports: - "4180:4180" ``` Signed-off-by: Xavier <[email protected]>
- Loading branch information