2021-11-07 12:30:23 +01:00
|
|
|
;https://github.com/gogits/gogs/blob/master/conf/app.ini
|
|
|
|
APP_NAME = Gogs
|
2018-02-08 10:11:36 +01:00
|
|
|
RUN_USER = __APP__
|
2016-08-15 15:38:50 +02:00
|
|
|
RUN_MODE = prod
|
2018-06-07 22:06:19 +02:00
|
|
|
|
|
|
|
[server]
|
|
|
|
DOMAIN = __DOMAIN__
|
|
|
|
HTTP_PORT = __PORT__
|
2021-11-07 12:30:23 +01:00
|
|
|
ROOT_URL = https://__URL__/
|
|
|
|
HTTP_ADDR = 127.0.0.1
|
|
|
|
OFFLINE_MODE = false
|
2018-06-07 22:06:19 +02:00
|
|
|
DISABLE_SSH = false
|
|
|
|
SSH_PORT = 22
|
2021-11-08 21:22:23 +01:00
|
|
|
APP_DATA_PATH = __DATADIR/data
|
2018-06-07 22:06:19 +02:00
|
|
|
LANDING_PAGE = explore
|
|
|
|
|
|
|
|
[repository]
|
2021-11-08 21:22:23 +01:00
|
|
|
ROOT = __DATADIR__/repositories
|
2018-06-07 22:06:19 +02:00
|
|
|
FORCE_PRIVATE = false
|
|
|
|
|
2016-08-15 15:38:50 +02:00
|
|
|
[database]
|
|
|
|
DB_TYPE = mysql
|
|
|
|
HOST = 127.0.0.1:3306
|
2021-04-23 07:57:08 +02:00
|
|
|
NAME = __DB_NAME__
|
2021-11-06 19:10:24 +01:00
|
|
|
USER = __DB_USER__
|
2021-04-23 07:57:08 +02:00
|
|
|
PASSWD = __DB_PWD__
|
2016-08-15 15:38:50 +02:00
|
|
|
SSL_MODE = disable
|
2018-06-07 22:06:19 +02:00
|
|
|
PATH = data/gogs.db
|
|
|
|
|
|
|
|
[security]
|
|
|
|
INSTALL_LOCK = true
|
|
|
|
SECRET_KEY = __KEY__
|
|
|
|
REVERSE_PROXY_AUTHENTICATION_USER = REMOTE_USER
|
|
|
|
|
2016-08-15 15:38:50 +02:00
|
|
|
[service]
|
|
|
|
REGISTER_EMAIL_CONFIRM = false
|
2021-11-07 12:30:23 +01:00
|
|
|
ENABLE_NOTIFY_MAIL = true
|
|
|
|
DISABLE_REGISTRATION = true
|
|
|
|
ENABLE_CAPTCHA = false
|
|
|
|
REQUIRE_SIGNIN_VIEW = false
|
|
|
|
ENABLE_REVERSE_PROXY_AUTHENTICATION = false
|
|
|
|
ENABLE_REVERSE_PROXY_AUTO_REGISTERATION = false
|
2018-06-07 22:06:19 +02:00
|
|
|
|
|
|
|
[mailer]
|
|
|
|
ENABLED = true
|
|
|
|
HOST = 127.0.0.1:25
|
2021-11-07 12:30:23 +01:00
|
|
|
FROM = "Gitea" <gogs-noreply@__DOMAIN__>
|
2018-06-07 22:06:19 +02:00
|
|
|
SKIP_VERIFY = true
|
|
|
|
|
|
|
|
[session]
|
|
|
|
PROVIDER = memory
|
|
|
|
|
2016-08-15 15:38:50 +02:00
|
|
|
[picture]
|
2021-11-08 21:22:23 +01:00
|
|
|
AVATAR_UPLOAD_PATH = __DATADIR__/data/avatars
|
2018-06-07 22:06:19 +02:00
|
|
|
|
2016-08-15 15:38:50 +02:00
|
|
|
[log]
|
2021-11-07 12:30:23 +01:00
|
|
|
MODE = file
|
|
|
|
LEVEL = Info
|
2018-02-08 10:11:36 +01:00
|
|
|
ROOT_PATH = /var/log/__APP__
|
2018-06-07 22:06:19 +02:00
|
|
|
|
2021-11-07 12:30:23 +01:00
|
|
|
REDIRECT_MACARON_LOG= true
|
|
|
|
MACARON = file
|
2018-06-07 22:06:19 +02:00
|
|
|
|
2021-11-07 12:30:23 +01:00
|
|
|
ROUTER_LOG_LEVEL = Warn
|
|
|
|
ROUTER = file
|
|
|
|
|
|
|
|
ENABLE_ACCESS_LOG = Warn
|
|
|
|
ACCESS = file
|
|
|
|
|
|
|
|
ENABLE_XORM_LOG = Warn
|
|
|
|
XORM = file
|