初始組態

如果您在 Docker 中執行 Gitea,請先閱讀安裝指南再來調整設定。

資料庫設定

Gitea 需要 MySQL、PostgreSQL、SQLite3、MSSQL、TiDB (MySQL 協定) 等其中一項。

留空則使用資料庫預設值("public")。
SQLite3 或 TiDB 資料庫的檔案路徑。
如果將 Gitea 註冊為服務執行,請輸入絕對路徑。

一般設定

您可以在此輸入您的公司名稱。
所有遠端 Git 儲存庫會儲存到此目錄。
以 Git LFS 儲存檔案時會被儲存在此目錄中。請留空以停用 LFS 功能。
The operating system username that Gitea runs as, it must have write access to the data paths. This value is auto-detected and cannot be changed here. To use a different user, restart Gitea under that account.
伺服器的域名或主機位置。
SSH 伺服器使用的埠號,留空以停用此設定。
Port number the Gitea web server will listen on.
用於 HTTP(S) Clone 和電子郵件通知的基本網址。
日誌檔將寫入此目錄。
定期連線到 gitea.io 檢查更新。

可選設定

電子郵件設定
Gitea 將會使用的電子信箱,直接輸入電子信箱或使用「"名稱" <email@example.com>」的格式。
伺服器和第三方服務設定
作為隱藏電子信箱使用者的域名。例如,如果隱藏的電子信箱域名設定為「noreply.example.org」,帳號「joe」將以「joe@noreply.example.org」的身分登錄到 Git 中。
Set the password hashing algorithm. Algorithms have differing requirements and strengths. The argon2 algorithm is rather secure but uses a lot of memory and may be inappropriate for small systems.
管理員帳戶設定

建立管理員帳戶是選用的。 第一個註冊的使用者將自動成為管理員。

這些配置選項將被寫入到: /etc/gitea/app.ini