GitLab
This guide configures a self-hosted GitLab instance to use Casdoor as the OIDC provider.
cẩn thận
As the GitLab docs state, GitLab only works with OpenID providers that use HTTPS, deploy Casdoor over HTTPS (e.g. behind an NGINX reverse proxy with SSL). Casdoor itself only listens on port 8000 by default via HTTP and has no HTTPS-related functionality.
The following are some of the names mentioned in the configuration:
CASDOOR_HOSTNAME: The domain name or IP where the Casdoor server is deployed, e.g., https://door.casbin.com.
GITLAB_HOSTNAME: The domain name or IP where GitLab is deployed, e.g., https://gitlab.com.
Step 1: Deploy Casdoor and GitLab
Deploy Casdoor and GitLab. After deployment, ensure:
- Casdoor can be logged into and used normally.
- Set Casdoor's
originvalue (conf/app.conf) toCASDOOR_HOSTNAME.