 Gitea v1.21.1 中文文档TLS 对数据库连接进行加密,以防止第三方拦截流量数据。 您需要两个有效的 TLS 证书,一个用于数据库实例(数据库服务器),一个用于 Gitea 实例(数据库客户 端)。两个证书都必须由受信任的 CA 签名。 数据库证书必须在 X509v3 Extended Key Usage 扩展属性中包含 TLS Web Server Authentication ,而客户端证 书则需要在相应的属性中包含 /path/to/postgresql.key : 数据库实例私钥 /path/to/root.crt : 用于验证客户端证书的CA证书链 2. 在 postgresql.conf 中添加以下选项: 1. ssl = on 2. ssl_ca_file = '/path/to/root.crt' 3. ssl_cert_file = '/path/to/postgresql.crt' postgresql/postgresql.crt : 数据库客户端证书 ~/.postgresql/postgresql.key : 数据库客户端私钥 ~/.postgresql/root.crt : 用于验证服务器证书的CA证书链 注意:上述文件名在 PostgreSQL 中是硬编码的,无法更改。 7. 根据需要调整凭据、所有权和权限: 1. chown git:git ~/.postgresql/postgresql0 码力 | 303 页 | 3.88 MB | 1 年前3 Gitea v1.21.1 中文文档TLS 对数据库连接进行加密,以防止第三方拦截流量数据。 您需要两个有效的 TLS 证书,一个用于数据库实例(数据库服务器),一个用于 Gitea 实例(数据库客户 端)。两个证书都必须由受信任的 CA 签名。 数据库证书必须在 X509v3 Extended Key Usage 扩展属性中包含 TLS Web Server Authentication ,而客户端证 书则需要在相应的属性中包含 /path/to/postgresql.key : 数据库实例私钥 /path/to/root.crt : 用于验证客户端证书的CA证书链 2. 在 postgresql.conf 中添加以下选项: 1. ssl = on 2. ssl_ca_file = '/path/to/root.crt' 3. ssl_cert_file = '/path/to/postgresql.crt' postgresql/postgresql.crt : 数据库客户端证书 ~/.postgresql/postgresql.key : 数据库客户端私钥 ~/.postgresql/root.crt : 用于验证服务器证书的CA证书链 注意:上述文件名在 PostgreSQL 中是硬编码的,无法更改。 7. 根据需要调整凭据、所有权和权限: 1. chown git:git ~/.postgresql/postgresql0 码力 | 303 页 | 3.88 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. PREFACE BY SCOTT CHACON Welcome to the second edition of Pro Git. The first edition run git log in this project, you should get output that looks something like this: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon Pro Git 2nd Edition 2.1.413https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. PREFACE BY SCOTT CHACON Welcome to the second edition of Pro Git. The first edition run git log in this project, you should get output that looks something like this: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon- Date: Mon Mar 17 log entries displayed, such as using -2 to show only the last two entries. $ git log -p -2 commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon - Date: Mon Mar 17 0 码力 | 731 页 | 21.49 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413https://creativecommons.org/licenses/by-nc- sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 1 Preface by Scott Chacon Welcome to the second edition of Pro Git. The first edition run git log in this project, you should get output that looks something like this: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon Pro Git 2nd Edition 2.1.413https://creativecommons.org/licenses/by-nc- sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. 1 Preface by Scott Chacon Welcome to the second edition of Pro Git. The first edition run git log in this project, you should get output that looks something like this: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon- Date: Mon Mar 17 log entries displayed, such as using -2 to show only the last two entries. $ git log -p -2 commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon - Date: Mon Mar 17 0 码力 | 501 页 | 17.96 MB | 1 年前3
 Pro Git 2nd Edition 2.1.413 https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. PREFACE BY SCOTT CHACON Welcome to the second edition of Pro Git. The first edition run git log in this project, you should get output that looks something like this: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon Pro Git 2nd Edition 2.1.413 https://creativecommons.org/licenses/by-nc-sa/3.0 or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA. PREFACE BY SCOTT CHACON Welcome to the second edition of Pro Git. The first edition run git log in this project, you should get output that looks something like this: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon- Date: Mon Mar 17 log entries displayed, such as using -2 to show only the last two entries. $ git log -p -2 commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon - Date: Mon Mar 17 0 码力 | 691 页 | 13.35 MB | 1 年前3
 Pro Git 中文版 第2版 2.1.66https://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh 或者写信向 Creative Commons, PO Box 1866, Mountain View, CA 94042, USA 获取。 1 Scott Chacon 序 欢迎来到 Pro Git 第二版。 第一版出版到现在已经过去了四年。 到今天,Git 虽然出现了许多改变,但是还有很 多重要的事情一如昨日。 https://github.com/schacon/simplegit-progit 当你在此项目中运行 git log 命令时,可以看到下面的输出: 43 $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon Pro Git 中文版 第2版 2.1.66https://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh 或者写信向 Creative Commons, PO Box 1866, Mountain View, CA 94042, USA 获取。 1 Scott Chacon 序 欢迎来到 Pro Git 第二版。 第一版出版到现在已经过去了四年。 到今天,Git 虽然出现了许多改变,但是还有很 多重要的事情一如昨日。 https://github.com/schacon/simplegit-progit 当你在此项目中运行 git log 命令时,可以看到下面的输出: 43 $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon- Date: Mon Mar 17 --patch ,它会显示每次提交所引入的差异(按 补丁 的格式输出)。 你也可 以限制显示的日志条目数量,例如使用 -2 选项来只显示最近的两次提交: 44 $ git log -p -2 commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon - Date: Mon Mar 17 0 码力 | 501 页 | 19.30 MB | 1 年前3
 Pro Git 中文版 第2版 2.1.66https://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh 或 者 写 信 向 Creative Commons, PO Box 1866, Mountain View, CA 94042, USA 获取。 SCOTT CHACON 序 欢迎来到 Pro Git 第二版。 第一版出版到现在已经过去了四年。 到今天,Git 虽然出现了许多改变,但是还有很多重要的事情一如昨日。 clone https://github.com/schacon/simplegit-progit 当你在此项目中运行 git log 命令时,可以看到下面的输出: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon Pro Git 中文版 第2版 2.1.66https://creativecommons.org/licenses/by-nc-sa/3.0/deed.zh 或 者 写 信 向 Creative Commons, PO Box 1866, Mountain View, CA 94042, USA 获取。 SCOTT CHACON 序 欢迎来到 Pro Git 第二版。 第一版出版到现在已经过去了四年。 到今天,Git 虽然出现了许多改变,但是还有很多重要的事情一如昨日。 clone https://github.com/schacon/simplegit-progit 当你在此项目中运行 git log 命令时,可以看到下面的输出: $ git log commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon- Date: Mon Mar 17 --patch ,它会显示每次提交所引入的差异 (按 补丁 的格式输出)。 你也可以限制显示的日志条目数量,例如使用 -2 选项来只显示最近的两次提交: $ git log -p -2 commit ca82a6dff817ec66f44342007202690a93763949 Author: Scott Chacon - Date: Mon Mar 17 0 码力 | 670 页 | 13.59 MB | 1 年前3
 git 操作手册com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce- 3D645A26AB9FBD22.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 [gitlab_gitlab-ce-source] name=gitlab_gitlab-ce-source baseurl=h�ps://packages com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce- 3D645A26AB9FBD22.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 # yum install gitlab-ce -y #如果报gpg验证错误,可带上参数0 码力 | 35 页 | 1.69 MB | 1 年前3 git 操作手册com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce- 3D645A26AB9FBD22.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 [gitlab_gitlab-ce-source] name=gitlab_gitlab-ce-source baseurl=h�ps://packages com/gitlab/gitlab-ce/gpgkey/gitlab-gitlab-ce- 3D645A26AB9FBD22.pub.gpg sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt metadata_expire=300 # yum install gitlab-ce -y #如果报gpg验证错误,可带上参数0 码力 | 35 页 | 1.69 MB | 1 年前3
共 7 条
- 1














 
 