2023-03-21 13:31:08 -04:00
|
|
|
#
|
|
|
|
# For information on the available settings, consult the online
|
|
|
|
# documentation, or see the accompanying file app.ini.defaults, which
|
|
|
|
# contains the settings incorporated into the gitea binary.
|
|
|
|
#
|
|
|
|
# This sample configuration runs Gitea with a local database. Before
|
|
|
|
# running this configuration, make sure to change the INTERNAL_TOKEN,
|
|
|
|
# JWT_SECRET, and SECRET_KEY variables. SECRET_KEY is a password of your
|
|
|
|
# choosing, INTERNAL_TOKEN is a 64-byte random number in BASE64 encoding,
|
|
|
|
# JWT_SECRET is a 32-byte random number in BASE64 encoding.
|
|
|
|
#
|
|
|
|
# You can generate the token using for example:
|
|
|
|
# openssl rand -base64 64
|
|
|
|
#
|
|
|
|
# You can let Gitea add these to the config for you; you need to make
|
|
|
|
# app.ini writeable by the git user.
|
|
|
|
#
|
|
|
|
# There are no pre-configured users; the first user to register becomes an
|
|
|
|
# admin. In this sample configuration, the HTTP server only listens on
|
|
|
|
# localhost.
|
|
|
|
#
|
|
|
|
# If you'd rather use the web-based installer, remove this conf/app.ini file
|
|
|
|
# and make /usr/local/etc/gitea/conf writeable to the git user.
|
|
|
|
|
2023-03-21 14:19:24 -04:00
|
|
|
APP_NAME = {{ gitea.app_name }}
|
|
|
|
RUN_USER = {{ gitea.run_user }}
|
|
|
|
RUN_MODE = {{ gitea.run_mode }}
|
2023-03-21 13:31:08 -04:00
|
|
|
|
|
|
|
[database]
|
2023-03-22 13:43:55 -04:00
|
|
|
DB_TYPE = {{ gitea.database.driver }}
|
|
|
|
HOST = {{ gitea.database.host }}
|
|
|
|
NAME = {{ gitea.database.name }}
|
|
|
|
USER = {{ gitea.database.user }}
|
|
|
|
PASSWD = {{ gitea.database.password }}
|
|
|
|
PATH = {{ gitea.database.path }}
|
|
|
|
SSL_MODE = {{ gitea.database.ssl }}
|
|
|
|
CHARSET = {{ gitea.database.charset }}
|
|
|
|
LOG_SQL = {{ gitea.database.log_sql }}
|
2023-03-21 13:31:08 -04:00
|
|
|
|
|
|
|
[indexer]
|
2023-03-22 13:43:55 -04:00
|
|
|
ISSUE_INDEXER_PATH = {{ gitea.app_data_path }}/indexers/issues.bleve
|
2023-03-21 13:31:08 -04:00
|
|
|
|
|
|
|
[log]
|
|
|
|
ROOT_PATH = /var/log/gitea
|
|
|
|
MODE = file
|
|
|
|
LEVEL = Info
|
|
|
|
|
|
|
|
[mailer]
|
|
|
|
ENABLED = false
|
|
|
|
|
|
|
|
[oauth2]
|
|
|
|
JWT_SECRET = D56bmu6xCtEKs9vKKgMKnsa4X9FDwo64HVyaS4fQ4mY
|
|
|
|
|
|
|
|
[picture]
|
2023-03-22 13:43:55 -04:00
|
|
|
AVATAR_UPLOAD_PATH = {{ gitea.app_data_path }}/data/avatars
|
2023-03-21 13:31:08 -04:00
|
|
|
DISABLE_GRAVATAR = false
|
|
|
|
ENABLE_FEDERATED_AVATAR = false
|
|
|
|
|
|
|
|
[repository]
|
2023-03-22 13:48:20 -04:00
|
|
|
ROOT = {{ gitea.app_data_path }}/gitea-repositories
|
2023-03-21 13:31:08 -04:00
|
|
|
# Gitea's default is 'bash', so if you have bash installed, you can comment
|
|
|
|
# this out.
|
|
|
|
SCRIPT_TYPE = sh
|
|
|
|
|
|
|
|
[repository.upload]
|
2023-03-22 13:43:55 -04:00
|
|
|
TEMP_PATH = {{ gitea.app_data_path }}/data/tmp/uploads
|
2023-03-21 13:31:08 -04:00
|
|
|
|
|
|
|
[security]
|
|
|
|
INSTALL_LOCK = true
|
|
|
|
INTERNAL_TOKEN = 1FFhAklka01JhgJTRUrFujWYiv4ijqcTIfXJ9o4n1fWxz+XVQdXhrqDTlsnD7fvz7gugdhgkx0FY2Lx6IBdPQw==
|
2023-03-22 13:43:55 -04:00
|
|
|
SECRET_KEY = {{ gitea.security.secret_key }}
|
2023-03-21 13:31:08 -04:00
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER = file
|
2023-03-22 13:43:55 -04:00
|
|
|
PROVIDER_CONFIG = {{ gitea.app_data_path }}/data/sessions
|
2023-03-21 13:31:08 -04:00
|
|
|
|
|
|
|
[server]
|
2023-03-21 14:19:24 -04:00
|
|
|
DOMAIN = {{ gitea.server.domain }}
|
|
|
|
HTTP_ADDR = {{ gitea.server.http_address }}
|
|
|
|
HTTP_PORT = {{ gitea.server.http_port }}
|
|
|
|
ROOT_URL = {{ gitea.server.app_url }}
|
|
|
|
DISABLE_SSH = {{ gitea.server.disable_ssh }}
|
|
|
|
SSH_DOMAIN = {{ gitea.server.ssh_domain }}
|
|
|
|
SSH_PORT = {{ gitea.server.ssh_port }}
|
|
|
|
OFFLINE_MODE = {{ gitea.server.offline_mode }}
|
2023-03-22 13:43:55 -04:00
|
|
|
APP_DATA_PATH = {{ gitea.app_data_path }}/data
|
2023-03-21 13:31:08 -04:00
|
|
|
|
|
|
|
[service]
|
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
|
|
ENABLE_NOTIFY_MAIL = false
|
|
|
|
DISABLE_REGISTRATION = false
|
|
|
|
ENABLE_CAPTCHA = true
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|