Redmine安装并配置Gitlab登录
date
May 12, 2023
slug
redmine
status
Published
tags
Gitlab
summary
Redmine的使用
type
Post
GitLab安装
GitLabRedmine安装
官网:https://www.redmine.org/ 本文采用的Redmine
5.0.5.stable
采用
docker-compose
安装,数据库采用postgres进入redmine容器,安装插件
安装完成后,重启Docker容器
浏览器打开 http://127.0.0.1:3000 访问页面,默认账号密码是admin/admin 初次登陆需要更改密码
找到 “管理” - “插件” 会看到 “Redmine Omniauth gitlab plugin” 点击“配置”
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F600558a4-2509-41d5-b898-a8cb2eca7d3c%2FUntitled.png?table=block&id=4342778e-53a8-4ff9-82b2-dd3f6616f020&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F83194847-2088-4055-9995-a6f881b0c61c%2FUntitled.png?table=block&id=376f106c-6d24-48c2-8b6a-328cd293f1e8&cache=v2)
Your Gitlab Website URL: GitLab服务的地址
Client ID: GitLab对应的appid
Client Secret: GitLab对应的Secret
Available domains:作用域
Oauth authentification: 开启oauth认证
我们用GitLab管理员账户登陆GitLab后,找到“applications”,点击新建,
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa0e1d5dd-fae1-4d1e-b6b6-8a8cde6f8e42%2FUntitled.png?table=block&id=7e607506-02e3-49c5-be06-7032eedec1ce&cache=v2)
Redirect URI填写redmine的地址 http://[ip]:[port]/oauth2callback
再次返回 redmine 即可看到gitlab登陆的图标
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fa5a43d3f-c3e1-4824-bbdd-1e436ef035ac%2FUntitled.png?table=block&id=84b259d1-5e63-4ded-9b58-07f64f2c4ea1&cache=v2)
点击登录,发现系统不存在用户的话,需要补全信息,然后提交审核(默认需要管理员激活账号才可以用),管理员可自行更改
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F4e4d1a12-ec9c-4a8a-bd09-f188102501c4%2FUntitled.png?table=block&id=6c0e2b68-75e7-410b-b403-0407d304badc&cache=v2)
更改自动激活
![notion image](https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F20855ff4-4012-4e7f-85fd-756a7493b9ff%2FUntitled.png?table=block&id=94252f18-f3fb-436d-bb9e-24347c3c003b&cache=v2)