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
|
|
|
|
|
|
|
|
[database]
|
2023-01-22 08:10:43 +01: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
|
|
|
|
LOG_SQL = false
|
|
|
|
|
|
|
|
[repository]
|
2023-03-10 17:13:54 +01:00
|
|
|
ROOT = __DATA_DIR__/repositories
|
2023-01-05 14:48:22 +01:00
|
|
|
FORCE_PRIVATE = false
|
|
|
|
|
|
|
|
[server]
|
2023-01-22 08:10:43 +01:00
|
|
|
DOMAIN = __DOMAIN__
|
|
|
|
HTTP_PORT = __PORT__
|
|
|
|
HTTP_ADDR = 127.0.0.1
|
2023-03-10 17:13:54 +01:00
|
|
|
ROOT_URL = https://__DOMAIN____PATH__
|
2023-01-22 08:10:43 +01:00
|
|
|
DISABLE_SSH = false
|
|
|
|
SSH_PORT = __SSH_PORT__
|
|
|
|
OFFLINE_MODE = false
|
2023-03-10 17:13:54 +01:00
|
|
|
APP_DATA_PATH = __DATA_DIR__/data
|
2023-01-22 08:10:43 +01:00
|
|
|
LANDING_PAGE = explore
|
2023-01-05 14:48:22 +01:00
|
|
|
LFS_START_SERVER = true
|
2023-01-22 08:10:43 +01: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-01-22 08:10:43 +01:00
|
|
|
ENABLED = true
|
|
|
|
HOST = 127.0.0.1:25
|
|
|
|
FROM = "Forgejo" <forgejo-noreply@__DOMAIN__>
|
2023-01-05 14:48:22 +01:00
|
|
|
SKIP_VERIFY = true
|
|
|
|
|
|
|
|
[service]
|
2023-01-22 08:10:43 +01:00
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
|
|
ENABLE_NOTIFY_MAIL = true
|
|
|
|
DISABLE_REGISTRATION = true
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
2023-03-10 17:10:37 +01:00
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
2023-01-05 14:48:22 +01:00
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = true
|
2023-03-15 14:47:35 +01:00
|
|
|
ENABLE_REVERSE_PROXY_EMAIL = true
|
2023-01-05 14:48:22 +01:00
|
|
|
|
|
|
|
[picture]
|
2023-03-10 17:13:54 +01:00
|
|
|
AVATAR_UPLOAD_PATH = __DATA_DIR__/data/avatars
|
|
|
|
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-01-22 08:10:43 +01:00
|
|
|
MODE = file
|
|
|
|
LEVEL = Info
|
|
|
|
ROOT_PATH = /var/log/__APP__
|
2023-01-11 10:32:49 +01:00
|
|
|
REDIRECT_MACARON_LOG = true
|
|
|
|
MACARON = file
|
|
|
|
ROUTER_LOG_LEVEL = Warn
|
|
|
|
ROUTER = file
|
|
|
|
ENABLE_ACCESS_LOG = Warn
|
|
|
|
ACCESS = file
|
|
|
|
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]
|
2023-03-16 21:52:08 +01: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-03-16 21:52:08 +01:00
|
|
|
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
|
|
|
|
INTERNAL_TOKEN = __INTERNAL_TOKEN__
|