2023-02-17 23:54:17 +01:00
|
|
|
APP_NAME = Forgejo: Beyond coding. We forge.
|
2019-11-02 19:28:50 +01:00
|
|
|
RUN_MODE = prod
|
|
|
|
RUN_USER = git
|
2023-09-13 22:33:47 +02:00
|
|
|
WORK_PATH = /data/gitea
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[repository]
|
2023-09-13 22:33:47 +02:00
|
|
|
ROOT = /data/git/repositories
|
|
|
|
DEFAULT_PRIVATE = true
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[repository.local]
|
|
|
|
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo
|
|
|
|
|
|
|
|
[repository.upload]
|
|
|
|
TEMP_PATH = /data/gitea/uploads
|
|
|
|
|
|
|
|
[server]
|
2023-09-13 22:33:47 +02:00
|
|
|
APP_DATA_PATH = /data/gitea
|
|
|
|
DOMAIN = git.${BASE_DOMAIN}
|
|
|
|
SSH_DOMAIN = git.${BASE_DOMAIN}
|
|
|
|
HTTP_PORT = 3000
|
|
|
|
ROOT_URL = https://git.${BASE_DOMAIN}/
|
|
|
|
DISABLE_SSH = false
|
|
|
|
SSH_PORT = ${FORGEJO_SSH_PORT}
|
2023-09-20 00:30:04 +02:00
|
|
|
SSH_LISTEN_PORT = 23
|
2019-11-02 19:28:50 +01:00
|
|
|
LFS_START_SERVER = true
|
2023-09-13 22:33:47 +02:00
|
|
|
LFS_JWT_SECRET = ${FORGEJO_LFS_JWT_SECTRET}
|
|
|
|
OFFLINE_MODE = false
|
2023-09-20 00:30:04 +02:00
|
|
|
START_SSH_SERVER = true
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[database]
|
2023-09-13 22:33:47 +02:00
|
|
|
DB_TYPE = postgres
|
|
|
|
HOST = pg-forgejo
|
|
|
|
NAME = forgejo
|
|
|
|
USER = forgejo
|
|
|
|
PASSWD = ${FORGEJO_PG_PWD}
|
|
|
|
LOG_SQL = false
|
|
|
|
SCHEMA =
|
2019-11-02 19:28:50 +01:00
|
|
|
SSL_MODE = disable
|
|
|
|
|
|
|
|
[indexer]
|
|
|
|
ISSUE_INDEXER_PATH = /data/gitea/indexers/issues.bleve
|
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER_CONFIG = /data/gitea/sessions
|
2023-09-13 22:33:47 +02:00
|
|
|
PROVIDER = file
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[picture]
|
2023-09-13 22:33:47 +02:00
|
|
|
AVATAR_UPLOAD_PATH = /data/gitea/avatars
|
2019-11-02 19:28:50 +01:00
|
|
|
REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
|
|
|
|
|
|
|
|
[attachment]
|
|
|
|
PATH = /data/gitea/attachments
|
|
|
|
|
|
|
|
[log]
|
2023-09-20 00:30:04 +02:00
|
|
|
MODE = console,file
|
2023-09-13 22:33:47 +02:00
|
|
|
LEVEL = info
|
2023-02-17 23:54:17 +01:00
|
|
|
ROOT_PATH = /data/gitea/log
|
2023-09-19 23:32:46 +02:00
|
|
|
ENABLE_SSH_LOG = true
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[security]
|
2023-09-13 22:33:47 +02:00
|
|
|
INSTALL_LOCK = ${FORGEJO_SETUP_LOCK}
|
|
|
|
SECRET_KEY = ${FORGEJO_SECRET_KEY}
|
|
|
|
REVERSE_PROXY_LIMIT = 1
|
2023-02-17 23:54:17 +01:00
|
|
|
REVERSE_PROXY_TRUSTED_PROXIES = *
|
2023-09-13 22:33:47 +02:00
|
|
|
INTERNAL_TOKEN = ${FORGEJO_INTERNAL_TOKEN}
|
|
|
|
PASSWORD_HASH_ALGO = pbkdf2_hi
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[service]
|
2023-09-13 22:33:47 +02:00
|
|
|
DISABLE_REGISTRATION = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
2023-12-16 20:40:43 +01:00
|
|
|
ENABLE_NOTIFY_MAIL = true
|
2023-09-13 22:33:47 +02:00
|
|
|
ALLOW_ONLY_EXTERNAL_REGISTRATION = true
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
DEFAULT_KEEP_EMAIL_PRIVATE = false
|
2019-11-02 19:28:50 +01:00
|
|
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
2023-09-13 22:33:47 +02:00
|
|
|
DEFAULT_ENABLE_TIMETRACKING = true
|
|
|
|
NO_REPLY_ADDRESS = noreply.localhost
|
2024-01-03 17:03:24 +01:00
|
|
|
DEFAULT_USER_IS_RESTRICTED = true
|
2022-10-23 19:53:43 +02:00
|
|
|
|
2023-09-13 22:33:47 +02:00
|
|
|
[service.explore]
|
|
|
|
DISABLE_USERS_PAGE = true
|
2023-02-17 23:54:17 +01:00
|
|
|
|
|
|
|
[lfs]
|
|
|
|
PATH = /data/git/lfs
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[mailer]
|
2023-09-13 22:33:47 +02:00
|
|
|
ENABLED = true
|
2023-02-17 23:54:17 +01:00
|
|
|
SMTP_ADDR = mail
|
|
|
|
SMTP_PORT = 25
|
2023-09-13 22:33:47 +02:00
|
|
|
FROM = ${FORGEJO_MAIL_FROM}@${BASE_DOMAIN}
|
2019-11-02 19:28:50 +01:00
|
|
|
|
|
|
|
[openid]
|
|
|
|
ENABLE_OPENID_SIGNIN = false
|
2023-09-13 22:33:47 +02:00
|
|
|
ENABLE_OPENID_SIGNUP = false
|
|
|
|
|
|
|
|
[cron.update_checker]
|
|
|
|
ENABLED = false
|
2023-02-17 23:54:17 +01:00
|
|
|
|
2024-01-03 17:03:24 +01:00
|
|
|
[repository]
|
|
|
|
DEFAULT_PRIVATE = private
|
|
|
|
DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls
|
|
|
|
|
2023-02-17 23:54:17 +01:00
|
|
|
[repository.pull-request]
|
|
|
|
DEFAULT_MERGE_STYLE = squash
|
|
|
|
|
|
|
|
[repository.signing]
|
|
|
|
DEFAULT_TRUST_MODEL = committer
|
2022-10-23 19:53:43 +02:00
|
|
|
|
2023-09-13 22:33:47 +02:00
|
|
|
[oauth2]
|
|
|
|
JWT_SECRET = ${FORGEJO_JWT_SECRET}
|
2023-02-18 15:25:31 +01:00
|
|
|
|
|
|
|
[webhook]
|
|
|
|
ALLOWED_HOST_LIST = *.${BASE_DOMAIN}
|