122 lines
2.7 KiB
Django/Jinja
122 lines
2.7 KiB
Django/Jinja
APP_NAME = {{ gitea_appname }}
|
|
RUN_USER = git
|
|
RUN_MODE = prod
|
|
WORK_PATH = /var/lib/gitea
|
|
|
|
[database]
|
|
DB_TYPE = postgres
|
|
HOST = {{ gitea_database_host }}
|
|
NAME = {{ gitea_database_name }}
|
|
USER = {{ gitea_database_user }}
|
|
PASSWD = {{ gitea_database_pass }}
|
|
SCHEMA =
|
|
SSL_MODE = {{ gitea_database_ssl|default('disabled') }}
|
|
CHARSET = utf8
|
|
LOG_SQL = false
|
|
|
|
[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
|
|
{% if gitea_repo_default_units is defined %}
|
|
DEFAULT_REPO_UNITS = {{ gitea_repo_default_units }}
|
|
{% endif %}
|
|
|
|
[server]
|
|
SSH_DOMAIN = {{ gitea_basename }}
|
|
DOMAIN = {{ gitea_basename }}
|
|
HTTP_PORT = 3000
|
|
ROOT_URL = https://{{ gitea_basename }}/
|
|
DISABLE_SSH = false
|
|
SSH_PORT = 22220
|
|
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
|
|
FROM = git@resf.org
|
|
PROTOCOL = sendmail
|
|
|
|
[service]
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
ENABLE_NOTIFY_MAIL = false
|
|
DISABLE_REGISTRATION = false
|
|
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
|
|
GRAVATAR_SOURCE = https://seccdn.libravatar.org/avatar/
|
|
|
|
[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
|
|
logger.router.MODE = console
|
|
|
|
[ui]
|
|
DEFAULT_THEME = {{ gitea_default_theme }}
|
|
THEMES = {{ gitea_themes }}
|
|
AUTHOR = {{ gitea_author }}
|
|
DESCRIPTION = {{ gitea_description }}
|
|
|
|
[admin]
|
|
DISABLE_REGULAR_ORG_CREATION = true
|
|
|
|
[cron.sync_external_users]
|
|
ENABLED = true
|
|
RUN_AT_START = true
|
|
SCHEDULE = @midnight
|
|
UPDATE_EXISTING = true
|
|
|
|
[cron.archive_cleanup]
|
|
ENABLED = true
|
|
RUN_AT_START = true
|
|
SCHEDULE = @midnight
|
|
OLDER_THAN = 168h
|
|
|
|
[cron.git_gc_repos]
|
|
ENABLED = true
|
|
RUN_AT_START = true
|
|
SCHEDULE = @every 72h
|
|
TIMEOUT = 120s
|
|
|
|
[cron.delete_repo_archives]
|
|
ENABLED = true
|
|
RUN_AT_START = true
|
|
NOTICE_ON_SUCCESS = false
|
|
SCHEDULE = 0 0 1 */6 *
|
|
|
|
[indexer]
|
|
REPO_INDEXER_ENABLED = true
|
|
|
|
[actions]
|
|
ENABLED = true
|
|
|
|
[packages]
|
|
ENABLED = {{ gitea_packages }}
|