##
##  app.ini -- Gogs global configuration
##

APP_NAME                       = Gogs: Git Repository Hosting Service
RUN_USER                       = @l_rusr@
RUN_MODE                       = prod

[repository]
ROOT                           = @l_prefix@/var/gogs/repo
FORCE_PRIVATE                  = false
PREFERRED_LICENSES             = MPL-2.0,Apache-2.0,MIT
DISABLE_HTTP_GIT               = false

[repository.upload]
ENABLED                        = true
TEMP_PATH                      = @l_prefix@/var/gogs/data/tmp/upload

[markdown]
FILE_EXTENSIONS                = .md,.markdown,.mdown,.mkd

[server]
PROTOCOL                       = http
DOMAIN                         = localhost
ROOT_URL                       = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
HTTP_ADDR                      = 127.0.0.1
HTTP_PORT                      = 3000
UNIX_SOCKET_PERMISSION         = 666
DISABLE_SSH                    = false
START_SSH_SERVER               = true
SSH_DOMAIN                     = %(DOMAIN)s
SSH_PORT                       = 2222
SSH_LISTEN_HOST                = 127.0.0.1
SSH_LISTEN_PORT                = %(SSH_PORT)s
SSH_SERVER_CIPHERS             = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
SSH_KEYGEN_PATH                = @l_prefix@/bin/ssh-keygen
STATIC_ROOT_PATH               = @l_prefix@/share/gogs
APP_DATA_PATH                  = data
ENABLE_GZIP                    = true
OFFLINE_MODE                   = false
LANDING_PAGE                   = home

[http]
ACCESS_CONTROL_ALLOW_ORIGIN    =

[ssh.minimum_key_sizes]
ED25519                        = 256
ECDSA                          = 256
RSA                            = 2048
DSA                            = 1024

[database]
DB_TYPE                        = sqlite3
HOST                           =
NAME                           =
USER                           =
PASSWD                         =
PATH                           = @l_prefix@/var/gogs/db/gogs.db

[admin]
DISABLE_REGULAR_ORG_CREATION   = false

[security]
INSTALL_LOCK                   = false
SECRET_KEY                     = !#@FDEWREWR&*(
LOGIN_REMEMBER_DAYS            = 7
COOKIE_USERNAME                = gogs_username
COOKIE_REMEMBER_NAME           = gogs_remember

[service]
REGISTER_EMAIL_CONFIRM         = false
DISABLE_REGISTRATION           = false
SHOW_REGISTRATION_BUTTON       = true
REQUIRE_SIGNIN_VIEW            = false
ENABLE_NOTIFY_MAIL             = true
ENABLE_CAPTCHA                 = true

[webhook]
QUEUE_LENGTH                   = 1000
DELIVER_TIMEOUT                = 5
SKIP_TLS_VERIFY                = true
PAGING_NUM                     = 10

[mailer]
ENABLED                        = false
SUBJECT                        = %(APP_NAME)s
HOST                           = localhost:25
FROM                           = "Gogs" <gogs@example.com>

[cache]
ADAPTER                        = memory
INTERVAL                       = 60

[session]
PROVIDER                       = memory
PROVIDER_CONFIG                = data/sessions
COOKIE_NAME                    = gogs_session
COOKIE_SECURE                  = false
ENABLE_SET_COOKIE              = true
GC_INTERVAL_TIME               = 86400
SESSION_LIFE_TIME              = 86400

[log]
ROOT_PATH                      = @l_prefix@/var/gogs/log
MODE                           = file
BUFFER_LEN                     = 10000
LEVEL                          = Trace

[log.file]
LOG_ROTATE                     = false
DAILY_ROTATE                   = false

[cron]
ENABLED                        = true
RUN_AT_START                   = false

[cron.update_mirrors]
SCHEDULE                       = @every 10m

[cron.repo_health_check]
SCHEDULE                       = @every 24h
TIMEOUT                        = 60s

[cron.check_repo_stats]
SCHEDULE                       = @every 24h
RUN_AT_START                   = true

[git]
DISABLE_DIFF_HIGHLIGHT         = false
MAX_GIT_DIFF_LINES             = 1000
MAX_GIT_DIFF_LINE_CHARACTERS   = 500
MAX_GIT_DIFF_FILES             = 100
GC_ARGS                        =

[git.timeout]
MIGRATE                        = 600
MIRROR                         = 300
CLONE                          = 300
PULL                           = 300
GC                             = 60

[mirror]
DEFAULT_INTERVAL               = 8

[cache]
ADAPTER                        = memory

[picture]
AVATAR_UPLOAD_PATH             = @l_prefix@/var/gogs/data/avatar
GRAVATAR_SOURCE                = gravatar
DISABLE_GRAVATAR               = false

[attachment]
ENABLED                        = true
PATH                           = @l_prefix@/var/gogs/data/attachment
MAX_SIZE                       = 8
MAX_FILES                      = 8

[other]
SHOW_FOOTER_BRANDING           = true
SHOW_FOOTER_VERSION            = true
SHOW_FOOTER_TEMPLATE_LOAD_TIME = false

