123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564 |
- BRAND_NAME = Gogs
- RUN_USER = git
- RUN_MODE = dev
- [server]
- EXTERNAL_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
- DOMAIN = localhost
- PROTOCOL = http
- HTTP_ADDR = 0.0.0.0
- HTTP_PORT = 3000
- CERT_FILE = custom/https/cert.pem
- KEY_FILE = custom/https/key.pem
- TLS_MIN_VERSION = TLS12
- UNIX_SOCKET_PERMISSION = 666
- LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
- OFFLINE_MODE = false
- DISABLE_ROUTER_LOG = true
- ENABLE_GZIP = false
- APP_DATA_PATH = data
- LOAD_ASSETS_FROM_DISK = false
- LANDING_URL = /
- DISABLE_SSH = false
- SSH_DOMAIN = %(DOMAIN)s
- SSH_PORT = 22
- SSH_ROOT_PATH =
- SSH_KEYGEN_PATH = ssh-keygen
- SSH_KEY_TEST_PATH =
- MINIMUM_KEY_SIZE_CHECK = false
- REWRITE_AUTHORIZED_KEYS_AT_START = false
- START_SSH_SERVER = false
- SSH_LISTEN_HOST = 0.0.0.0
- SSH_LISTEN_PORT = %(SSH_PORT)s
- SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
- SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1
- [ssh.minimum_key_sizes]
- ED25519 = 256
- ECDSA = 256
- RSA = 2048
- DSA = 1024
- [repository]
- ROOT =
- SCRIPT_TYPE = bash
- ANSI_CHARSET =
- FORCE_PRIVATE = false
- MAX_CREATION_LIMIT = -1
- PREFERRED_LICENSES = Apache License 2.0, MIT License
- DISABLE_HTTP_GIT = false
- ENABLE_LOCAL_PATH_MIGRATION = false
- ENABLE_RAW_FILE_RENDER_MODE = false
- COMMITS_FETCH_CONCURRENCY = 0
- [repository.editor]
- LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd
- PREVIEWABLE_FILE_MODES = markdown
- [repository.upload]
- ENABLED = true
- TEMP_PATH = data/tmp/uploads
- ALLOWED_TYPES =
- FILE_MAX_SIZE = 3
- MAX_FILES = 5
- [database]
- TYPE = postgres
- HOST = 127.0.0.1:5432
- NAME = gogs
- USER = gogs
- PASSWORD =
- SSL_MODE = disable
- PATH = data/gogs.db
- MAX_OPEN_CONNS = 30
- MAX_IDLE_CONNS = 30
- [security]
- INSTALL_LOCK = false
- SECRET_KEY = !
- LOGIN_REMEMBER_DAYS = 7
- COOKIE_REMEMBER_NAME = gogs_incredible
- COOKIE_USERNAME = gogs_awesome
- COOKIE_SECURE = false
- ENABLE_LOGIN_STATUS_COOKIE = false
- LOGIN_STATUS_COOKIE_NAME = login_status
- [email]
- ENABLED = false
- SUBJECT_PREFIX = `[%(BRAND_NAME)s] `
- HOST = smtp.mailgun.org:587
- FROM = noreply@gogs.localhost
- USER = noreply@gogs.localhost
- PASSWORD =
- DISABLE_HELO =
- HELO_HOSTNAME =
- SKIP_VERIFY = false
- USE_CERTIFICATE = false
- CERT_FILE = custom/email/cert.pem
- KEY_FILE = custom/email/key.pem
- USE_PLAIN_TEXT = false
- ADD_PLAIN_TEXT_ALT = false
- [auth]
- ACTIVATE_CODE_LIVES = 180
- RESET_PASSWORD_CODE_LIVES = 180
- REQUIRE_EMAIL_CONFIRMATION = false
- REQUIRE_SIGNIN_VIEW = false
- DISABLE_REGISTRATION = false
- ENABLE_REGISTRATION_CAPTCHA = true
- ENABLE_REVERSE_PROXY_AUTHENTICATION = false
- ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
- REVERSE_PROXY_AUTHENTICATION_HEADER = X-WEBAUTH-USER
- [user]
- ENABLE_EMAIL_NOTIFICATION = false
- [session]
- PROVIDER = memory
- PROVIDER_CONFIG = data/sessions
- COOKIE_NAME = i_like_gogs
- COOKIE_SECURE = false
- GC_INTERVAL = 3600
- MAX_LIFE_TIME = 86400
- CSRF_COOKIE_NAME = _csrf
- [cache]
- ADAPTER = memory
- INTERVAL = 60
- HOST =
- [http]
- ACCESS_CONTROL_ALLOW_ORIGIN =
- [lfs]
- STORAGE = local
- OBJECTS_PATH = data/lfs-objects
- [attachment]
- ENABLED = true
- PATH = data/attachments
- ALLOWED_TYPES = image/jpeg|image/png
- MAX_SIZE = 4
- MAX_FILES = 5
- [release.attachment]
- ENABLED = true
- ALLOWED_TYPES = */*
- MAX_SIZE = 32
- MAX_FILES = 10
- [time]
- FORMAT = RFC1123
- [picture]
- AVATAR_UPLOAD_PATH = data/avatars
- REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
- GRAVATAR_SOURCE = gravatar
- DISABLE_GRAVATAR = false
- ENABLE_FEDERATED_AVATAR = false
- [markdown]
- ENABLE_HARD_LINE_BREAK = false
- CUSTOM_URL_SCHEMES =
- FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
- [smartypants]
- ENABLED = false
- FRACTIONS = true
- DASHES = true
- LATEX_DASHES = true
- ANGLED_QUOTES = true
- [admin]
- DISABLE_REGULAR_ORG_CREATION = false
- [webhook]
- TYPES = gogs, slack, discord, dingtalk
- DELIVER_TIMEOUT = 15
- SKIP_TLS_VERIFY = false
- PAGING_NUM = 10
- [log]
- ROOT_PATH =
- MODE = console
- BUFFER_LEN = 100
- LEVEL = Trace
- [log.console]
- [log.file]
- LOG_ROTATE = true
- DAILY_ROTATE = true
- MAX_SIZE_SHIFT = 28
- MAX_LINES = 1000000
- MAX_DAYS = 7
- [log.slack]
- URL =
- [log.discord]
- URL =
- USERNAME = %(BRAND_NAME)s
- [log.xorm]
- ROTATE = true
- ROTATE_DAILY = true
- MAX_SIZE = 100
- MAX_DAYS = 3
- [log.gorm]
- ROTATE = true
- ROTATE_DAILY = true
- MAX_SIZE = 100
- MAX_DAYS = 3
- [cron]
- ENABLED = true
- RUN_AT_START = false
- [cron.update_mirrors]
- SCHEDULE = @every 10m
- [cron.repo_health_check]
- SCHEDULE = @every 24h
- TIMEOUT = 60s
- ARGS =
- [cron.check_repo_stats]
- RUN_AT_START = true
- SCHEDULE = @every 24h
- [cron.repo_archive_cleanup]
- RUN_AT_START = false
- SCHEDULE = @every 24h
- OLDER_THAN = 24h
- [git]
- DISABLE_DIFF_HIGHLIGHT = false
- MAX_GIT_DIFF_FILES = 100
- MAX_GIT_DIFF_LINES = 1000
- MAX_GIT_DIFF_LINE_CHARACTERS = 2000
- GC_ARGS =
- [git.timeout]
- MIGRATE = 600
- MIRROR = 300
- CLONE = 300
- PULL = 300
- DIFF = 60
- GC = 60
- [mirror]
- DEFAULT_INTERVAL = 8
- [api]
- MAX_RESPONSE_ITEMS = 50
- [ui]
- EXPLORE_PAGING_NUM = 20
- ISSUE_PAGING_NUM = 10
- FEED_MAX_COMMIT_NUM = 5
- THEME_COLOR_META_TAG = `
- MAX_DISPLAY_FILE_SIZE = 8388608
- [ui.admin]
- USER_PAGING_NUM = 50
- REPO_PAGING_NUM = 50
- NOTICE_PAGING_NUM = 25
- ORG_PAGING_NUM = 50
- [ui.user]
- REPO_PAGING_NUM = 15
- NEWS_FEED_PAGING_NUM = 20
- COMMITS_PAGING_NUM = 30
- [prometheus]
- ENABLED = true
- ENABLE_BASIC_AUTH = false
- BASIC_AUTH_USERNAME =
- BASIC_AUTH_PASSWORD =
- [highlight.mapping]
- [i18n]
- LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR,gl-ES,uk-UA,en-GB,hu-HU,sk-SK,id-ID,fa-IR,vi-VN,pt-PT, mn-MN
- NAMES = English,简体中文,繁體中文(香港),繁體中文(臺灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어,galego,українська,English (United Kingdom),Magyar,Slovenčina,Indonesian,Persian,Vietnamese,Português,Монгол
- [i18n.datelang]
- en-US = en
- zh-CN = zh
- zh-HK = zh-TW
- zh-TW = zh-TW
- de-DE = de
- fr-FR = fr
- nl-NL = nl
- lv-LV = lv
- ru-RU = ru
- ja-JP = ja
- es-ES = es
- pt-BR = pt-BR
- pl-PL = pl
- bg-BG = bg
- it-IT = it
- fi-FI = fi
- tr-TR = tr
- cs-CZ = cs-CZ
- sr-SP = sr
- sv-SE = sv
- ko-KR = ko
- gl-ES = gl
- uk-UA = uk
- en-GB = en-GB
- hu-HU = hu
- sk-SK = sk
- id-ID = id
- fa-IR = fa
- vi-VN = vi
- pt-PT = pt
- mn-MN = mn
- [other]
- SHOW_FOOTER_BRANDING = false
- SHOW_FOOTER_TEMPLATE_LOAD_TIME = true
|