Files
shizhui_website/deploy/gitea-app.ini

61 lines
1.4 KiB
INI
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
; Gitea 配置 —— 自托管于 git.shizhui.xyz
; 数据库使用 SQLite轻量适合单人/小团队2G 内存服务器友好)
APP_NAME = ShiZhui Git
RUN_USER = git
RUN_MODE = prod
WORK_PATH = /var/lib/gitea
[server]
PROTOCOL = http
HTTP_ADDR = 127.0.0.1
HTTP_PORT = 3000
; 对外通过 Nginx 反代到 https://git.shizhui.xyz
DOMAIN = git.shizhui.xyz
ROOT_URL = https://git.shizhui.xyz/
SSH_DOMAIN = git.shizhui.xyz
; SSH 暂用 22 端口的系统 sshd 之外Gitea 内置 SSH 关闭,走 HTTPS 即可
DISABLE_SSH = false
SSH_PORT = 22
START_SSH_SERVER = false
LFS_START_SERVER = true
OFFLINE_MODE = true
[database]
DB_TYPE = sqlite3
PATH = /var/lib/gitea/data/gitea.db
LOG_SQL = false
[repository]
ROOT = /var/lib/gitea/data/gitea-repositories
DEFAULT_BRANCH = main
[security]
INSTALL_LOCK = true
; SECRET_KEY / INTERNAL_TOKEN 将在安装脚本中生成注入
[service]
; 关闭开放注册:仅管理员可创建用户(展示站点,维护人员受控)
DISABLE_REGISTRATION = true
REQUIRE_SIGNIN_VIEW = false
DEFAULT_KEEP_EMAIL_PRIVATE = true
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
ENABLE_NOTIFY_MAIL = false
[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false
[session]
PROVIDER = file
COOKIE_SECURE = true
[log]
MODE = console
LEVEL = info
ROOT_PATH = /var/lib/gitea/log
[actions]
; 启用 Gitea Actions用于自动构建部署
ENABLED = true