xoxys.gitea/templates/custom/conf/app.ini.j2

239 lines
6.6 KiB
Plaintext
Raw Normal View History

#jinja2: lstrip_blocks: True
2019-07-19 09:55:47 +02:00
{{ ansible_managed | comment }}
2018-12-08 22:21:48 +01:00
APP_NAME = Gitea: Git with a cup of tea
RUN_USER = {{ gitea_user }}
RUN_MODE = {{ gitea_run_mode }}
[repository]
2019-07-19 09:55:47 +02:00
ROOT = {{ gitea_data_dir }}/repos
SCRIPT_TYPE = bash
ANSI_CHARSET =
FORCE_PRIVATE = false
DEFAULT_PRIVATE = public
MAX_CREATION_LIMIT = -1
MIRROR_QUEUE_LENGTH = 1000
PULL_REQUEST_QUEUE_LENGTH = 1000
DISABLE_HTTP_GIT = false
PREFERRED_LICENSES = MIT License
ACCESS_CONTROL_ALLOW_ORIGIN =
USE_COMPAT_SSH_URI = false
DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH = false
2018-12-08 22:21:48 +01:00
[repository.editor]
LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
PREVIEWABLE_FILE_MODES = markdown
[repository.local]
LOCAL_COPY_PATH = tmp/local-repo
2019-07-19 09:55:47 +02:00
LOCAL_WIKI_PATH = tmp/local-wiki
2018-12-08 22:21:48 +01:00
[repository.upload]
ENABLED = true
TEMP_PATH = tmp/uploads
2019-07-19 09:55:47 +02:00
ALLOWED_TYPES =
2018-12-08 22:21:48 +01:00
FILE_MAX_SIZE = {{ gitea_repository_upload_max_filesize }}
MAX_FILES = {{ gitea_repository_upload_max_files }}
[repository.pull-request]
WORK_IN_PROGRESS_PREFIXES = WIP:,[WIP]
2019-07-19 09:55:47 +02:00
[repository.issue]
LOCK_REASONS = Too heated,Off-topic,Resolved,Spam
2018-12-08 22:21:48 +01:00
[ui]
2019-07-19 09:55:47 +02:00
EXPLORE_PAGING_NUM = 20
ISSUE_PAGING_NUM = 10
FEED_MAX_COMMIT_NUM = 5
MAX_DISPLAY_FILE_SIZE = 8388608
SHOW_USER_EMAIL = true
GRAPH_MAX_COMMIT_NUM = 100
CODE_COMMENT_LINES = 4
DEFAULT_THEME = gitea
DEFAULT_SHOW_FULL_NAME = false
2018-12-08 22:21:48 +01:00
[ui.admin]
USER_PAGING_NUM = 50
REPO_PAGING_NUM = 50
NOTICE_PAGING_NUM = 25
ORG_PAGING_NUM = 50
[ui.user]
REPO_PAGING_NUM = 15
2019-07-19 09:55:47 +02:00
[ui.meta]
AUTHOR = Gitea - Git with a cup of tea
DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go
KEYWORDS = go,git,self-hosted,gitea
2018-12-08 22:21:48 +01:00
[markdown]
ENABLE_HARD_LINE_BREAK = false
2019-07-19 09:55:47 +02:00
CUSTOM_URL_SCHEMES =
2018-12-08 22:21:48 +01:00
FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
[server]
2018-12-09 00:06:29 +01:00
PROTOCOL = {{ 'https' if gitea_tls_enabled else 'http' }}
DOMAIN = {{ gitea_listen_address | urlsplit('hostname') }}
ROOT_URL = {{ gitea_listen_address | urlsplit('scheme') }}://%(DOMAIN)s/
HTTP_ADDR = {{ gitea_bind_ip }}
2018-12-08 22:21:48 +01:00
HTTP_PORT = {{ gitea_bind_port }}
2019-07-19 09:55:47 +02:00
REDIRECT_OTHER_PORT = false
{% if gitea_tls_enabled %}
2019-07-19 09:55:47 +02:00
CERT_FILE = {{ gitea_tls_cert_path }}
KEY_FILE = {{ gitea_tls_key_path }}
{% endif %}
2018-12-08 22:21:48 +01:00
UNIX_SOCKET_PERMISSION = 666
LANDING_PAGE = {{ gitea_landing_page }}
START_SSH_SERVER = false
2019-07-19 09:55:47 +02:00
MINIMUM_KEY_SIZE_CHECK = true
OFFLINE_MODE = false
ENABLE_PPROF = false
2018-12-08 22:21:48 +01:00
[ssh.minimum_key_sizes]
ED25519 = 256
ECDSA = 256
RSA = 2048
[database]
{% if gitea_postgres_enabled %}
2019-07-19 09:55:47 +02:00
DB_TYPE = postgres
HOST = {{ gitea_postgres_server }}:{{ gitea_postgres_port }}
NAME = {{ gitea_postgres_db.name }}
USER = {{ gitea_postgres_user.name }}
PASSWD = {{ gitea_postgres_user.password }}
SSL_MODE = {{ gitea_postgres_ssl_mode }}
{% else %}
DB_TYPE = sqlite3
PATH = {{ gitea_data_dir }}/gitea.db
SQLITE_TIMEOUT = 500
{% endif %}
2019-07-19 09:55:47 +02:00
ITERATE_BUFFER_SIZE = 50
LOG_SQL = true
DB_RETRIES = 10
DB_RETRY_BACKOFF = 3s
2018-12-08 22:21:48 +01:00
[indexer]
2019-07-19 09:55:47 +02:00
ISSUE_INDEXER_TYPE = bleve
ISSUE_INDEXER_QUEUE_TYPE = levelqueue
ISSUE_INDEXER_PATH = {{ gitea_data_dir }}/indexers/issues.bleve
REPO_INDEXER_PATH = {{ gitea_data_dir }}/indexers/repos.bleve
ISSUE_INDEXER_QUEUE_DIR = {{ gitea_data_dir }}/issues.queue
REPO_INDEXER_ENABLED = true
[admin]
DISABLE_REGULAR_ORG_CREATION = false
2018-12-08 22:21:48 +01:00
[security]
2019-07-19 09:55:47 +02:00
INSTALL_LOCK = {{ gitea_install_lock }}
SECRET_KEY = {{ gitea_secret }}
LOGIN_REMEMBER_DAYS = 7
COOKIE_USERNAME = gitea_awesome
COOKIE_REMEMBER_NAME = gitea_incredible
INTERNAL_TOKEN = {{ gitea_token }}
MIN_PASSWORD_LENGTH = 8
DISABLE_GIT_HOOKS = false
2018-12-08 22:21:48 +01:00
[service]
DISABLE_REGISTRATION = {{ gitea_disable_registration }}
{% if gitea_mail_service_enabled %}
ENABLE_NOTIFY_MAIL = true
2019-07-19 09:55:47 +02:00
{% endif %}
2019-01-24 20:37:44 +01:00
ENABLE_USER_HEATMAP = true
2019-07-19 09:55:47 +02:00
ENABLE_CAPTCHA = false
ENABLE_TIMETRACKING = true
AUTO_WATCH_NEW_REPOS = false
DEFAULT_KEEP_EMAIL_PRIVATE = false
NO_REPLY_ADDRESS = "{{ gitea_no_reply_address }}"
2018-12-08 22:21:48 +01:00
2019-07-19 09:55:47 +02:00
{% if gitea_mail_service_enabled %}
2018-12-08 22:21:48 +01:00
[mailer]
ENABLED = true
2019-07-19 09:55:47 +02:00
SUBJECT = %(APP_NAME)s
2018-12-08 22:21:48 +01:00
FROM = {{ gitea_mail_service_from }}
2019-07-19 09:55:47 +02:00
MAILER_TYPE = sendmail
2018-12-08 22:21:48 +01:00
SENDMAIL_PATH = /usr/sbin/sendmail
2019-07-19 09:55:47 +02:00
SENDMAIL_ARGS =
2018-12-08 22:21:48 +01:00
{% else %}
[mailer]
ENABLED = false
{% endif %}
[picture]
AVATAR_UPLOAD_PATH = {{ gitea_data_dir }}/avatars
DISABLE_GRAVATAR = true
ENABLE_FEDERATED_AVATAR = false
2019-07-19 09:55:47 +02:00
[attachment]
ENABLE = true
PATH = {{ gitea_data_dir }}/attachments
ALLOWED_TYPES = */*
MAX_SIZE = {{ gitea_attachment_max_filesize }}
MAX_FILES = {{ gitea_attachment_max_files }}
2018-12-08 22:21:48 +01:00
[log]
2019-07-19 09:55:47 +02:00
ROOT_PATH = {{ gitea_global_log_dir }}
MODE = file
BUFFER_LEN = 10000
LEVEL = {{ gitea_global_log_level }}
REDIRECT_MACARON_LOG = false
2018-12-08 22:21:48 +01:00
[log.file]
LEVEL = {{ gitea_file_log_level }}
2019-07-19 17:55:11 +02:00
LOG_ROTATE = {{ gitea_file_log_rotate_enabled }}
2018-12-08 22:21:48 +01:00
MAX_LINES = 1000000
MAX_SIZE_SHIFT = 28
2019-07-19 17:55:11 +02:00
DAILY_ROTATE = {{ gitea_file_log_rotate_daily_enabled }}
2018-12-08 22:21:48 +01:00
MAX_DAYS = {{ gitea_file_log_rotate_max_days }}
[cron]
ENABLED = true
RUN_AT_START = false
[cron.update_mirrors]
SCHEDULE = @every 10m
[cron.repo_health_check]
SCHEDULE = @every 24h
TIMEOUT = 60s
[cron.check_repo_stats]
RUN_AT_START = true
SCHEDULE = @every 24h
[cron.archive_cleanup]
RUN_AT_START = true
SCHEDULE = @every 24h
OLDER_THAN = 24h
[cron.sync_external_users]
RUN_AT_START = true
SCHEDULE = @every 24h
UPDATE_EXISTING = true
2019-07-19 09:55:47 +02:00
[api]
ENABLE_SWAGGER = true
MAX_RESPONSE_ITEMS = 50
DEFAULT_PAGING_NUM = 30
DEFAULT_GIT_TREES_PER_PAGE = 1000
2018-12-08 22:21:48 +01:00
[other]
SHOW_FOOTER_BRANDING = false
SHOW_FOOTER_VERSION = false
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false
2019-01-24 20:37:44 +01:00
[metrics]
ENABLED = false
TOKEN =
2019-07-19 09:55:47 +02:00
{% if gitea_oauth_provider_enabled %}
[oauth2]
ENABLE = true
ACCESS_TOKEN_EXPIRATION_TIME = {{ gitea_access_token_expiration_time }}
REFRESH_TOKEN_EXPIRATION_TIME = {{ gitea_refresh_token_expiration_time }}
2019-07-19 17:55:11 +02:00
INVALIDATE_REFRESH_TOKENS = {{ gitea_invalidate_refresh_tokens }}
2019-07-19 09:55:47 +02:00
JWT_SECRET = {{ gitea_jwt_secret }}
{% else %}
[oauth2]
ENABLE = false
{% endif %}