Skip to content

Commit e337fbe

Browse files
author
pptfz
committed
更新gitea笔记
1 parent 5f4e9ad commit e337fbe

4 files changed

Lines changed: 56 additions & 5 deletions

File tree

docs/Linux/Linux服务/ldap/openldap/openldap备份恢复.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ rm -rf /bitnami/openldap/slapd.d/*
852852
slapadd -F /bitnami/openldap/slapd.d -n 0 -l config-backup.ldif
853853
```
854854

855-
855+
856856

857857
恢复成功后需要重启容器才能生效
858858

docs/Linux/devops/gitea/gitea安装.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,28 @@ gitea-db-1 mysql:8 "docker-entrypoint.s…" db About a m
253253

254254
gitea配置文件是 `gitea/gitea/conf/app.ini`
255255

256-
例如,手动关闭页面注册按钮,修改 `app.ini ` 文件中的`SHOW_REGISTRATION_BUTTON` 一项
256+
例如,手动关闭页面注册按钮,修改 `app.ini` 文件中的`DISABLE_REGISTRATION` 一项
257+
258+
```shell
259+
[service]
260+
DISABLE_REGISTRATION = true
261+
```
262+
263+
264+
265+
266+
267+
默认是允许注册的
268+
269+
![iShot_2025-09-26_11.40.24](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot_2025-09-26_11.40.24.png)
270+
271+
272+
273+
关闭注册后注册按钮就不见了
274+
275+
![iShot_2025-09-26_12.31.00](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot_2025-09-26_12.31.00.png)
276+
277+
257278

258279

259280

docs/Linux/devops/gitea/gitea集成ldap.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,39 @@ ldap认证类型有 [LDAP (via BindDN)](https://docs.gitea.cn/usage/authenticati
1616

1717

1818

19+
## 配置认证源
20+
1921
ldap via BindDN 配置页面
2022

2123
![iShot_2025-09-18_10.15.34](https://raw.githubusercontent.com/pptfz/picgo-images/master/img/iShot_2025-09-18_10.15.34.png)
2224

2325

2426

27+
更多详细配置可参考 [官方文档](https://docs.gitea.cn/usage/authentication#ldapvia-binddn)
28+
29+
30+
31+
绑定DN
32+
33+
```shell
34+
cn=admin,dc=ops,dc=com
35+
```
36+
37+
38+
39+
用户搜索基准
40+
41+
```shell
42+
ou=ou_name1,dc=ops,dc=com
43+
```
44+
45+
46+
47+
用户过滤规则
48+
49+
```shell
50+
(&(objectClass=posixAccount)(|(uid=%[1]s)(mail=%[1]s)))
51+
```
52+
53+
54+

docs/Linux/包管理工具/gvm/gvm安装.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55

66

7-
## 1.简介
7+
## 简介
88

99
gvm是一个go版本管理工具,可以很方便的切换当前系统使用的go的不同版本,以解决在不同开发环境下go版本和api等的依赖关系
1010

1111

1212

13-
## 2.安装
13+
## 安装
1414

1515
:::tip 说明
1616

@@ -212,7 +212,7 @@ Go Version Manager v1.0.22 installed at /Users/pptfz/.gvm
212212

213213

214214

215-
## 3.使用
215+
## 使用
216216

217217
列出所有已安装的go版本
218218

0 commit comments

Comments
 (0)