Gitea v1.21.1 中文文档CREATE DATABASE giteadb CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci'; 根据需要替换数据库名称。 5. 将数据库上的所有权限授予上述创建的数据库用户。 对于本地数据库: 1. GRANT ALL PRIVILEGES ON giteadb.* TO 'gitea'; 2. FLUSH PRIVILEGES; 对于远程数据库: ssl_key_file = '/path/to/postgresql.key' 5. ssl_min_protocol_version = 'TLSv1.2' 3. 根据 PostgreSQL 的要求,调整凭据的所有权和权限: 1. chown postgres:postgres /path/to/root.crt /path/to/postgresql.crt /path/to/postgresql.key 数据库客户端私钥 ~/.postgresql/root.crt : 用于验证服务器证书的CA证书链 注意:上述文件名在 PostgreSQL 中是硬编码的,无法更改。 7. 根据需要调整凭据、所有权和权限: 1. chown git:git ~/.postgresql/postgresql.crt ~/.postgresql/postgresql.key ~/.postgresql/root0 码力 | 303 页 | 3.88 MB | 1 年前3
共 1 条
- 1













