2023-01-06 10:12:01 +01:00
|
|
|
;https://codeberg.org/forgejo/forgejo/src/branch/forgejo/custom/conf/app.example.ini
|
|
|
|
APP_NAME = Forgejo
|
2023-01-05 14:48:22 +01:00
|
|
|
RUN_USER = __APP__
|
|
|
|
RUN_MODE = prod
|
|
|
|
|
|
|
|
[database]
|
2023-01-11 10:32:49 +01:00
|
|
|
DB_TYPE = postgres
|
|
|
|
HOST = 127.0.0.1:5432
|
|
|
|
NAME = __DB_NAME__
|
2023-01-05 14:48:22 +01:00
|
|
|
USER = __DB_USER__
|
2023-01-11 10:32:49 +01:00
|
|
|
PASSWD = __DB_PWD__
|
2023-01-05 14:48:22 +01:00
|
|
|
SSL_MODE = disable
|
|
|
|
LOG_SQL = false
|
|
|
|
|
|
|
|
[repository]
|
2023-01-11 10:32:49 +01:00
|
|
|
ROOT = __DATADIR__/repositories
|
2023-01-05 14:48:22 +01:00
|
|
|
FORCE_PRIVATE = false
|
|
|
|
|
|
|
|
[server]
|
|
|
|
DOMAIN = __DOMAIN__
|
|
|
|
HTTP_PORT = __PORT__
|
|
|
|
HTTP_ADDR = 127.0.0.1
|
|
|
|
ROOT_URL = https://__DOMAIN____PATH_URL__
|
|
|
|
DISABLE_SSH = false
|
|
|
|
SSH_PORT = __SSH_PORT__
|
|
|
|
OFFLINE_MODE = false
|
2023-01-11 10:32:49 +01:00
|
|
|
APP_DATA_PATH = __DATADIR__/data
|
2023-01-05 14:48:22 +01:00
|
|
|
LANDING_PAGE = explore
|
|
|
|
LFS_START_SERVER = true
|
|
|
|
LFS_JWT_SECRET = __LFS_KEY__
|
|
|
|
|
|
|
|
[mailer]
|
|
|
|
ENABLED = true
|
|
|
|
HOST = 127.0.0.1:25
|
2023-01-06 10:12:01 +01:00
|
|
|
FROM = "Forgejo" <forgejo-noreply@__DOMAIN__>
|
2023-01-05 14:48:22 +01:00
|
|
|
SKIP_VERIFY = true
|
|
|
|
|
|
|
|
[service]
|
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
|
|
ENABLE_NOTIFY_MAIL = true
|
|
|
|
DISABLE_REGISTRATION = true
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
2023-01-11 19:46:20 +01:00
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = true
|
2023-01-05 14:48:22 +01:00
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true
|
|
|
|
|
|
|
|
[picture]
|
2023-01-11 10:32:49 +01:00
|
|
|
AVATAR_UPLOAD_PATH = __DATADIR__/data/avatars
|
|
|
|
REPOSITORY_AVATAR_UPLOAD_PATH = __DATADIR__/data/repo-avatars
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[attachment]
|
2023-01-11 10:32:49 +01:00
|
|
|
PATH = __DATADIR__/attachments
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER = memory
|
|
|
|
|
|
|
|
[log]
|
|
|
|
MODE = file
|
|
|
|
LEVEL = Info
|
|
|
|
ROOT_PATH = /var/log/__APP__
|
|
|
|
|
2023-01-11 10:32:49 +01:00
|
|
|
REDIRECT_MACARON_LOG = true
|
|
|
|
MACARON = file
|
2023-01-05 14:48:22 +01:00
|
|
|
|
2023-01-11 10:32:49 +01:00
|
|
|
ROUTER_LOG_LEVEL = Warn
|
|
|
|
ROUTER = file
|
2023-01-05 14:48:22 +01:00
|
|
|
|
2023-01-11 10:32:49 +01:00
|
|
|
ENABLE_ACCESS_LOG = Warn
|
|
|
|
ACCESS = file
|
2023-01-05 14:48:22 +01:00
|
|
|
|
2023-01-11 10:32:49 +01:00
|
|
|
ENABLE_XORM_LOG = Warn
|
|
|
|
XORM = file
|
2023-01-05 14:48:22 +01:00
|
|
|
|
2023-01-06 11:57:21 +01:00
|
|
|
[log.file.default]
|
2023-01-06 12:12:44 +01:00
|
|
|
FILE_NAME = forgejo.log
|
2023-01-06 11:35:07 +01:00
|
|
|
|
2023-01-05 14:48:22 +01:00
|
|
|
[security]
|
|
|
|
INSTALL_LOCK = true
|
|
|
|
SECRET_KEY = __KEY__
|
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE-USER
|
|
|
|
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
|