2024-08-31 09:58:22 +02:00
|
|
|
; WARNING: Don't edit this file. All change will be removed after each app upgrade
|
|
|
|
|
2023-09-09 11:17:52 +02:00
|
|
|
;https://github.com/go-gitea/gitea/blob/release/v1.20/custom/conf/app.example.ini
|
2018-02-25 21:45:24 +01:00
|
|
|
APP_NAME = Gitea
|
|
|
|
RUN_USER = __APP__
|
|
|
|
RUN_MODE = prod
|
2023-12-13 10:38:10 +01:00
|
|
|
WORK_PATH = __INSTALL_DIR__
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2023-03-30 15:20:13 +02:00
|
|
|
[actions]
|
2023-09-09 11:17:52 +02:00
|
|
|
ENABLED = false
|
2023-03-30 15:20:13 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[database]
|
|
|
|
DB_TYPE = mysql
|
|
|
|
HOST = 127.0.0.1:3306
|
2023-09-09 11:17:52 +02:00
|
|
|
NAME = __DB_NAME__
|
2018-02-25 21:45:24 +01:00
|
|
|
USER = __DB_USER__
|
2023-09-09 11:17:52 +02:00
|
|
|
PASSWD = __DB_PWD__
|
2018-02-25 21:45:24 +01:00
|
|
|
SSL_MODE = disable
|
2023-09-09 11:17:52 +02:00
|
|
|
LOG_SQL = false
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[repository]
|
2023-09-09 11:17:52 +02:00
|
|
|
ROOT = __DATA_DIR__/repositories
|
2018-02-25 21:45:24 +01:00
|
|
|
FORCE_PRIVATE = false
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[server]
|
2023-09-09 11:17:52 +02:00
|
|
|
DOMAIN = __DOMAIN__
|
|
|
|
HTTP_PORT = __PORT__
|
|
|
|
HTTP_ADDR = 127.0.0.1
|
|
|
|
ROOT_URL = https://__DOMAIN____PATH__
|
|
|
|
DISABLE_SSH = false
|
|
|
|
SSH_PORT = __SSH_PORT__
|
2018-02-25 21:45:24 +01:00
|
|
|
OFFLINE_MODE = false
|
2023-09-09 11:17:52 +02:00
|
|
|
APP_DATA_PATH = __DATA_DIR__/data
|
2018-02-25 21:45:24 +01:00
|
|
|
LANDING_PAGE = explore
|
2022-07-19 23:42:47 +02:00
|
|
|
LFS_START_SERVER = true
|
2023-09-09 11:17:52 +02:00
|
|
|
LFS_JWT_SECRET = __LFS_JWT_SECRET__
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[mailer]
|
|
|
|
ENABLED = true
|
2023-12-13 10:10:44 +01:00
|
|
|
SMTP_ADDR = localhost
|
2023-11-29 09:29:17 +01:00
|
|
|
SMTP_PORT = 587
|
2023-11-30 14:24:43 +01:00
|
|
|
PROTOCOL = smtp+starttls
|
2023-11-30 14:26:08 +01:00
|
|
|
FROM = "Gitea" <__APP__@__DOMAIN__>
|
2023-11-09 12:07:09 +01:00
|
|
|
USER = __APP__
|
|
|
|
PASSWD = __MAIL_PWD__
|
2023-11-24 18:33:18 +01:00
|
|
|
FORCE_TRUST_SERVER_CERT = true
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2023-11-29 14:52:09 +01:00
|
|
|
[email.incoming]
|
|
|
|
ENABLED = true
|
|
|
|
REPLY_TO_ADDRESS = __APP__+%{token}@__DOMAIN__
|
2024-02-06 00:59:40 +01:00
|
|
|
HOST = localhost
|
2023-11-29 14:52:09 +01:00
|
|
|
PORT = 993
|
|
|
|
USE_TLS = true
|
2024-02-06 00:59:40 +01:00
|
|
|
SKIP_TLS_VERIFY = true
|
2023-11-29 14:52:09 +01:00
|
|
|
USERNAME = __APP__
|
|
|
|
PASSWORD = __MAIL_PWD__
|
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[service]
|
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
2023-09-09 11:17:52 +02:00
|
|
|
ENABLE_NOTIFY_MAIL = true
|
|
|
|
DISABLE_REGISTRATION = true
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
2024-01-25 00:16:19 +01:00
|
|
|
# reverse proxy authentication disabled until https://github.com/go-gitea/gitea/pull/18452 is merged
|
|
|
|
# as it broke completely the LDAP sync
|
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[picture]
|
2023-09-09 11:17:52 +02:00
|
|
|
AVATAR_UPLOAD_PATH = __DATA_DIR__/data/avatars
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[attachment]
|
2023-09-09 11:17:52 +02:00
|
|
|
PATH = __DATA_DIR__/data/attachments
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[session]
|
|
|
|
PROVIDER = memory
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[log]
|
2023-09-09 11:17:52 +02:00
|
|
|
MODE = file
|
|
|
|
LEVEL = Info
|
2018-02-25 21:45:24 +01:00
|
|
|
ROOT_PATH = /var/log/__APP__
|
2023-09-09 11:17:52 +02:00
|
|
|
logger.access.MODE =
|
2023-11-13 16:01:31 +01:00
|
|
|
logger.router.MODE = router
|
|
|
|
logger.xorm.MODE = xorm
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2023-12-13 10:38:10 +01:00
|
|
|
REDIRECT_MACARON_LOG = true
|
|
|
|
MACARON = file
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2023-11-13 16:01:31 +01:00
|
|
|
[log.file]
|
|
|
|
FILE_NAME = gitea.log
|
2023-11-30 14:49:11 +01:00
|
|
|
LEVEL = Info
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2023-11-13 16:01:31 +01:00
|
|
|
[log.router]
|
2023-11-30 14:49:11 +01:00
|
|
|
MODE = file
|
2023-11-13 16:01:31 +01:00
|
|
|
FILE_NAME = router.log
|
|
|
|
LEVEL = Warn
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2023-11-13 16:01:31 +01:00
|
|
|
[log.xorm]
|
2023-11-30 14:49:11 +01:00
|
|
|
MODE = file
|
2023-11-13 16:01:31 +01:00
|
|
|
FILE_NAME = xorm.log
|
|
|
|
LEVEL = Warn
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[security]
|
|
|
|
INSTALL_LOCK = true
|
2023-09-09 11:17:52 +02:00
|
|
|
SECRET_KEY = __SECRET_KEY__
|
2022-05-28 20:12:56 +02:00
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE-USER
|
2023-09-09 11:17:52 +02:00
|
|
|
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
|
|
|
|
INTERNAL_TOKEN = __INTERNAL_TOKEN__
|
2023-12-13 10:38:10 +01:00
|
|
|
|
|
|
|
[oauth2]
|
|
|
|
JWT_SECRET = __JWT_SECRET__
|
2024-01-24 22:44:50 +01:00
|
|
|
|
|
|
|
[cron.sync_external_users]
|
|
|
|
ENABLED = true
|
|
|
|
RUN_AT_START = false
|