APP_NAME = Gitea: Git with a cup of tea
RUN_USER = git
RUN_MODE = prod
WORK_PATH = /usr/local/bin

[nacos]
SERVER = 127.0.0.1
PORT = 8848
WEIGHT = 10

[oauth2]
JWT_SECRET = pyD-ZA6zwykBhVCWdF5FsdRGDtM6kg16JLhcCu8uLPM

[security]
INTERNAL_TOKEN = eyDDbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1NzQyMzU3OTN9.w7RDQaNanZHdC2XIrr9kAntPIjhfkXXOiBnNTbEdqQ8
INSTALL_LOCK   = true
SECRET_KEY     = K4DDaucPzKQnTf7WQxKFIoFNtIlsWVacoN5Ss3VDypQBUes7Ncy96UU735sfGOar
REVERSE_PROXY_LIMIT = 1
REVERSE_PROXY_TRUSTED_PROXIES = *
PASSWORD_HASH_ALGO = pbkdf2

[database]
PATH = /data/gitea/gitea.db
DB_TYPE  = mysql
HOST     = 127.0.0.1:3306
NAME     = gitea_hat
USER     = root
PASSWD   = `123456`
MYSQL_CHARSET = utf8
SSL_MODE = disable
CONN_MAX_LIFE_TIME=180
MAX_IDLE_CONNS=5
MAX_OPEN_CONNS=200
LOG_SQL =false

[repository]
ROOT = /data/gitea-repositories
DEFAULT_BRANCH = master
DEFAULT_FORK_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages,repo.actions
DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages,repo.actions

[repository.local]
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo

[repository.upload]
TEMP_PATH = /data/gitea/uploads

[repository.pull-request]
DEFAULT_MERGE_STYLE = merge

[repository.signing]
DEFAULT_TRUST_MODEL = committer

[lfs]
PATH = /data/git/lfs

[server]
APP_DATA_PATH = /data/gitea
DOMAIN = 172.20.32.201
SSH_DOMAIN = 172.20.32.201
HTTP_PORT = 3000
ROOT_URL = http://172.20.32.201:10082/
DISABLE_SSH      = false
SSH_PORT         = 2022
SSH_LISTEN_PORT  = 22
LFS_START_SERVER = true
LFS_JWT_SECRET   = n2kib4qdArULO57JW0jD2Ygm3z1ehzI8Y4zVfbxouyY
OFFLINE_MODE     = false

[mailer]
ENABLED = false

[service]
REGISTER_EMAIL_CONFIRM            = false
ENABLE_NOTIFY_MAIL                = false
DISABLE_REGISTRATION              = true
ALLOW_ONLY_EXTERNAL_REGISTRATION  = false
ENABLE_CAPTCHA                    = false
REQUIRE_SIGNIN_VIEW               = false
DEFAULT_KEEP_EMAIL_PRIVATE        = false
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
DEFAULT_ENABLE_TIMETRACKING       = true
NO_REPLY_ADDRESS                  = noreply.example.org
SHOW_REGISTRATION_BUTTON          = false

[webhook]
ALLOWED_HOST_LIST = *

[indexer]
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve

[session]
PROVIDER_CONFIG = /data/gitea/sessions
PROVIDER = file

[picture]
DISABLE_GRAVATAR        = true
ENABLE_FEDERATED_AVATAR = false

[attachment]
PATH = /data/gitea/attachments

[openid]
ENABLE_OPENID_SIGNIN = true
ENABLE_OPENID_SIGNUP = true

[session]
PROVIDER = file

[log]
MODE      = file
LEVEL     = Trace
ROOT_PATH = /data/gitea/log
REDIRECT_MACARON_LOG = true
ENABLE_ACCESS_LOG = true

[api]
DEFAULT_PAGING_NUM = 200
MAX_RESPONSE_ITEMS = 200

[git]
PATH                         = 
DISABLE_DIFF_HIGHLIGHT       = false
MAX_GIT_DIFF_LINES           = 1000
MAX_GIT_DIFF_LINE_CHARACTERS = 5000
MAX_GIT_DIFF_FILES           = 100
GC_ARGS                      = 
EnableAutoGitWireProtocol    = true
COMMITS_RANGE_SIZE            = 50

; Operation timeout in seconds
[git.timeout]
DEFAULT = 1800
MIGRATE = 21600
MIRROR  = 1800
CLONE   = 1800
PULL    = 1800
GC      = 60

[cache]
ENABLED  = true
ADAPTER  = memory
INTERVAL = 60
HOST     =
ITEM_TTL = 16h

[cache.last_commit]
ENABLED       = true
ITEM_TTL      = 24h
COMMITS_COUNT = 1000

[migrations]
ALLOW_LOCALNETWORKS = true

#[cron.update_mirrors]
#SCHEDULE = @every 24h

[cron.delete_repo_archives]
ENABLED = true
RUN_AT_START = true
SCHEDULE = @every 72h
OLDER_THAN = 8h

[cron.update_checker]
ENABLED = false

[storage.repo-archive]
PATH = /data/repo-archive

[mirror]
ENABLED = true

[ssh.minimum_key_sizes]
RSA = 2048
