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

app.ini.sample 20KB

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