Fork to maintain patches against the official gitea for https://code.ceondo.com https://github.com/go-gitea/gitea

app.ini 19KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. ; App name that shows on every page title
  2. APP_NAME = Gitea: Git with a cup of tea
  3. ; Change it if you run locally
  4. RUN_USER = git
  5. ; Either "dev", "prod" or "test", default is "dev"
  6. RUN_MODE = dev
  7. [repository]
  8. ROOT =
  9. SCRIPT_TYPE = bash
  10. ; Default ANSI charset
  11. ANSI_CHARSET =
  12. ; Force every new repository to be private
  13. FORCE_PRIVATE = false
  14. ; Global maximum creation limit of repository per user, -1 means no limit
  15. MAX_CREATION_LIMIT = -1
  16. ; Mirror sync queue length, increase if mirror syncing starts hanging
  17. MIRROR_QUEUE_LENGTH = 1000
  18. ; Patch test queue length, increase if pull request patch testing starts hanging
  19. PULL_REQUEST_QUEUE_LENGTH = 1000
  20. ; Preferred Licenses to place at the top of the List
  21. ; Name must match file name in conf/license or custom/conf/license
  22. PREFERRED_LICENSES = Apache License 2.0,MIT License
  23. ; Disable ability to interact with repositories by HTTP protocol
  24. DISABLE_HTTP_GIT = false
  25. ; Force ssh:// clone url instead of scp-style uri when default SSH port is used
  26. USE_COMPAT_SSH_URI = false
  27. [repository.editor]
  28. ; List of file extensions that should have line wraps in the CodeMirror editor
  29. ; Separate extensions with a comma. To line wrap files w/o extension, just put a comma
  30. LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
  31. ; Valid file modes that have a preview API associated with them, such as api/v1/markdown
  32. ; Separate values by commas. Preview tab in edit mode won't show if the file extension doesn't match
  33. PREVIEWABLE_FILE_MODES = markdown
  34. [repository.local]
  35. ; Path for uploads. Defaults to `tmp/local-repo`
  36. LOCAL_COPY_PATH = tmp/local-repo
  37. [repository.upload]
  38. ; Whether repository file uploads are enabled. Defaults to `true`
  39. ENABLED = true
  40. ; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
  41. TEMP_PATH = data/tmp/uploads
  42. ; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
  43. ALLOWED_TYPES =
  44. ; Max size of each file in MB. Defaults to 3MB
  45. FILE_MAX_SIZE = 3
  46. ; Max number of files per upload. Defaults to 5
  47. MAX_FILES = 5
  48. [ui]
  49. ; Number of repositories that are showed in one explore page
  50. EXPLORE_PAGING_NUM = 20
  51. ; Number of issues that are showed in one page
  52. ISSUE_PAGING_NUM = 10
  53. ; Number of maximum commits showed in one activity feed
  54. FEED_MAX_COMMIT_NUM = 5
  55. ; Value of `theme-color` meta tag, used by Android >= 5.0
  56. ; An invalid color like "none" or "disable" will have the default style
  57. ; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
  58. THEME_COLOR_META_TAG = `#6cc644`
  59. ; Max size of files to be displayed (defaults is 8MiB)
  60. MAX_DISPLAY_FILE_SIZE = 8388608
  61. ; Whether show the user email in the Explore Users page
  62. SHOW_USER_EMAIL = true
  63. [ui.admin]
  64. ; Number of users that are showed in one page
  65. USER_PAGING_NUM = 50
  66. ; Number of repos that are showed in one page
  67. REPO_PAGING_NUM = 50
  68. ; Number of notices that are showed in one page
  69. NOTICE_PAGING_NUM = 25
  70. ; Number of organization that are showed in one page
  71. ORG_PAGING_NUM = 50
  72. [ui.user]
  73. ; Number of repos that are showed in one page
  74. REPO_PAGING_NUM = 15
  75. [ui.meta]
  76. AUTHOR = Gitea - Git with a cup of tea
  77. DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go
  78. KEYWORDS = go,git,self-hosted,gitea
  79. [markdown]
  80. ; Enable hard line break extension
  81. ENABLE_HARD_LINE_BREAK = false
  82. ; List of custom URL-Schemes that are allowed as links when rendering Markdown
  83. ; for example git,magnet
  84. CUSTOM_URL_SCHEMES =
  85. ; List of file extensions that should be rendered/edited as Markdown
  86. ; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma
  87. FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
  88. [server]
  89. ; Listen protocol. One of 'http', 'https', 'unix' or 'fcgi'.
  90. PROTOCOL = http
  91. DOMAIN = localhost
  92. ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
  93. ; Listen address. Either a IPv4/IPv6 address or the path to a unix socket.
  94. HTTP_ADDR = 0.0.0.0
  95. HTTP_PORT = 3000
  96. ; Permission for unix socket
  97. UNIX_SOCKET_PERMISSION = 666
  98. ; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
  99. ; In most cases you do not need to change the default value.
  100. ; Alter it only if your SSH server node is not the same as HTTP node.
  101. LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
  102. ; Disable SSH feature when not available
  103. DISABLE_SSH = false
  104. ; Whether use builtin SSH server or not.
  105. START_SSH_SERVER = false
  106. ; Username to use for builtin SSH server. If blank, then it is the value of RUN_USER.
  107. BUILTIN_SSH_SERVER_USER =
  108. ; Domain name to be exposed in clone URL
  109. SSH_DOMAIN = %(DOMAIN)s
  110. ; Network interface builtin SSH server listens on
  111. SSH_LISTEN_HOST =
  112. ; Port number to be exposed in clone URL
  113. SSH_PORT = 22
  114. ; Port number builtin SSH server listens on
  115. SSH_LISTEN_PORT = %(SSH_PORT)s
  116. ; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
  117. SSH_ROOT_PATH =
  118. ; For built-in SSH server only, choose the ciphers to support for SSH connections,
  119. ; for system SSH this setting has no effect
  120. SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
  121. ; Directory to create temporary files when test public key using ssh-keygen,
  122. ; default is system temporary directory.
  123. SSH_KEY_TEST_PATH =
  124. ; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call.
  125. SSH_KEYGEN_PATH = ssh-keygen
  126. ; Enable SSH Authorized Key Backup when rewriting all keys, default is true
  127. SSH_BACKUP_AUTHORIZED_KEYS = true
  128. ; Enable exposure of SSH clone URL to anonymous visitors, default is false
  129. SSH_EXPOSE_ANONYMOUS = false
  130. ; Indicate whether to check minimum key size with corresponding type
  131. MINIMUM_KEY_SIZE_CHECK = false
  132. ; Disable CDN even in "prod" mode
  133. OFFLINE_MODE = false
  134. DISABLE_ROUTER_LOG = false
  135. ; Generate steps:
  136. ; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com
  137. ;
  138. ; Or from a .pfx file exported from the Windows certificate store (do
  139. ; not forget to export the private key):
  140. ; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
  141. ; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
  142. CERT_FILE = custom/https/cert.pem
  143. KEY_FILE = custom/https/key.pem
  144. ; Upper level of template and static file path
  145. ; default is the path where Gitea is executed
  146. STATIC_ROOT_PATH =
  147. ; Default path for App data
  148. APP_DATA_PATH = data
  149. ; Application level GZIP support
  150. ENABLE_GZIP = false
  151. ; Landing page for non-logged users, can be "home" or "explore"
  152. LANDING_PAGE = home
  153. ; Enables git-lfs support. true or false, default is false.
  154. LFS_START_SERVER = false
  155. ; Where your lfs files put on, default is data/lfs.
  156. LFS_CONTENT_PATH = data/lfs
  157. ; LFS authentication secret, changed this to yourself.
  158. LFS_JWT_SECRET =
  159. ; Define allowed algorithms and their minimum key length (use -1 to disable a type)
  160. [ssh.minimum_key_sizes]
  161. ED25519 = 256
  162. ECDSA = 256
  163. RSA = 2048
  164. DSA = 1024
  165. [database]
  166. ; Either "mysql", "postgres", "mssql" or "sqlite3", it's your choice
  167. DB_TYPE = mysql
  168. HOST = 127.0.0.1:3306
  169. NAME = gitea
  170. USER = root
  171. PASSWD =
  172. ; For "postgres" only, either "disable", "require" or "verify-full"
  173. SSL_MODE = disable
  174. ; For "sqlite3" and "tidb", use absolute path when you start as service
  175. PATH = data/gitea.db
  176. ; For "sqlite3" only. Query timeout
  177. SQLITE_TIMEOUT = 500
  178. ; For iterate buffer, default is 50
  179. ITERATE_BUFFER_SIZE = 50
  180. [indexer]
  181. ISSUE_INDEXER_PATH = indexers/issues.bleve
  182. ; repo indexer by default disabled, since it uses a lot of disk space
  183. REPO_INDEXER_ENABLED = false
  184. REPO_INDEXER_PATH = indexers/repos.bleve
  185. UPDATE_BUFFER_LEN = 20
  186. MAX_FILE_SIZE = 1048576
  187. [admin]
  188. ; Disable regular (non-admin) users to create organizations
  189. DISABLE_REGULAR_ORG_CREATION = false
  190. [security]
  191. ; Whether the installer is disabled
  192. INSTALL_LOCK = false
  193. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  194. SECRET_KEY = !#@FDEWREWR&*(
  195. ; Auto-login remember days
  196. LOGIN_REMEMBER_DAYS = 7
  197. COOKIE_USERNAME = gitea_awesome
  198. COOKIE_REMEMBER_NAME = gitea_incredible
  199. ; Reverse proxy authentication header name of user name
  200. REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
  201. ; Sets the minimum password length for new Users
  202. MIN_PASSWORD_LENGTH = 6
  203. ; True when users are allowed to import local server paths
  204. IMPORT_LOCAL_PATHS = false
  205. ; Prevent all users (including admin) from creating custom git hooks
  206. DISABLE_GIT_HOOKS = false
  207. [openid]
  208. ;
  209. ; OpenID is an open standard and decentralized authentication protocol.
  210. ; Your identity is the address of a webpage you provide, which describes
  211. ; how to prove you are in control of that page.
  212. ;
  213. ; For more info: https://en.wikipedia.org/wiki/OpenID
  214. ;
  215. ; Current implementation supports OpenID-2.0
  216. ;
  217. ; Tested to work providers at the time of writing:
  218. ; - Any GNUSocial node (your.hostname.tld/username)
  219. ; - Any SimpleID provider (http://simpleid.koinic.net)
  220. ; - http://openid.org.cn/
  221. ; - openid.stackexchange.com
  222. ; - login.launchpad.net
  223. ; - <username>.livejournal.com
  224. ;
  225. ; Whether to allow signin in via OpenID
  226. ENABLE_OPENID_SIGNIN = true
  227. ; Whether to allow registering via OpenID
  228. ; Do not include to rely on DISABLE_REGISTRATION setting
  229. ;ENABLE_OPENID_SIGNUP = true
  230. ; Allowed URI patterns (POSIX regexp).
  231. ; Space separated.
  232. ; Only these would be allowed if non-blank.
  233. ; Example value: trusted.domain.org trusted.domain.net
  234. WHITELISTED_URIS =
  235. ; Forbidden URI patterns (POSIX regexp).
  236. ; Space separated.
  237. ; Only used if WHITELISTED_URIS is blank.
  238. ; Example value: loadaverage.org/badguy stackexchange.com/.*spammer
  239. BLACKLISTED_URIS =
  240. [service]
  241. ; Time limit to confirm account/email registration
  242. ACTIVE_CODE_LIVE_MINUTES = 180
  243. ; Time limit to confirm forgot password reset process
  244. RESET_PASSWD_CODE_LIVE_MINUTES = 180
  245. ; User need to confirm e-mail for registration
  246. REGISTER_EMAIL_CONFIRM = false
  247. ; Does not allow register and admin create account only
  248. DISABLE_REGISTRATION = false
  249. ; User must sign in to view anything.
  250. REQUIRE_SIGNIN_VIEW = false
  251. ; Mail notification
  252. ENABLE_NOTIFY_MAIL = false
  253. ; More detail: https://github.com/go-gitea/gitea/issues/165
  254. ENABLE_REVERSE_PROXY_AUTHENTICATION = false
  255. ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
  256. ; Enable captcha validation for registration
  257. ENABLE_CAPTCHA = true
  258. ; Default value for KeepEmailPrivate
  259. ; New user will get the value of this setting copied into their profile
  260. DEFAULT_KEEP_EMAIL_PRIVATE = false
  261. ; Default value for AllowCreateOrganization
  262. ; New user will have rights set to create organizations depending on this setting
  263. DEFAULT_ALLOW_CREATE_ORGANIZATION = true
  264. ; Default value for EnableTimetracking
  265. ; Repositories will use timetracking by default depending on this setting
  266. DEFAULT_ENABLE_TIMETRACKING = true
  267. ; Default value for AllowOnlyContributorsToTrackTime
  268. ; Only users with write permissions could track time if this is true
  269. DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true
  270. ; Default value for the domain part of the user's email address in the git log
  271. ; if he has set KeepEmailPrivate true. The user's email replaced with a
  272. ; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
  273. NO_REPLY_ADDRESS = noreply.example.org
  274. [webhook]
  275. ; Hook task queue length, increase if webhook shooting starts hanging
  276. QUEUE_LENGTH = 1000
  277. ; Deliver timeout in seconds
  278. DELIVER_TIMEOUT = 5
  279. ; Allow insecure certification
  280. SKIP_TLS_VERIFY = false
  281. ; Number of history information in each page
  282. PAGING_NUM = 10
  283. [mailer]
  284. ENABLED = false
  285. ; Buffer length of channel, keep it as it is if you don't know what it is.
  286. SEND_BUFFER_LEN = 100
  287. ; Name displayed in mail title
  288. SUBJECT = %(APP_NAME)s
  289. ; Mail server
  290. ; Gmail: smtp.gmail.com:587
  291. ; QQ: smtp.qq.com:465
  292. ; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
  293. HOST =
  294. ; Disable HELO operation when hostname are different.
  295. DISABLE_HELO =
  296. ; Custom hostname for HELO operation, default is from system.
  297. HELO_HOSTNAME =
  298. ; Do not verify the certificate of the server. Only use this for self-signed certificates
  299. SKIP_VERIFY =
  300. ; Use client certificate
  301. USE_CERTIFICATE = false
  302. CERT_FILE = custom/mailer/cert.pem
  303. KEY_FILE = custom/mailer/key.pem
  304. ; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
  305. FROM =
  306. ; Mailer user name and password
  307. USER =
  308. PASSWD =
  309. ; Send mails as plain text
  310. SEND_AS_PLAIN_TEXT = false
  311. ; Enable sendmail (override SMTP)
  312. USE_SENDMAIL = false
  313. ; Specify an alternative sendmail binary
  314. SENDMAIL_PATH = sendmail
  315. ; Specify any extra sendmail arguments
  316. SENDMAIL_ARGS =
  317. [cache]
  318. ; Either "memory", "redis", or "memcache", default is "memory"
  319. ADAPTER = memory
  320. ; For "memory" only, GC interval in seconds, default is 60
  321. INTERVAL = 60
  322. ; For "redis" and "memcache", connection host address
  323. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  324. ; memcache: `127.0.0.1:11211`
  325. HOST =
  326. ; Time to keep items in cache if not used, default is 16 hours.
  327. ; Setting it to 0 disables caching
  328. ITEM_TTL = 16h
  329. [session]
  330. ; Either "memory", "file", or "redis", default is "memory"
  331. PROVIDER = memory
  332. ; Provider config options
  333. ; memory: not have any config yet
  334. ; file: session file path, e.g. `data/sessions`
  335. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  336. ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  337. PROVIDER_CONFIG = data/sessions
  338. ; Session cookie name
  339. COOKIE_NAME = i_like_gitea
  340. ; If you use session in https only, default is false
  341. COOKIE_SECURE = false
  342. ; Enable set cookie, default is true
  343. ENABLE_SET_COOKIE = true
  344. ; Session GC time interval in seconds, default is 86400 (1 day)
  345. GC_INTERVAL_TIME = 86400
  346. ; Session life time in seconds, default is 86400 (1 day)
  347. SESSION_LIFE_TIME = 86400
  348. [picture]
  349. AVATAR_UPLOAD_PATH = data/avatars
  350. ; Chinese users can choose "duoshuo"
  351. ; or a custom avatar source, like: http://cn.gravatar.com/avatar/
  352. GRAVATAR_SOURCE = gravatar
  353. ; This value will be forced to be true in offline mode.
  354. DISABLE_GRAVATAR = false
  355. ; Federated avatar lookup uses DNS to discover avatar associated
  356. ; with emails, see https://www.libravatar.org
  357. ; This value will be forced to be false in offline mode or Gravatar is disabled.
  358. ENABLE_FEDERATED_AVATAR = false
  359. [attachment]
  360. ; Whether attachments are enabled. Defaults to `true`
  361. ENABLE = true
  362. ; Path for attachments. Defaults to `data/attachments`
  363. PATH = data/attachments
  364. ; One or more allowed types, e.g. image/jpeg|image/png
  365. ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip
  366. ; Max size of each file. Defaults to 32MB
  367. MAX_SIZE = 4
  368. ; Max number of files per upload. Defaults to 10
  369. MAX_FILES = 5
  370. [time]
  371. ; Specifies the format for fully outputted dates. Defaults to RFC1123
  372. ; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
  373. ; For more information about the format see http://golang.org/pkg/time/#pkg-constants
  374. FORMAT =
  375. [log]
  376. ROOT_PATH =
  377. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  378. ; Use comma to separate multiple modes, e.g. "console, file"
  379. MODE = console
  380. ; Buffer length of channel, keep it as it is if you don't know what it is.
  381. BUFFER_LEN = 10000
  382. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  383. LEVEL = Trace
  384. ; For "console" mode only
  385. [log.console]
  386. LEVEL =
  387. ; For "file" mode only
  388. [log.file]
  389. LEVEL =
  390. ; This enables automated log rotate(switch of following options), default is true
  391. LOG_ROTATE = true
  392. ; Max line number of single file, default is 1000000
  393. MAX_LINES = 1000000
  394. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  395. MAX_SIZE_SHIFT = 28
  396. ; Segment log daily, default is true
  397. DAILY_ROTATE = true
  398. ; Expired days of log file(delete after max days), default is 7
  399. MAX_DAYS = 7
  400. ; For "conn" mode only
  401. [log.conn]
  402. LEVEL =
  403. ; Reconnect host for every single message, default is false
  404. RECONNECT_ON_MSG = false
  405. ; Try to reconnect when connection is lost, default is false
  406. RECONNECT = false
  407. ; Either "tcp", "unix" or "udp", default is "tcp"
  408. PROTOCOL = tcp
  409. ; Host address
  410. ADDR =
  411. ; For "smtp" mode only
  412. [log.smtp]
  413. LEVEL =
  414. ; Name displayed in mail title, default is "Diagnostic message from server"
  415. SUBJECT = Diagnostic message from server
  416. ; Mail server
  417. HOST =
  418. ; Mailer user name and password
  419. USER =
  420. PASSWD =
  421. ; Receivers, can be one or more, e.g. 1@example.com,2@example.com
  422. RECEIVERS =
  423. ; For "database" mode only
  424. [log.database]
  425. LEVEL =
  426. ; Either "mysql" or "postgres"
  427. DRIVER =
  428. ; Based on xorm, e.g.: root:root@localhost/gitea?charset=utf8
  429. CONN =
  430. [cron]
  431. ; Enable running cron tasks periodically.
  432. ENABLED = true
  433. ; Run cron tasks when Gitea starts.
  434. RUN_AT_START = false
  435. ; Update mirrors
  436. [cron.update_mirrors]
  437. SCHEDULE = @every 10m
  438. ; Repository health check
  439. [cron.repo_health_check]
  440. SCHEDULE = @every 24h
  441. TIMEOUT = 60s
  442. ; Arguments for command 'git fsck', e.g. "--unreachable --tags"
  443. ; see more on http://git-scm.com/docs/git-fsck/1.7.5
  444. ARGS =
  445. ; Check repository statistics
  446. [cron.check_repo_stats]
  447. RUN_AT_START = true
  448. SCHEDULE = @every 24h
  449. ; Clean up old repository archives
  450. [cron.archive_cleanup]
  451. RUN_AT_START = true
  452. SCHEDULE = @every 24h
  453. ; Archives created more than OLDER_THAN ago are subject to deletion
  454. OLDER_THAN = 24h
  455. ; Synchronize external user data (only LDAP user synchronization is supported)
  456. [cron.sync_external_users]
  457. ; Synchronize external user data when starting server (default false)
  458. RUN_AT_START = false
  459. ; Interval as a duration between each synchronization (default every 24h)
  460. SCHEDULE = @every 24h
  461. ; Create new users, update existing user data and disable users that are not in external source anymore (default)
  462. ; or only create new users if UPDATE_EXISTING is set to false
  463. UPDATE_EXISTING = true
  464. [git]
  465. ; Disables highlight of added and removed changes
  466. DISABLE_DIFF_HIGHLIGHT = false
  467. ; Max number of lines allowed of a single file in diff view
  468. MAX_GIT_DIFF_LINES = 1000
  469. ; Max number of characters of a line allowed in diff view
  470. MAX_GIT_DIFF_LINE_CHARACTERS = 5000
  471. ; Max number of files shown in diff view
  472. MAX_GIT_DIFF_FILES = 100
  473. ; Arguments for command 'git gc', e.g. "--aggressive --auto"
  474. ; see more on http://git-scm.com/docs/git-gc/1.7.5
  475. GC_ARGS =
  476. ; Operation timeout in seconds
  477. [git.timeout]
  478. MIGRATE = 600
  479. MIRROR = 300
  480. CLONE = 300
  481. PULL = 300
  482. GC = 60
  483. [mirror]
  484. ; Default interval as a duration between each check
  485. DEFAULT_INTERVAL = 8h
  486. ; Min interval as a duration must be > 1m
  487. MIN_INTERVAL = 10m
  488. [api]
  489. ; Max number of items will response in a page
  490. MAX_RESPONSE_ITEMS = 50
  491. [i18n]
  492. 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
  493. NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,日本語,Español,Português do Brasil,polski,български,Italiano,Suomalainen,Türkçe,čeština,Српски,Svenska,한국어
  494. ; Used for datetimepicker
  495. [i18n.datelang]
  496. en-US = en
  497. zh-CN = zh
  498. zh-HK = zh-TW
  499. zh-TW = zh-TW
  500. de-DE = de
  501. fr-FR = fr
  502. nl-NL = nl
  503. lv-LV = lv
  504. ru-RU = ru
  505. ja-JP = ja
  506. es-ES = es
  507. pt-BR = pt-BR
  508. pl-PL = pl
  509. bg-BG = bg
  510. it-IT = it
  511. fi-FI = fi
  512. tr-TR = tr
  513. cs-CZ = cs-CZ
  514. sr-SP = sr
  515. sv-SE = sv
  516. ko-KR = ko
  517. ; Extension mapping to highlight class
  518. ; e.g. .toml=ini
  519. [highlight.mapping]
  520. [other]
  521. SHOW_FOOTER_BRANDING = false
  522. ; Show version information about Gitea and Go in the footer
  523. SHOW_FOOTER_VERSION = true
  524. ; Show time of template execution in the footer
  525. SHOW_FOOTER_TEMPLATE_LOAD_TIME = true