2024-10-24 06:09:42 +00:00
|
|
|
APP_NAME = {{ gitea_appname }}
|
2022-05-08 22:58:43 +00:00
|
|
|
RUN_USER = git
|
|
|
|
RUN_MODE = prod
|
2024-10-24 06:09:42 +00:00
|
|
|
WORK_PATH = /var/lib/gitea
|
2022-05-08 22:58:43 +00:00
|
|
|
|
|
|
|
[database]
|
|
|
|
DB_TYPE = postgres
|
|
|
|
HOST = {{ gitea_database_host }}
|
|
|
|
NAME = {{ gitea_database_name }}
|
|
|
|
USER = {{ gitea_database_user }}
|
|
|
|
PASSWD = {{ gitea_database_pass }}
|
|
|
|
SCHEMA =
|
2024-10-24 06:09:42 +00:00
|
|
|
SSL_MODE = {{ gitea_database_ssl|default('disabled') }}
|
|
|
|
CHARSET = utf8
|
|
|
|
LOG_SQL = false
|
2022-05-08 22:58:43 +00:00
|
|
|
|
|
|
|
[repository]
|
|
|
|
ROOT = /var/lib/gitea/data/repositories
|
|
|
|
DEFAULT_PRIVATE = public
|
|
|
|
DEFAULT_PUSH_CREATE_PRIVATE = false
|
|
|
|
ENABLE_PUSH_CREATE_USER = true
|
|
|
|
ENABLE_PUSH_CREATE_ORG = true
|
|
|
|
DEFAULT_BRANCH = main
|
2024-10-27 07:47:15 +00:00
|
|
|
{% if gitea_repo_default_units is defined %}
|
|
|
|
DEFAULT_REPO_UNITS = {{ gitea_repo_default_units }}
|
|
|
|
{% endif %}
|
2022-05-08 22:58:43 +00:00
|
|
|
|
|
|
|
[server]
|
2022-06-04 03:07:12 +00:00
|
|
|
SSH_DOMAIN = {{ gitea_basename }}
|
|
|
|
DOMAIN = {{ gitea_basename }}
|
2022-05-08 22:58:43 +00:00
|
|
|
HTTP_PORT = 3000
|
2022-06-04 03:07:12 +00:00
|
|
|
ROOT_URL = https://{{ gitea_basename }}/
|
2022-05-08 22:58:43 +00:00
|
|
|
DISABLE_SSH = false
|
2022-06-05 01:02:42 +00:00
|
|
|
SSH_PORT = 22220
|
2022-05-08 22:58:43 +00:00
|
|
|
LFS_START_SERVER = true
|
|
|
|
OFFLINE_MODE = false
|
|
|
|
LANDING_PAGE = explore
|
|
|
|
;PROTOCOL = unix
|
|
|
|
PROTOCOL = http
|
|
|
|
;HTTP_ADDR = /run/gitea/gitea.socket
|
|
|
|
APP_DATA_PATH = /var/lib/gitea/data
|
|
|
|
|
|
|
|
[mailer]
|
|
|
|
ENABLED = false
|
2024-10-24 06:09:42 +00:00
|
|
|
FROM = git@resf.org
|
2023-11-20 19:05:02 +00:00
|
|
|
PROTOCOL = sendmail
|
2022-05-08 22:58:43 +00:00
|
|
|
|
|
|
|
[service]
|
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
|
|
ENABLE_NOTIFY_MAIL = false
|
2023-01-04 01:50:06 +00:00
|
|
|
DISABLE_REGISTRATION = false
|
2022-05-08 22:58:43 +00:00
|
|
|
ALLOW_ONLY_EXTERNAL_REGISTRATION = false
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
|
|
|
DEFAULT_KEEP_EMAIL_PRIVATE = true
|
|
|
|
DEFAULT_ALLOW_CREATE_ORGANIZATION = true
|
|
|
|
DEFAULT_ENABLE_TIMETRACKING = true
|
|
|
|
NO_REPLY_ADDRESS = noreply@resf.org
|
|
|
|
DEFAULT_ORG_MEMBER_VISIBLE = true
|
|
|
|
|
|
|
|
[picture]
|
|
|
|
DISABLE_GRAVATAR = false
|
|
|
|
ENABLE_FEDERATED_AVATAR = true
|
2024-10-24 06:09:42 +00:00
|
|
|
GRAVATAR_SOURCE = https://seccdn.libravatar.org/avatar/
|
2022-05-08 22:58:43 +00:00
|
|
|
|
|
|
|
[openid]
|
|
|
|
ENABLE_OPENID_SIGNIN = false
|
|
|
|
ENABLE_OPENID_SIGNUP = false
|
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER = postgres
|
|
|
|
COOKIE_SECURE = true
|
|
|
|
COOKIE_NAME = RESF_cookie_TOKEN
|
|
|
|
|
|
|
|
[log]
|
|
|
|
MODE = console
|
|
|
|
LEVEL = info
|
|
|
|
ROOT_PATH = /var/lib/gitea/log
|
2023-11-20 19:05:02 +00:00
|
|
|
logger.router.MODE = console
|
2022-05-08 22:58:43 +00:00
|
|
|
|
|
|
|
[ui]
|
2024-10-24 06:09:42 +00:00
|
|
|
DEFAULT_THEME = {{ gitea_default_theme }}
|
|
|
|
THEMES = {{ gitea_themes }}
|
|
|
|
AUTHOR = {{ gitea_author }}
|
|
|
|
DESCRIPTION = {{ gitea_description }}
|
2022-05-08 22:58:43 +00:00
|
|
|
|
|
|
|
[admin]
|
|
|
|
DISABLE_REGULAR_ORG_CREATION = true
|
2022-10-25 23:26:39 +00:00
|
|
|
|
|
|
|
[cron.sync_external_users]
|
|
|
|
ENABLED = true
|
|
|
|
RUN_AT_START = true
|
|
|
|
SCHEDULE = @midnight
|
|
|
|
UPDATE_EXISTING = true
|
|
|
|
|
2023-11-20 18:57:25 +00:00
|
|
|
[cron.archive_cleanup]
|
|
|
|
ENABLED = true
|
|
|
|
RUN_AT_START = true
|
|
|
|
SCHEDULE = @midnight
|
|
|
|
OLDER_THAN = 168h
|
|
|
|
|
2023-11-20 19:07:42 +00:00
|
|
|
[cron.git_gc_repos]
|
|
|
|
ENABLED = true
|
|
|
|
RUN_AT_START = true
|
|
|
|
SCHEDULE = @every 72h
|
|
|
|
TIMEOUT = 120s
|
|
|
|
|
2023-11-20 19:18:33 +00:00
|
|
|
[cron.delete_repo_archives]
|
|
|
|
ENABLED = true
|
|
|
|
RUN_AT_START = true
|
|
|
|
NOTICE_ON_SUCCESS = false
|
|
|
|
SCHEDULE = 0 0 1 */6 *
|
|
|
|
|
2022-10-25 23:26:39 +00:00
|
|
|
[indexer]
|
|
|
|
REPO_INDEXER_ENABLED = true
|
2023-04-04 19:06:51 +00:00
|
|
|
|
|
|
|
[actions]
|
|
|
|
ENABLED = true
|
2024-09-23 20:35:54 +00:00
|
|
|
|
|
|
|
[packages]
|
2024-10-24 06:09:42 +00:00
|
|
|
ENABLED = {{ gitea_packages }}
|