Skip to content

A docker image for making rancher and self-hosted gitlab oauth authentication work together.

Notifications You must be signed in to change notification settings

joy2fun/rancher-gitlab-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A docker image for making rancher and self-hosted gitlab oauth authentication work together.

Usage

docker run --name rancher-gitlab-proxy -d \
	-e GITLAB_URL=https://gitlab.domain.com/ \
	-e RANCHER_URL=https://rancher.domain.com/ \
	-p 8888:8888 \
	ghcr.io/joy2fun/rancher-gitlab-proxy:master

GitLab application settings

The Callback URI has to be https://rancher.domain.com/verify-auth

The Scope has to be read_api

Addtional gitlab.rb configuration

	nginx['custom_gitlab_server_config'] = "
	        # CONNECTION TO rancher-gitlab-proxy BEGIN
	        location /login/oauth/authorize {
	                proxy_pass http://rancher-gitlab-proxy-host:8888;
	        }
	        location /login/oauth/access_token {
	                proxy_pass http://rancher-gitlab-proxy-host:8888;
	        }
	        location /api/v3/user {
	                proxy_pass http://rancher-gitlab-proxy-host:8888;
	        }
	        location /api/v3/teams/ {
	                proxy_pass http://rancher-gitlab-proxy-host:8888;
	        }
	        location /api/v3/search/users {
	                proxy_pass http://rancher-gitlab-proxy-host:8888;
	        }
	        # CONNECTION TO rancher-gitlab-proxy END
	"

Links

rancher/rancher#1317

https://sandstorm.de/de/blog/post/making-rancher-2-and-gitlab-oauth-authentication-work-together.html

About

A docker image for making rancher and self-hosted gitlab oauth authentication work together.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages