Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

app.ini.sample 23KB

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