2018-02-25 21:45:24 +01:00
|
|
|
;https://github.com/gogits/gogs/blob/master/conf/app.ini
|
|
|
|
APP_NAME = Gitea
|
|
|
|
RUN_USER = __APP__
|
|
|
|
RUN_MODE = prod
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[database]
|
|
|
|
DB_TYPE = mysql
|
|
|
|
HOST = 127.0.0.1:3306
|
|
|
|
NAME = __DB_USER__
|
|
|
|
USER = __DB_USER__
|
|
|
|
PASSWD = __DB_PASSWORD__
|
|
|
|
SSL_MODE = disable
|
|
|
|
PATH = data/gitea.db
|
2019-08-05 16:51:46 +02:00
|
|
|
LOG_SQL = false
|
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[repository]
|
|
|
|
ROOT = __REPOS_PATH__
|
|
|
|
FORCE_PRIVATE = false
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[server]
|
|
|
|
DOMAIN = __DOMAIN__
|
|
|
|
HTTP_PORT = __PORT__
|
2020-03-27 13:55:02 +01:00
|
|
|
HTTP_ADDR = 127.0.0.1
|
2022-04-01 22:54:46 +02:00
|
|
|
ROOT_URL = https://__DOMAIN____PATH_URL__
|
2018-02-25 21:45:24 +01:00
|
|
|
DISABLE_SSH = false
|
2019-06-09 21:05:14 +02:00
|
|
|
SSH_PORT = __SSH_PORT__
|
2018-02-25 21:45:24 +01:00
|
|
|
OFFLINE_MODE = false
|
|
|
|
APP_DATA_PATH = __DATA_PATH__
|
|
|
|
LANDING_PAGE = explore
|
2022-07-19 23:42:47 +02:00
|
|
|
LFS_START_SERVER = true
|
|
|
|
LFS_JWT_SECRET = __LFS_KEY__
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[mailer]
|
|
|
|
ENABLED = true
|
|
|
|
HOST = 127.0.0.1:25
|
|
|
|
FROM = "Gitea" <gitea-noreply@__DOMAIN__>
|
|
|
|
SKIP_VERIFY = true
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[service]
|
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
|
|
|
ENABLE_NOTIFY_MAIL = true
|
|
|
|
DISABLE_REGISTRATION = true
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
2021-10-26 07:47:40 +02:00
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = true
|
2022-02-07 20:50:27 +01:00
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[picture]
|
|
|
|
AVATAR_UPLOAD_PATH = __DATA_PATH__/avatars
|
2019-08-05 16:51:46 +02:00
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[attachment]
|
|
|
|
PATH = __DATA_PATH__/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]
|
|
|
|
MODE = file
|
2019-08-05 16:51:46 +02:00
|
|
|
LEVEL = Info
|
2018-02-25 21:45:24 +01:00
|
|
|
ROOT_PATH = /var/log/__APP__
|
2019-08-05 16:51:46 +02: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
|
|
|
|
|
2018-02-25 21:45:24 +01:00
|
|
|
[security]
|
|
|
|
INSTALL_LOCK = true
|
|
|
|
SECRET_KEY = __KEY__
|
2022-05-28 20:12:56 +02:00
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE-USER
|
2021-10-26 07:47:40 +02:00
|
|
|
REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
|