2023-01-22 08:10:43 +01:00
|
|
|
; https://codeberg.org/forgejo/forgejo/src/branch/forgejo/custom/conf/app.example.ini
|
2023-01-06 10:12:01 +01:00
|
|
|
APP_NAME = Forgejo
|
2023-01-05 14:48:22 +01:00
|
|
|
RUN_USER = __APP__
|
|
|
|
RUN_MODE = prod
|
2023-08-08 17:16:42 +02:00
|
|
|
WORK_PATH = __INSTALL_DIR__
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[database]
|
2023-08-08 22:54:06 +02:00
|
|
|
DB_TYPE = postgres
|
|
|
|
HOST = 127.0.0.1:5432
|
|
|
|
NAME = __DB_NAME__
|
|
|
|
USER = __DB_USER__
|
|
|
|
PASSWD = __DB_PWD__
|
2023-01-05 14:48:22 +01:00
|
|
|
SSL_MODE = disable
|
2023-08-08 22:54:06 +02:00
|
|
|
LOG_SQL = false
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[repository]
|
2023-08-08 22:54:06 +02:00
|
|
|
ROOT = __DATA_DIR__/repositories
|
2023-01-05 14:48:22 +01:00
|
|
|
FORCE_PRIVATE = false
|
|
|
|
|
|
|
|
[server]
|
2023-08-08 22:54:06 +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__
|
|
|
|
OFFLINE_MODE = false
|
|
|
|
APP_DATA_PATH = __DATA_DIR__/data
|
|
|
|
LANDING_PAGE = explore
|
2023-01-05 14:48:22 +01:00
|
|
|
LFS_START_SERVER = true
|
2023-08-08 22:54:06 +02:00
|
|
|
LFS_JWT_SECRET = __LFS_JWT_SECRET__
|
|
|
|
LOCAL_ROOT_URL = http://127.0.0.1:__PORT__/
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[mailer]
|
2023-08-08 22:54:06 +02:00
|
|
|
ENABLED = true
|
|
|
|
SMTP_ADDR = localhost
|
|
|
|
SMTP_PORT = 25
|
|
|
|
FROM = "Forgejo" <forgejo-noreply@__DOMAIN__>
|
2023-08-08 17:16:42 +02:00
|
|
|
FORCE_TRUST_SERVER_CERT = true
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[service]
|
2023-08-08 22:54:06 +02:00
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
|
|
ENABLE_NOTIFY_MAIL = true
|
|
|
|
DISABLE_REGISTRATION = true
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = true
|
2023-01-05 14:48:22 +01:00
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true
|
2023-08-08 22:54:06 +02:00
|
|
|
ENABLE_REVERSE_PROXY_EMAIL = true
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[picture]
|
2023-08-08 22:54:06 +02:00
|
|
|
AVATAR_UPLOAD_PATH = __DATA_DIR__/data/avatars
|
2023-03-10 17:13:54 +01:00
|
|
|
REPOSITORY_AVATAR_UPLOAD_PATH = __DATA_DIR__/data/repo-avatars
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[attachment]
|
2023-03-10 17:13:54 +01:00
|
|
|
PATH = __DATA_DIR__/attachments
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER = memory
|
|
|
|
|
|
|
|
[log]
|
2023-08-08 22:54:06 +02:00
|
|
|
MODE = file
|
|
|
|
LEVEL = Info
|
|
|
|
ROOT_PATH = /var/log/__APP__
|
|
|
|
logger.access.MODE =
|
|
|
|
logger.router.MODE = router
|
|
|
|
logger.xorm.MODE = xorm
|
2023-08-08 17:16:42 +02:00
|
|
|
|
|
|
|
[log.file]
|
2023-01-06 12:12:44 +01:00
|
|
|
FILE_NAME = forgejo.log
|
2023-01-06 11:35:07 +01:00
|
|
|
|
2023-08-08 17:16:42 +02:00
|
|
|
[log.router]
|
2024-02-10 17:17:25 +01:00
|
|
|
MODE = file
|
2023-08-08 17:16:42 +02:00
|
|
|
FILE_NAME = router.log
|
2023-08-08 22:54:06 +02:00
|
|
|
LEVEL = Warn
|
2023-08-08 17:16:42 +02:00
|
|
|
|
|
|
|
[log.xorm]
|
2024-02-10 17:17:25 +01:00
|
|
|
MODE = file
|
2023-08-08 17:16:42 +02:00
|
|
|
FILE_NAME = xorm.log
|
2023-08-08 22:54:06 +02:00
|
|
|
LEVEL = Warn
|
2023-08-08 17:16:42 +02:00
|
|
|
|
2023-01-05 14:48:22 +01:00
|
|
|
[security]
|
2023-08-08 22:54:06 +02:00
|
|
|
INSTALL_LOCK = true
|
|
|
|
SECRET_KEY = __SECRET_KEY__
|
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE-USER
|
2023-03-15 14:47:35 +01:00
|
|
|
REVERSE_PROXY_AUTHENTICATION_EMAIL = EMAIL
|
2023-08-08 22:54:06 +02:00
|
|
|
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
|
|
|
|
INTERNAL_TOKEN = __INTERNAL_TOKEN__
|
|
|
|
|
|
|
|
[oauth2]
|
|
|
|
JWT_SECRET = __OAUTH2_JWT_SECRET__
|