選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

app.example.ini 101KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555
  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. ;; Do not copy the whole file as-is, as it contains some invalid sections for illustrative purposes.
  5. ;; If you don't know what a setting is you should not set it.
  6. ;;
  7. ;; see https://docs.gitea.io/en-us/config-cheat-sheet/ for additional documentation.
  8. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  9. ;; Default Configuration (non-`app.ini` configuration)
  10. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  11. ;;
  12. ;; These values are environment-dependent but form the basis of a lot of values. They will be
  13. ;; reported as part of the default configuration when running `gitea --help` or on start-up. The order they are emitted there is slightly different but we will list them here in the order they are set-up.
  14. ;;
  15. ;; - _`AppPath`_: This is the absolute path of the running gitea binary.
  16. ;; - _`AppWorkPath`_: This refers to "working path" of the `gitea` binary. It is determined by using the first set thing in the following hierarchy:
  17. ;; - The "WORK_PATH" option in "app.ini" file
  18. ;; - The `--work-path` flag passed to the binary
  19. ;; - The environment variable `$GITEA_WORK_DIR`
  20. ;; - A built-in value set at build time (see building from source)
  21. ;; - Otherwise it defaults to the directory of the _`AppPath`_
  22. ;; - If any of the above are relative paths then they are made absolute against the directory of the _`AppPath`_
  23. ;; - _`CustomPath`_: This is the base directory for custom templates and other options. It is determined by using the first set thing in the following hierarchy:
  24. ;; - The `--custom-path` flag passed to the binary
  25. ;; - The environment variable `$GITEA_CUSTOM`
  26. ;; - A built-in value set at build time (see building from source)
  27. ;; - Otherwise it defaults to _`AppWorkPath`_`/custom`
  28. ;; - If any of the above are relative paths then they are made absolute against the directory of the _`AppWorkPath`_
  29. ;; - _`CustomConf`_: This is the path to the `app.ini` file.
  30. ;; - The `--config` flag passed to the binary
  31. ;; - A built-in value set at build time (see building from source)
  32. ;; - Otherwise it defaults to _`CustomPath`_`/conf/app.ini`
  33. ;; - If any of the above are relative paths then they are made absolute against the directory of the _`CustomPath`_
  34. ;;
  35. ;; In addition there is _`StaticRootPath`_ which can be set as a built-in at build time, but will otherwise default to _`AppWorkPath`_
  36. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  37. ;; General Settings
  38. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  39. ;;
  40. ;; App name that shows in every page title
  41. APP_NAME = ; Gitea: Git with a cup of tea
  42. ;;
  43. ;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally
  44. RUN_USER = ; git
  45. ;;
  46. ;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod"
  47. ;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use.
  48. ;RUN_MODE = prod
  49. ;;
  50. ;; The working directory, see the comment of AppWorkPath above
  51. ;WORK_PATH =
  52. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  53. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  54. [server]
  55. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  56. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  57. ;;
  58. ;; The protocol the server listens on. One of 'http', 'https', 'http+unix', 'fcgi' or 'fcgi+unix'. Defaults to 'http'
  59. ;PROTOCOL = http
  60. ;;
  61. ;; Expect PROXY protocol headers on connections
  62. ;USE_PROXY_PROTOCOL = false
  63. ;;
  64. ;; Use PROXY protocol in TLS Bridging mode
  65. ;PROXY_PROTOCOL_TLS_BRIDGING = false
  66. ;;
  67. ; Timeout to wait for PROXY protocol header (set to 0 to have no timeout)
  68. ;PROXY_PROTOCOL_HEADER_TIMEOUT=5s
  69. ;;
  70. ; Accept PROXY protocol headers with UNKNOWN type
  71. ;PROXY_PROTOCOL_ACCEPT_UNKNOWN=false
  72. ;;
  73. ;; Set the domain for the server
  74. ;DOMAIN = localhost
  75. ;;
  76. ;; Overwrite the automatically generated public URL. Necessary for proxies and docker.
  77. ;ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
  78. ;;
  79. ;; when STATIC_URL_PREFIX is empty it will follow ROOT_URL
  80. ;STATIC_URL_PREFIX =
  81. ;;
  82. ;; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket.
  83. ;; If PROTOCOL is set to `http+unix` or `fcgi+unix`, this should be the name of the Unix socket file to use.
  84. ;; Relative paths will be made absolute against the _`AppWorkPath`_.
  85. ;HTTP_ADDR = 0.0.0.0
  86. ;;
  87. ;; The port to listen on. Leave empty when using a unix socket.
  88. ;HTTP_PORT = 3000
  89. ;;
  90. ;; If REDIRECT_OTHER_PORT is true, and PROTOCOL is set to https an http server
  91. ;; will be started on PORT_TO_REDIRECT and it will redirect plain, non-secure http requests to the main
  92. ;; ROOT_URL. Defaults are false for REDIRECT_OTHER_PORT and 80 for
  93. ;; PORT_TO_REDIRECT.
  94. ;REDIRECT_OTHER_PORT = false
  95. ;PORT_TO_REDIRECT = 80
  96. ;;
  97. ;; expect PROXY protocol header on connections to https redirector.
  98. ;REDIRECTOR_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s
  99. ;; Minimum and maximum supported TLS versions
  100. ;SSL_MIN_VERSION=TLSv1.2
  101. ;SSL_MAX_VERSION=
  102. ;;
  103. ;; SSL Curve Preferences
  104. ;SSL_CURVE_PREFERENCES=X25519,P256
  105. ;;
  106. ;; SSL Cipher Suites
  107. ;SSL_CIPHER_SUITES=; Will default to "ecdhe_ecdsa_with_aes_256_gcm_sha384,ecdhe_rsa_with_aes_256_gcm_sha384,ecdhe_ecdsa_with_aes_128_gcm_sha256,ecdhe_rsa_with_aes_128_gcm_sha256,ecdhe_ecdsa_with_chacha20_poly1305,ecdhe_rsa_with_chacha20_poly1305" if aes is supported by hardware, otherwise chacha will be first.
  108. ;;
  109. ;; Timeout for any write to the connection. (Set to -1 to disable all timeouts.)
  110. ;PER_WRITE_TIMEOUT = 30s
  111. ;;
  112. ;; Timeout per Kb written to connections.
  113. ;PER_WRITE_PER_KB_TIMEOUT = 30s
  114. ;;
  115. ;; Permission for unix socket
  116. ;UNIX_SOCKET_PERMISSION = 666
  117. ;;
  118. ;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
  119. ;; In most cases you do not need to change the default value.
  120. ;; Alter it only if your SSH server node is not the same as HTTP node.
  121. ;; Do not set this variable if PROTOCOL is set to 'unix'.
  122. ;LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
  123. ;;
  124. ;; When making local connections pass the PROXY protocol header.
  125. ;LOCAL_USE_PROXY_PROTOCOL = %(USE_PROXY_PROTOCOL)s
  126. ;;
  127. ;; Disable SSH feature when not available
  128. ;DISABLE_SSH = false
  129. ;;
  130. ;; Whether to use the builtin SSH server or not.
  131. ;START_SSH_SERVER = false
  132. ;;
  133. ;; Expect PROXY protocol header on connections to the built-in SSH server
  134. ;SSH_SERVER_USE_PROXY_PROTOCOL = false
  135. ;;
  136. ;; Username to use for the builtin SSH server. If blank, then it is the value of RUN_USER.
  137. ;BUILTIN_SSH_SERVER_USER = %(RUN_USER)s
  138. ;;
  139. ;; Domain name to be exposed in clone URL
  140. ;SSH_DOMAIN = %(DOMAIN)s
  141. ;;
  142. ;; SSH username displayed in clone URLs.
  143. ;SSH_USER = %(BUILTIN_SSH_SERVER_USER)s
  144. ;;
  145. ;; The network interface the builtin SSH server should listen on
  146. ;SSH_LISTEN_HOST =
  147. ;;
  148. ;; Port number to be exposed in clone URL
  149. ;SSH_PORT = 22
  150. ;;
  151. ;; The port number the builtin SSH server should listen on
  152. ;SSH_LISTEN_PORT = %(SSH_PORT)s
  153. ;;
  154. ;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
  155. ;SSH_ROOT_PATH =
  156. ;;
  157. ;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server
  158. ;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off.
  159. ;SSH_CREATE_AUTHORIZED_KEYS_FILE = true
  160. ;;
  161. ;; Gitea will create a authorized_principals file by default when it is not using the internal ssh server
  162. ;; If you intend to use the AuthorizedPrincipalsCommand functionality then you should turn this off.
  163. ;SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE = true
  164. ;;
  165. ;; For the built-in SSH server, choose the ciphers to support for SSH connections,
  166. ;; for system SSH this setting has no effect
  167. ;SSH_SERVER_CIPHERS = chacha20-poly1305@openssh.com, aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, aes256-gcm@openssh.com
  168. ;;
  169. ;; For the built-in SSH server, choose the key exchange algorithms to support for SSH connections,
  170. ;; for system SSH this setting has no effect
  171. ;SSH_SERVER_KEY_EXCHANGES = curve25519-sha256, ecdh-sha2-nistp256, ecdh-sha2-nistp384, ecdh-sha2-nistp521, diffie-hellman-group14-sha256, diffie-hellman-group14-sha1
  172. ;;
  173. ;; For the built-in SSH server, choose the MACs to support for SSH connections,
  174. ;; for system SSH this setting has no effect
  175. ;SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1
  176. ;;
  177. ;; For the built-in SSH server, choose the keypair to offer as the host key
  178. ;; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub
  179. ;; relative paths are made absolute relative to the %(APP_DATA_PATH)s
  180. ;SSH_SERVER_HOST_KEYS=ssh/gitea.rsa, ssh/gogs.rsa
  181. ;;
  182. ;; Directory to create temporary files in when testing public keys using ssh-keygen,
  183. ;; default is the system temporary directory.
  184. ;SSH_KEY_TEST_PATH =
  185. ;;
  186. ;; Use `ssh-keygen` to parse public SSH keys. The value is passed to the shell. By default, Gitea does the parsing itself.
  187. ;SSH_KEYGEN_PATH =
  188. ;;
  189. ;; Enable SSH Authorized Key Backup when rewriting all keys, default is true
  190. ;SSH_AUTHORIZED_KEYS_BACKUP = true
  191. ;;
  192. ;; Determines which principals to allow
  193. ;; - empty: if SSH_TRUSTED_USER_CA_KEYS is empty this will default to off, otherwise will default to email, username.
  194. ;; - off: Do not allow authorized principals
  195. ;; - email: the principal must match the user's email
  196. ;; - username: the principal must match the user's username
  197. ;; - anything: there will be no checking on the content of the principal
  198. ;SSH_AUTHORIZED_PRINCIPALS_ALLOW = email, username
  199. ;;
  200. ;; Enable SSH Authorized Principals Backup when rewriting all keys, default is true
  201. ;SSH_AUTHORIZED_PRINCIPALS_BACKUP = true
  202. ;;
  203. ;; Specifies the public keys of certificate authorities that are trusted to sign user certificates for authentication.
  204. ;; Multiple keys should be comma separated.
  205. ;; E.g."ssh-<algorithm> <key>". or "ssh-<algorithm> <key1>, ssh-<algorithm> <key2>".
  206. ;; For more information see "TrustedUserCAKeys" in the sshd config manpages.
  207. ;SSH_TRUSTED_USER_CA_KEYS =
  208. ;; Absolute path of the `TrustedUserCaKeys` file gitea will manage.
  209. ;; Default this `RUN_USER`/.ssh/gitea-trusted-user-ca-keys.pem
  210. ;; If you're running your own ssh server and you want to use the gitea managed file you'll also need to modify your
  211. ;; sshd_config to point to this file. The official docker image will automatically work without further configuration.
  212. ;SSH_TRUSTED_USER_CA_KEYS_FILENAME =
  213. ;;
  214. ;; Enable exposure of SSH clone URL to anonymous visitors, default is false
  215. ;SSH_EXPOSE_ANONYMOUS = false
  216. ;;
  217. ;; Timeout for any write to ssh connections. (Set to -1 to disable all timeouts.)
  218. ;; Will default to the PER_WRITE_TIMEOUT.
  219. ;SSH_PER_WRITE_TIMEOUT = 30s
  220. ;;
  221. ;; Timeout per Kb written to ssh connections.
  222. ;; Will default to the PER_WRITE_PER_KB_TIMEOUT.
  223. ;SSH_PER_WRITE_PER_KB_TIMEOUT = 30s
  224. ;;
  225. ;; Indicate whether to check minimum key size with corresponding type
  226. ;MINIMUM_KEY_SIZE_CHECK = false
  227. ;;
  228. ;; Disable CDN even in "prod" mode
  229. ;OFFLINE_MODE = false
  230. ;;
  231. ;; TLS Settings: Either ACME or manual
  232. ;; (Other common TLS configuration are found before)
  233. ;ENABLE_ACME = false
  234. ;;
  235. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  236. ;;
  237. ;; ACME automatic TLS settings
  238. ;;
  239. ;; ACME directory URL (e.g. LetsEncrypt's staging/testing URL: https://acme-staging-v02.api.letsencrypt.org/directory)
  240. ;; Leave empty to default to LetsEncrypt's (production) URL
  241. ;ACME_URL =
  242. ;;
  243. ;; Explicitly accept the ACME's TOS. The specific TOS cannot be retrieved at the moment.
  244. ;ACME_ACCEPTTOS = false
  245. ;;
  246. ;; If the ACME CA is not in your system's CA trust chain, it can be manually added here
  247. ;ACME_CA_ROOT =
  248. ;;
  249. ;; Email used for the ACME registration service
  250. ;; Can be left blank to initialize at first run and use the cached value
  251. ;ACME_EMAIL =
  252. ;;
  253. ;; ACME live directory (not to be confused with ACME directory URL: ACME_URL)
  254. ;; (Refer to caddy's ACME manager https://github.com/caddyserver/certmagic)
  255. ;ACME_DIRECTORY = https
  256. ;;
  257. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  258. ;;
  259. ;; Manual TLS settings: (Only applicable if ENABLE_ACME=false)
  260. ;;
  261. ;; Generate steps:
  262. ;; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com
  263. ;;
  264. ;; Or from a .pfx file exported from the Windows certificate store (do
  265. ;; not forget to export the private key):
  266. ;; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
  267. ;; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
  268. ;; Paths are relative to CUSTOM_PATH
  269. ;CERT_FILE = https/cert.pem
  270. ;KEY_FILE = https/key.pem
  271. ;;
  272. ;; Root directory containing templates and static files.
  273. ;; default is the path where Gitea is executed
  274. ;STATIC_ROOT_PATH = ; Will default to the built-in value _`StaticRootPath`_
  275. ;;
  276. ;; Default path for App data
  277. ;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_
  278. ;;
  279. ;; Enable gzip compression for runtime-generated content, static resources excluded
  280. ;ENABLE_GZIP = false
  281. ;;
  282. ;; Application profiling (memory and cpu)
  283. ;; For "web" command it listens on localhost:6060
  284. ;; For "serve" command it dumps to disk at PPROF_DATA_PATH as (cpuprofile|memprofile)_<username>_<temporary id>
  285. ;ENABLE_PPROF = false
  286. ;;
  287. ;; PPROF_DATA_PATH, use an absolute path when you start gitea as service
  288. ;PPROF_DATA_PATH = data/tmp/pprof ; Path is relative to _`AppWorkPath`_
  289. ;;
  290. ;; Landing page, can be "home", "explore", "organizations", "login", or any URL such as "/org/repo" or even "https://anotherwebsite.com"
  291. ;; The "login" choice is not a security measure but just a UI flow change, use REQUIRE_SIGNIN_VIEW to force users to log in.
  292. ;LANDING_PAGE = home
  293. ;;
  294. ;; Enables git-lfs support. true or false, default is false.
  295. ;LFS_START_SERVER = false
  296. ;;
  297. ;;
  298. ;; LFS authentication secret, change this yourself
  299. LFS_JWT_SECRET =
  300. ;;
  301. ;; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail.
  302. ;LFS_HTTP_AUTH_EXPIRY = 24h
  303. ;;
  304. ;; Maximum allowed LFS file size in bytes (Set to 0 for no limit).
  305. ;LFS_MAX_FILE_SIZE = 0
  306. ;;
  307. ;; Maximum number of locks returned per page
  308. ;LFS_LOCKS_PAGING_NUM = 50
  309. ;;
  310. ;; Allow graceful restarts using SIGHUP to fork
  311. ;ALLOW_GRACEFUL_RESTARTS = true
  312. ;;
  313. ;; After a restart the parent will finish ongoing requests before
  314. ;; shutting down. Force shutdown if this process takes longer than this delay.
  315. ;; set to a negative value to disable
  316. ;GRACEFUL_HAMMER_TIME = 60s
  317. ;;
  318. ;; Allows the setting of a startup timeout and waithint for Windows as SVC service
  319. ;; 0 disables this.
  320. ;STARTUP_TIMEOUT = 0
  321. ;;
  322. ;; Static resources, includes resources on custom/, public/ and all uploaded avatars web browser cache time. Note that this cache is disabled when RUN_MODE is "dev". Default is 6h
  323. ;STATIC_CACHE_TIME = 6h
  324. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  325. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  326. [database]
  327. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  328. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  329. ;;
  330. ;; Database to use. Either "mysql", "postgres", "mssql" or "sqlite3".
  331. ;;
  332. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  333. ;;
  334. ;; MySQL Configuration
  335. ;;
  336. DB_TYPE = mysql
  337. HOST = 127.0.0.1:3306 ; can use socket e.g. /var/run/mysqld/mysqld.sock
  338. NAME = gitea
  339. USER = root
  340. ;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password.
  341. ;SSL_MODE = false ; either "false" (default), "true", or "skip-verify"
  342. ;CHARSET = utf8mb4 ;either "utf8" or "utf8mb4", default is "utf8mb4".
  343. ;;
  344. ;; NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this.
  345. ;;
  346. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  347. ;;
  348. ;; Postgres Configuration
  349. ;;
  350. ;DB_TYPE = postgres
  351. ;HOST = 127.0.0.1:5432 ; can use socket e.g. /var/run/postgresql/
  352. ;NAME = gitea
  353. ;USER = root
  354. ;PASSWD =
  355. ;SCHEMA =
  356. ;SSL_MODE=disable ;either "disable" (default), "require", or "verify-full"
  357. ;;
  358. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  359. ;;
  360. ;; SQLite Configuration
  361. ;;
  362. ;DB_TYPE = sqlite3
  363. ;PATH= ; defaults to data/gitea.db
  364. ;SQLITE_TIMEOUT = ; Query timeout defaults to: 500
  365. ;SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode
  366. ;;
  367. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  368. ;;
  369. ;; MSSQL Configuration
  370. ;;
  371. ;DB_TYPE = mssql
  372. ;HOST = 172.17.0.2:1433
  373. ;NAME = gitea
  374. ;USER = SA
  375. ;PASSWD = MwantsaSecurePassword1
  376. ;;
  377. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  378. ;;
  379. ;; Other settings
  380. ;;
  381. ;; For iterate buffer, default is 50
  382. ;ITERATE_BUFFER_SIZE = 50
  383. ;;
  384. ;; Show the database generated SQL
  385. ;LOG_SQL = false
  386. ;;
  387. ;; Maximum number of DB Connect retries
  388. ;DB_RETRIES = 10
  389. ;;
  390. ;; Backoff time per DB retry (time.Duration)
  391. ;DB_RETRY_BACKOFF = 3s
  392. ;;
  393. ;; Max idle database connections on connection pool, default is 2
  394. ;MAX_IDLE_CONNS = 2
  395. ;;
  396. ;; Database connection max life time, default is 0 or 3s mysql (See #6804 & #7071 for reasoning)
  397. ;CONN_MAX_LIFETIME = 3s
  398. ;;
  399. ;; Database maximum number of open connections, default is 0 meaning no maximum
  400. ;MAX_OPEN_CONNS = 0
  401. ;;
  402. ;; Whether execute database models migrations automatically
  403. ;AUTO_MIGRATION = true
  404. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  405. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  406. [security]
  407. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  408. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  409. ;;
  410. ;; Whether the installer is disabled (set to true to disable the installer)
  411. INSTALL_LOCK = false
  412. ;;
  413. ;; Global secret key that will be used
  414. ;; This key is VERY IMPORTANT. If you lose it, the data encrypted by it (like 2FA secret) can't be decrypted anymore.
  415. SECRET_KEY =
  416. ;;
  417. ;; Alternative location to specify secret key, instead of this file; you cannot specify both this and SECRET_KEY, and must pick one
  418. ;; This key is VERY IMPORTANT. If you lose it, the data encrypted by it (like 2FA secret) can't be decrypted anymore.
  419. ;SECRET_KEY_URI = file:/etc/gitea/secret_key
  420. ;;
  421. ;; Secret used to validate communication within Gitea binary.
  422. INTERNAL_TOKEN=
  423. ;;
  424. ;; Alternative location to specify internal token, instead of this file; you cannot specify both this and INTERNAL_TOKEN, and must pick one
  425. ;INTERNAL_TOKEN_URI = file:/etc/gitea/internal_token
  426. ;;
  427. ;; How long to remember that a user is logged in before requiring relogin (in days)
  428. ;LOGIN_REMEMBER_DAYS = 7
  429. ;;
  430. ;; Name of the cookie used to store the current username.
  431. ;COOKIE_USERNAME = gitea_awesome
  432. ;;
  433. ;; Name of cookie used to store authentication information.
  434. ;COOKIE_REMEMBER_NAME = gitea_incredible
  435. ;;
  436. ;; Reverse proxy authentication header name of user name, email, and full name
  437. ;REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
  438. ;REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL
  439. ;REVERSE_PROXY_AUTHENTICATION_FULL_NAME = X-WEBAUTH-FULLNAME
  440. ;;
  441. ;; Interpret X-Forwarded-For header or the X-Real-IP header and set this as the remote IP for the request
  442. ;REVERSE_PROXY_LIMIT = 1
  443. ;;
  444. ;; List of IP addresses and networks separated by comma of trusted proxy servers. Use `*` to trust all.
  445. ;REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
  446. ;;
  447. ;; The minimum password length for new Users
  448. ;MIN_PASSWORD_LENGTH = 6
  449. ;;
  450. ;; Set to true to allow users to import local server paths
  451. ;IMPORT_LOCAL_PATHS = false
  452. ;;
  453. ;; Set to false to allow users with git hook privileges to create custom git hooks.
  454. ;; Custom git hooks can be used to perform arbitrary code execution on the host operating system.
  455. ;; This enables the users to access and modify this config file and the Gitea database and interrupt the Gitea service.
  456. ;; By modifying the Gitea database, users can gain Gitea administrator privileges.
  457. ;; It also enables them to access other resources available to the user on the operating system that is running the Gitea instance and perform arbitrary actions in the name of the Gitea OS user.
  458. ;; WARNING: This maybe harmful to you website or your operating system.
  459. ;; WARNING: Setting this to true does not change existing hooks in git repos; adjust it before if necessary.
  460. ;DISABLE_GIT_HOOKS = true
  461. ;;
  462. ;; Set to true to disable webhooks feature.
  463. ;DISABLE_WEBHOOKS = false
  464. ;;
  465. ;; Set to false to allow pushes to gitea repositories despite having an incomplete environment - NOT RECOMMENDED
  466. ;ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET = true
  467. ;;
  468. ;;Comma separated list of character classes required to pass minimum complexity.
  469. ;;If left empty or no valid values are specified, the default is off (no checking)
  470. ;;Classes include "lower,upper,digit,spec"
  471. ;PASSWORD_COMPLEXITY = off
  472. ;;
  473. ;; Password Hash algorithm, either "argon2", "pbkdf2", "scrypt" or "bcrypt"
  474. ;PASSWORD_HASH_ALGO = pbkdf2
  475. ;;
  476. ;; Set false to allow JavaScript to read CSRF cookie
  477. ;CSRF_COOKIE_HTTP_ONLY = true
  478. ;;
  479. ;; Validate against https://haveibeenpwned.com/Passwords to see if a password has been exposed
  480. ;PASSWORD_CHECK_PWN = false
  481. ;;
  482. ;; Cache successful token hashes. API tokens are stored in the DB as pbkdf2 hashes however, this means that there is a potentially significant hashing load when there are multiple API operations.
  483. ;; This cache will store the successfully hashed tokens in a LRU cache as a balance between performance and security.
  484. ;SUCCESSFUL_TOKENS_CACHE_SIZE = 20
  485. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  486. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  487. [camo]
  488. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  489. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  490. ;;
  491. ;; At the moment we only support images
  492. ;;
  493. ;; if the camo is enabled
  494. ;ENABLED = false
  495. ;; url to a camo image proxy, it **is required** if camo is enabled.
  496. ;SERVER_URL =
  497. ;; HMAC to encode urls with, it **is required** if camo is enabled.
  498. ;HMAC_KEY =
  499. ;; Set to true to use camo for https too lese only non https urls are proxyed
  500. ;ALLWAYS = false
  501. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  502. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  503. [oauth2]
  504. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  505. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  506. ;;
  507. ;; Enables OAuth2 provider
  508. ENABLE = true
  509. ;;
  510. ;; Algorithm used to sign OAuth2 tokens. Valid values: HS256, HS384, HS512, RS256, RS384, RS512, ES256, ES384, ES512, EdDSA
  511. ;JWT_SIGNING_ALGORITHM = RS256
  512. ;;
  513. ;; Private key file path used to sign OAuth2 tokens. The path is relative to APP_DATA_PATH.
  514. ;; This setting is only needed if JWT_SIGNING_ALGORITHM is set to RS256, RS384, RS512, ES256, ES384 or ES512.
  515. ;; The file must contain a RSA or ECDSA private key in the PKCS8 format. If no key exists a 4096 bit key will be created for you.
  516. ;JWT_SIGNING_PRIVATE_KEY_FILE = jwt/private.pem
  517. ;;
  518. ;; OAuth2 authentication secret for access and refresh tokens, change this yourself to a unique string. CLI generate option is helpful in this case. https://docs.gitea.io/en-us/command-line/#generate
  519. ;; This setting is only needed if JWT_SIGNING_ALGORITHM is set to HS256, HS384 or HS512.
  520. ;JWT_SECRET =
  521. ;;
  522. ;; Lifetime of an OAuth2 access token in seconds
  523. ;ACCESS_TOKEN_EXPIRATION_TIME = 3600
  524. ;;
  525. ;; Lifetime of an OAuth2 refresh token in hours
  526. ;REFRESH_TOKEN_EXPIRATION_TIME = 730
  527. ;;
  528. ;; Check if refresh token got already used
  529. ;INVALIDATE_REFRESH_TOKENS = false
  530. ;;
  531. ;; Maximum length of oauth2 token/cookie stored on server
  532. ;MAX_TOKEN_LENGTH = 32767
  533. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  534. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  535. [log]
  536. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  537. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  538. ;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log
  539. ;ROOT_PATH =
  540. ;;
  541. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  542. ;; Main Logger
  543. ;;
  544. ;; Either "console", "file" or "conn", default is "console"
  545. ;; Use comma to separate multiple modes, e.g. "console, file"
  546. MODE = console
  547. ;;
  548. ;; Either "Trace", "Debug", "Info", "Warn", "Error" or "None", default is "Info"
  549. LEVEL = Info
  550. ;;
  551. ;; Print Stacktrace with logs (rarely helpful, do not set) Either "Trace", "Debug", "Info", "Warn", "Error", default is "None"
  552. ;STACKTRACE_LEVEL = None
  553. ;;
  554. ;; Buffer length of the channel, keep it as it is if you don't know what it is.
  555. ;BUFFER_LEN = 10000
  556. ;;
  557. ;; Sub logger modes, a single comma means use default MODE above, empty means disable it
  558. ;logger.access.MODE=
  559. ;logger.router.MODE=,
  560. ;logger.xorm.MODE=,
  561. ;;
  562. ;; Collect SSH logs (Creates log from ssh git request)
  563. ;;
  564. ;ENABLE_SSH_LOG = false
  565. ;;
  566. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  567. ;;
  568. ;; Access Logger (Creates log in NCSA common log format)
  569. ;;
  570. ;; Print request id which parsed from request headers in access log, when access log is enabled.
  571. ;; * E.g:
  572. ;; * In request Header: X-Request-ID: test-id-123
  573. ;; * Configuration in app.ini: REQUEST_ID_HEADERS = X-Request-ID
  574. ;; * Print in log: 127.0.0.1:58384 - - [14/Feb/2023:16:33:51 +0800] "test-id-123"
  575. ;;
  576. ;; If you configure more than one in the .ini file, it will match in the order of configuration,
  577. ;; and the first match will be finally printed in the log.
  578. ;; * E.g:
  579. ;; * In request Header: X-Trace-ID: trace-id-1q2w3e4r
  580. ;; * Configuration in app.ini: REQUEST_ID_HEADERS = X-Request-ID, X-Trace-ID, X-Req-ID
  581. ;; * Print in log: 127.0.0.1:58384 - - [14/Feb/2023:16:33:51 +0800] "trace-id-1q2w3e4r"
  582. ;;
  583. ;REQUEST_ID_HEADERS =
  584. ;;
  585. ;; Sets the template used to create the access log.
  586. ;ACCESS_LOG_TEMPLATE = {{.Ctx.RemoteHost}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.URL.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}" "{{.Ctx.Req.UserAgent}}"
  587. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  588. ;;
  589. ;; Log modes (aka log writers)
  590. ;;
  591. ;[log.%(WriterMode)]
  592. ;MODE=console/file/conn/...
  593. ;LEVEL=
  594. ;FLAGS = stdflags
  595. ;EXPRESSION =
  596. ;PREFIX =
  597. ;COLORIZE = false
  598. ;;
  599. ;[log.console]
  600. ;STDERR = false
  601. ;;
  602. ;[log.file]
  603. ;; Set the file_name for the logger. If this is a relative path this will be relative to ROOT_PATH
  604. ;FILE_NAME =
  605. ;; This enables automated log rotate(switch of following options), default is true
  606. ;LOG_ROTATE = true
  607. ;; Max size shift of a single file, default is 28 means 1 << 28, 256MB
  608. ;MAX_SIZE_SHIFT = 28
  609. ;; Segment log daily, default is true
  610. ;DAILY_ROTATE = true
  611. ;; delete the log file after n days, default is 7
  612. ;MAX_DAYS = 7
  613. ;; compress logs with gzip
  614. ;COMPRESS = true
  615. ;; compression level see godoc for compress/gzip
  616. ;COMPRESSION_LEVEL = -1
  617. ;;
  618. ;[log.conn]
  619. ;; Reconnect host for every single message, default is false
  620. ;RECONNECT_ON_MSG = false
  621. ;; Try to reconnect when connection is lost, default is false
  622. ;RECONNECT = false
  623. ;; Either "tcp", "unix" or "udp", default is "tcp"
  624. ;PROTOCOL = tcp
  625. ;; Host address
  626. ;ADDR =
  627. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  628. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  629. [git]
  630. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  631. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  632. ;;
  633. ;; The path of git executable. If empty, Gitea searches through the PATH environment.
  634. ;PATH =
  635. ;;
  636. ;; The HOME directory for Git
  637. ;HOME_PATH = %(APP_DATA_PATH)s/home
  638. ;;
  639. ;; Disables highlight of added and removed changes
  640. ;DISABLE_DIFF_HIGHLIGHT = false
  641. ;;
  642. ;; Max number of lines allowed in a single file in diff view
  643. ;MAX_GIT_DIFF_LINES = 1000
  644. ;;
  645. ;; Max number of allowed characters in a line in diff view
  646. ;MAX_GIT_DIFF_LINE_CHARACTERS = 5000
  647. ;;
  648. ;; Max number of files shown in diff view
  649. ;MAX_GIT_DIFF_FILES = 100
  650. ;;
  651. ;; Set the default commits range size
  652. ;COMMITS_RANGE_SIZE = 50
  653. ;;
  654. ;; Set the default branches range size
  655. ;BRANCHES_RANGE_SIZE = 20
  656. ;;
  657. ;; Arguments for command 'git gc', e.g. "--aggressive --auto"
  658. ;; see more on http://git-scm.com/docs/git-gc/
  659. ;GC_ARGS =
  660. ;;
  661. ;; If use git wire protocol version 2 when git version >= 2.18, default is true, set to false when you always want git wire protocol version 1
  662. ;; To enable this for Git over SSH when using a OpenSSH server, add `AcceptEnv GIT_PROTOCOL` to your sshd_config file.
  663. ;ENABLE_AUTO_GIT_WIRE_PROTOCOL = true
  664. ;;
  665. ;; Respond to pushes to a non-default branch with a URL for creating a Pull Request (if the repository has them enabled)
  666. ;PULL_REQUEST_PUSH_MESSAGE = true
  667. ;;
  668. ;; (Go-Git only) Don't cache objects greater than this in memory. (Set to 0 to disable.)
  669. ;LARGE_OBJECT_THRESHOLD = 1048576
  670. ;; Set to true to forcibly set core.protectNTFS=false
  671. ;DISABLE_CORE_PROTECT_NTFS=false
  672. ;; Disable the usage of using partial clones for git.
  673. ;DISABLE_PARTIAL_CLONE = false
  674. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  675. ;; Git Operation timeout in seconds
  676. ;[git.timeout]
  677. ;DEFAULT = 360
  678. ;MIGRATE = 600
  679. ;MIRROR = 300
  680. ;CLONE = 300
  681. ;PULL = 300
  682. ;GC = 60
  683. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  684. ;; Git config options
  685. ;; This section only does "set" config, a removed config key from this section won't be removed from git config automatically. The format is `some.configKey = value`.
  686. ;[git.config]
  687. ;diff.algorithm = histogram
  688. ;core.logAllRefUpdates = true
  689. ;gc.reflogExpire = 90
  690. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  691. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  692. [service]
  693. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  694. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  695. ;;
  696. ;; Time limit to confirm account/email registration
  697. ;ACTIVE_CODE_LIVE_MINUTES = 180
  698. ;;
  699. ;; Time limit to perform the reset of a forgotten password
  700. ;RESET_PASSWD_CODE_LIVE_MINUTES = 180
  701. ;;
  702. ;; Whether a new user needs to confirm their email when registering.
  703. ;REGISTER_EMAIL_CONFIRM = false
  704. ;;
  705. ;; Whether a new user needs to be confirmed manually after registration. (Requires `REGISTER_EMAIL_CONFIRM` to be disabled.)
  706. ;REGISTER_MANUAL_CONFIRM = false
  707. ;;
  708. ;; List of domain names that are allowed to be used to register on a Gitea instance, wildcard is supported
  709. ;; eg: gitea.io,example.com,*.mydomain.com
  710. ;EMAIL_DOMAIN_ALLOWLIST =
  711. ;;
  712. ;; Comma-separated list of domain names that are not allowed to be used to register on a Gitea instance, wildcard is supported
  713. ;EMAIL_DOMAIN_BLOCKLIST =
  714. ;;
  715. ;; Disallow registration, only allow admins to create accounts.
  716. ;DISABLE_REGISTRATION = false
  717. ;;
  718. ;; Allow registration only using gitea itself, it works only when DISABLE_REGISTRATION is false
  719. ;ALLOW_ONLY_INTERNAL_REGISTRATION = false
  720. ;;
  721. ;; Allow registration only using third-party services, it works only when DISABLE_REGISTRATION is false
  722. ;ALLOW_ONLY_EXTERNAL_REGISTRATION = false
  723. ;;
  724. ;; User must sign in to view anything.
  725. ;REQUIRE_SIGNIN_VIEW = false
  726. ;;
  727. ;; Mail notification
  728. ;ENABLE_NOTIFY_MAIL = false
  729. ;;
  730. ;; This setting enables gitea to be signed in with HTTP BASIC Authentication using the user's password
  731. ;; If you set this to false you will not be able to access the tokens endpoints on the API with your password
  732. ;; Please note that setting this to false will not disable OAuth Basic or Basic authentication using a token
  733. ;ENABLE_BASIC_AUTHENTICATION = true
  734. ;;
  735. ;; More detail: https://github.com/gogits/gogs/issues/165
  736. ;ENABLE_REVERSE_PROXY_AUTHENTICATION = false
  737. ;ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
  738. ;ENABLE_REVERSE_PROXY_EMAIL = false
  739. ;ENABLE_REVERSE_PROXY_FULL_NAME = false
  740. ;;
  741. ;; Enable captcha validation for registration
  742. ;ENABLE_CAPTCHA = false
  743. ;;
  744. ;; Enable this to require captcha validation for login
  745. ;REQUIRE_CAPTCHA_FOR_LOGIN = false
  746. ;;
  747. ;; Type of captcha you want to use. Options: image, recaptcha, hcaptcha, mcaptcha, cfturnstile.
  748. ;CAPTCHA_TYPE = image
  749. ;;
  750. ;; Change this to use recaptcha.net or other recaptcha service
  751. ;RECAPTCHA_URL = https://www.google.com/recaptcha/
  752. ;; Enable recaptcha to use Google's recaptcha service
  753. ;; Go to https://www.google.com/recaptcha/admin to sign up for a key
  754. ;RECAPTCHA_SECRET =
  755. ;RECAPTCHA_SITEKEY =
  756. ;;
  757. ;; For hCaptcha, create an account at https://accounts.hcaptcha.com/login to get your keys
  758. ;HCAPTCHA_SECRET =
  759. ;HCAPTCHA_SITEKEY =
  760. ;;
  761. ;; Change this to use demo.mcaptcha.org or your self-hosted mcaptcha.org instance.
  762. ;MCAPTCHA_URL = https://demo.mcaptcha.org
  763. ;;
  764. ;; Go to your configured mCaptcha instance and register a sitekey
  765. ;; and use your account's secret.
  766. ;MCAPTCHA_SECRET =
  767. ;MCAPTCHA_SITEKEY =
  768. ;;
  769. ;; Go to https://dash.cloudflare.com/?to=/:account/turnstile to sign up for a key
  770. ;CF_TURNSTILE_SITEKEY =
  771. ;CF_TURNSTILE_SECRET =
  772. ;;
  773. ;; Default value for KeepEmailPrivate
  774. ;; Each new user will get the value of this setting copied into their profile
  775. ;DEFAULT_KEEP_EMAIL_PRIVATE = false
  776. ;;
  777. ;; Default value for AllowCreateOrganization
  778. ;; Every new user will have rights set to create organizations depending on this setting
  779. ;DEFAULT_ALLOW_CREATE_ORGANIZATION = true
  780. ;; Default value for IsRestricted
  781. ;; Every new user will have restricted permissions depending on this setting
  782. ;DEFAULT_USER_IS_RESTRICTED = false
  783. ;;
  784. ;; Either "public", "limited" or "private", default is "public"
  785. ;; Limited is for users visible only to signed users
  786. ;; Private is for users visible only to members of their organizations
  787. ;; Public is for users visible for everyone
  788. ;DEFAULT_USER_VISIBILITY = public
  789. ;;
  790. ;; Set which visibility modes a user can have
  791. ;ALLOWED_USER_VISIBILITY_MODES = public,limited,private
  792. ;;
  793. ;; Either "public", "limited" or "private", default is "public"
  794. ;; Limited is for organizations visible only to signed users
  795. ;; Private is for organizations visible only to members of the organization
  796. ;; Public is for organizations visible to everyone
  797. ;DEFAULT_ORG_VISIBILITY = public
  798. ;;
  799. ;; Default value for DefaultOrgMemberVisible
  800. ;; True will make the membership of the users visible when added to the organisation
  801. ;DEFAULT_ORG_MEMBER_VISIBLE = false
  802. ;;
  803. ;; Default value for EnableDependencies
  804. ;; Repositories will use dependencies by default depending on this setting
  805. ;DEFAULT_ENABLE_DEPENDENCIES = true
  806. ;;
  807. ;; Dependencies can be added from any repository where the user is granted access or only from the current repository depending on this setting.
  808. ;ALLOW_CROSS_REPOSITORY_DEPENDENCIES = true
  809. ;;
  810. ;; Enable heatmap on users profiles.
  811. ;ENABLE_USER_HEATMAP = true
  812. ;;
  813. ;; Enable Timetracking
  814. ;ENABLE_TIMETRACKING = true
  815. ;;
  816. ;; Default value for EnableTimetracking
  817. ;; Repositories will use timetracking by default depending on this setting
  818. ;DEFAULT_ENABLE_TIMETRACKING = true
  819. ;;
  820. ;; Default value for AllowOnlyContributorsToTrackTime
  821. ;; Only users with write permissions can track time if this is true
  822. ;DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true
  823. ;;
  824. ;; Value for the domain part of the user's email address in the git log if user
  825. ;; has set KeepEmailPrivate to true. The user's email will be replaced with a
  826. ;; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. Default
  827. ;; value is "noreply." + DOMAIN, where DOMAIN resolves to the value from server.DOMAIN
  828. ;; Note: do not use the <DOMAIN> notation below
  829. ;NO_REPLY_ADDRESS = ; noreply.<DOMAIN>
  830. ;;
  831. ;; Show Registration button
  832. ;SHOW_REGISTRATION_BUTTON = true
  833. ;;
  834. ;; Show milestones dashboard page - a view of all the user's milestones
  835. ;SHOW_MILESTONES_DASHBOARD_PAGE = true
  836. ;;
  837. ;; Default value for AutoWatchNewRepos
  838. ;; When adding a repo to a team or creating a new repo all team members will watch the
  839. ;; repo automatically if enabled
  840. ;AUTO_WATCH_NEW_REPOS = true
  841. ;;
  842. ;; Default value for AutoWatchOnChanges
  843. ;; Make the user watch a repository When they commit for the first time
  844. ;AUTO_WATCH_ON_CHANGES = false
  845. ;;
  846. ;; Minimum amount of time a user must exist before comments are kept when the user is deleted.
  847. ;USER_DELETE_WITH_COMMENTS_MAX_TIME = 0
  848. ;; Valid site url schemes for user profiles
  849. ;VALID_SITE_URL_SCHEMES=http,https
  850. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  851. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  852. ;; Other Settings
  853. ;;
  854. ;; Uncomment the [section.header] if you wish to
  855. ;; set the below settings.
  856. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  857. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  858. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  859. ;[repository]
  860. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  861. ;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories.
  862. ;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s
  863. ;ROOT =
  864. ;;
  865. ;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
  866. ;SCRIPT_TYPE = bash
  867. ;;
  868. ;; DETECTED_CHARSETS_ORDER tie-break order for detected charsets.
  869. ;; If the charsets have equal confidence, tie-breaking will be done by order in this list
  870. ;; with charsets earlier in the list chosen in preference to those later.
  871. ;; Adding "defaults" will place the unused charsets at that position.
  872. ;DETECTED_CHARSETS_ORDER = UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE, ISO-8859, windows-1252, ISO-8859, windows-1250, ISO-8859, ISO-8859, ISO-8859, windows-1253, ISO-8859, windows-1255, ISO-8859, windows-1251, windows-1256, KOI8-R, ISO-8859, windows-1254, Shift_JIS, GB18030, EUC-JP, EUC-KR, Big5, ISO-2022, ISO-2022, ISO-2022, IBM424_rtl, IBM424_ltr, IBM420_rtl, IBM420_ltr
  873. ;;
  874. ;; Default ANSI charset to override non-UTF-8 charsets to
  875. ;ANSI_CHARSET =
  876. ;;
  877. ;; Force every new repository to be private
  878. ;FORCE_PRIVATE = false
  879. ;;
  880. ;; Default privacy setting when creating a new repository, allowed values: last, private, public. Default is last which means the last setting used.
  881. ;DEFAULT_PRIVATE = last
  882. ;;
  883. ;; Default private when using push-to-create
  884. ;DEFAULT_PUSH_CREATE_PRIVATE = true
  885. ;;
  886. ;; Global limit of repositories per user, applied at creation time. -1 means no limit
  887. ;MAX_CREATION_LIMIT = -1
  888. ;;
  889. ;; Preferred Licenses to place at the top of the List
  890. ;; The name here must match the filename in options/license or custom/options/license
  891. ;PREFERRED_LICENSES = Apache License 2.0,MIT License
  892. ;;
  893. ;; Disable the ability to interact with repositories using the HTTP protocol
  894. ;DISABLE_HTTP_GIT = false
  895. ;;
  896. ;; Value for Access-Control-Allow-Origin header, default is not to present
  897. ;; WARNING: This may be harmful to your website if you do not give it a right value.
  898. ;ACCESS_CONTROL_ALLOW_ORIGIN =
  899. ;;
  900. ;; Force ssh:// clone url instead of scp-style uri when default SSH port is used
  901. ;USE_COMPAT_SSH_URI = false
  902. ;;
  903. ;; Value for the "go get" request returns the repository url as https or ssh, default is https
  904. ;GO_GET_CLONE_URL_PROTOCOL = https
  905. ;;
  906. ;; Close issues as long as a commit on any branch marks it as fixed
  907. ;; Comma separated list of globally disabled repo units. Allowed values: repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects, repo.packages, repo.actions.
  908. ;DISABLED_REPO_UNITS =
  909. ;;
  910. ;; Comma separated list of default new repo units. Allowed values: repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects, repo.packages, repo.actions.
  911. ;; Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility.
  912. ;; External wiki and issue tracker can't be enabled by default as it requires additional settings.
  913. ;; Disabled repo units will not be added to new repositories regardless if it is in the default list.
  914. ;DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages
  915. ;;
  916. ;; Comma separated list of default forked repo units.
  917. ;; The set of allowed values and rules are the same as DEFAULT_REPO_UNITS.
  918. ;DEFAULT_FORK_REPO_UNITS = repo.code,repo.pulls
  919. ;;
  920. ;; Prefix archive files by placing them in a directory named after the repository
  921. ;PREFIX_ARCHIVE_FILES = true
  922. ;;
  923. ;; Disable migrating feature.
  924. ;DISABLE_MIGRATIONS = false
  925. ;;
  926. ;; Disable stars feature.
  927. ;DISABLE_STARS = false
  928. ;;
  929. ;; The default branch name of new repositories
  930. ;DEFAULT_BRANCH = main
  931. ;;
  932. ;; Allow adoption of unadopted repositories
  933. ;ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES = false
  934. ;;
  935. ;; Allow deletion of unadopted repositories
  936. ;ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES = false
  937. ;; Don't allow download source archive files from UI
  938. ;DISABLE_DOWNLOAD_SOURCE_ARCHIVES = false
  939. ;; Allow fork repositories without maximum number limit
  940. ;ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT = true
  941. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  942. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  943. ;[repository.editor]
  944. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  945. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  946. ;;
  947. ;; List of file extensions for which lines should be wrapped in the Monaco editor
  948. ;; Separate extensions with a comma. To line wrap files without an extension, just put a comma
  949. ;LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,.livemd,
  950. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  951. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  952. ;[repository.local]
  953. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  954. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  955. ;;
  956. ;; Path for local repository copy. Defaults to `tmp/local-repo` (content gets deleted on gitea restart)
  957. ;LOCAL_COPY_PATH = tmp/local-repo
  958. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  959. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  960. ;[repository.upload]
  961. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  962. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  963. ;;
  964. ;; Whether repository file uploads are enabled. Defaults to `true`
  965. ;ENABLED = true
  966. ;;
  967. ;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart)
  968. ;TEMP_PATH = data/tmp/uploads
  969. ;;
  970. ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
  971. ;ALLOWED_TYPES =
  972. ;;
  973. ;; Max size of each file in megabytes. Defaults to 3MB
  974. ;FILE_MAX_SIZE = 3
  975. ;;
  976. ;; Max number of files per upload. Defaults to 5
  977. ;MAX_FILES = 5
  978. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  979. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  980. ;[repository.pull-request]
  981. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  982. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  983. ;;
  984. ;; List of prefixes used in Pull Request title to mark them as Work In Progress (matched in a case-insensitive manner)
  985. ;WORK_IN_PROGRESS_PREFIXES = WIP:,[WIP]
  986. ;;
  987. ;; List of keywords used in Pull Request comments to automatically close a related issue
  988. ;CLOSE_KEYWORDS = close,closes,closed,fix,fixes,fixed,resolve,resolves,resolved
  989. ;;
  990. ;; List of keywords used in Pull Request comments to automatically reopen a related issue
  991. ;REOPEN_KEYWORDS = reopen,reopens,reopened
  992. ;;
  993. ;; Set default merge style for repository creating, valid options: merge, rebase, rebase-merge, squash
  994. ;DEFAULT_MERGE_STYLE = merge
  995. ;;
  996. ;; In the default merge message for squash commits include at most this many commits
  997. ;DEFAULT_MERGE_MESSAGE_COMMITS_LIMIT = 50
  998. ;;
  999. ;; In the default merge message for squash commits limit the size of the commit messages to this
  1000. ;DEFAULT_MERGE_MESSAGE_SIZE = 5120
  1001. ;;
  1002. ;; In the default merge message for squash commits walk all commits to include all authors in the Co-authored-by otherwise just use those in the limited list
  1003. ;DEFAULT_MERGE_MESSAGE_ALL_AUTHORS = false
  1004. ;;
  1005. ;; In default merge messages limit the number of approvers listed as Reviewed-by: to this many
  1006. ;DEFAULT_MERGE_MESSAGE_MAX_APPROVERS = 10
  1007. ;;
  1008. ;; In default merge messages only include approvers who are official
  1009. ;DEFAULT_MERGE_MESSAGE_OFFICIAL_APPROVERS_ONLY = true
  1010. ;;
  1011. ;; Add co-authored-by and co-committed-by trailers if committer does not match author
  1012. ;ADD_CO_COMMITTER_TRAILERS = true
  1013. ;;
  1014. ;; In addition to testing patches using the three-way merge method, re-test conflicting patches with git apply
  1015. ;TEST_CONFLICTING_PATCHES_WITH_GIT_APPLY = false
  1016. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1017. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1018. ;[repository.issue]
  1019. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1020. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1021. ;; List of reasons why a Pull Request or Issue can be locked
  1022. ;LOCK_REASONS = Too heated,Off-topic,Resolved,Spam
  1023. ;; Maximum number of pinned Issues per repo
  1024. ;; Set to 0 to disable pinning Issues
  1025. ;MAX_PINNED = 3
  1026. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1027. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1028. ;[repository.release]
  1029. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1030. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1031. ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
  1032. ;ALLOWED_TYPES =
  1033. ;DEFAULT_PAGING_NUM = 10
  1034. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1035. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1036. ;[repository.signing]
  1037. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1038. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1039. ;;
  1040. ;; GPG key to use to sign commits, Defaults to the default - that is the value of git config --get user.signingkey
  1041. ;; run in the context of the RUN_USER
  1042. ;; Switch to none to stop signing completely
  1043. ;SIGNING_KEY = default
  1044. ;;
  1045. ;; If a SIGNING_KEY ID is provided and is not set to default, use the provided Name and Email address as the signer.
  1046. ;; These should match a publicized name and email address for the key. (When SIGNING_KEY is default these are set to
  1047. ;; the results of git config --get user.name and git config --get user.email respectively and can only be overridden
  1048. ;; by setting the SIGNING_KEY ID to the correct ID.)
  1049. ;SIGNING_NAME =
  1050. ;SIGNING_EMAIL =
  1051. ;;
  1052. ;; Sets the default trust model for repositories. Options are: collaborator, committer, collaboratorcommitter
  1053. ;DEFAULT_TRUST_MODEL = collaborator
  1054. ;;
  1055. ;; Determines when gitea should sign the initial commit when creating a repository
  1056. ;; Either:
  1057. ;; - never
  1058. ;; - pubkey: only sign if the user has a pubkey
  1059. ;; - twofa: only sign if the user has logged in with twofa
  1060. ;; - always
  1061. ;; options other than none and always can be combined as comma separated list
  1062. ;INITIAL_COMMIT = always
  1063. ;;
  1064. ;; Determines when to sign for CRUD actions
  1065. ;; - as above
  1066. ;; - parentsigned: requires that the parent commit is signed.
  1067. ;CRUD_ACTIONS = pubkey, twofa, parentsigned
  1068. ;; Determines when to sign Wiki commits
  1069. ;; - as above
  1070. ;WIKI = never
  1071. ;;
  1072. ;; Determines when to sign on merges
  1073. ;; - basesigned: require that the parent of commit on the base repo is signed.
  1074. ;; - commitssigned: require that all the commits in the head branch are signed.
  1075. ;; - approved: only sign when merging an approved pr to a protected branch
  1076. ;MERGES = pubkey, twofa, basesigned, commitssigned
  1077. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1078. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1079. ;[repository.mimetype_mapping]
  1080. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1081. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1082. ;;
  1083. ;; Custom MIME type mapping for downloadable files
  1084. ;.apk=application/vnd.android.package-archive
  1085. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1086. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1087. ;[project]
  1088. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1089. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1090. ;; Default templates for project boards
  1091. ;PROJECT_BOARD_BASIC_KANBAN_TYPE = To Do, In Progress, Done
  1092. ;PROJECT_BOARD_BUG_TRIAGE_TYPE = Needs Triage, High Priority, Low Priority, Closed
  1093. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1094. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1095. ;[cors]
  1096. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1097. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1098. ;;
  1099. ;; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers
  1100. ;; enable cors headers (disabled by default)
  1101. ;ENABLED = false
  1102. ;;
  1103. ;; scheme of allowed requests
  1104. ;SCHEME = http
  1105. ;;
  1106. ;; list of requesting domains that are allowed
  1107. ;ALLOW_DOMAIN = *
  1108. ;;
  1109. ;; allow subdomains of headers listed above to request
  1110. ;ALLOW_SUBDOMAIN = false
  1111. ;;
  1112. ;; list of methods allowed to request
  1113. ;METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
  1114. ;;
  1115. ;; max time to cache response
  1116. ;MAX_AGE = 10m
  1117. ;;
  1118. ;; allow request with credentials
  1119. ;ALLOW_CREDENTIALS = false
  1120. ;;
  1121. ;; headers to permit
  1122. ;HEADERS = Content-Type,User-Agent
  1123. ;;
  1124. ;; set X-FRAME-OPTIONS header
  1125. ;X_FRAME_OPTIONS = SAMEORIGIN
  1126. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1127. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1128. ;[ui]
  1129. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1130. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1131. ;;
  1132. ;; Number of repositories that are displayed on one explore page
  1133. ;EXPLORE_PAGING_NUM = 20
  1134. ;;
  1135. ;; Number of issues that are displayed on one page
  1136. ;ISSUE_PAGING_NUM = 20
  1137. ;;
  1138. ;; Number of maximum commits displayed in one activity feed
  1139. ;FEED_MAX_COMMIT_NUM = 5
  1140. ;;
  1141. ;; Number of items that are displayed in home feed
  1142. ;FEED_PAGING_NUM = 20
  1143. ;;
  1144. ;; Number of items that are displayed in a single subsitemap
  1145. ;SITEMAP_PAGING_NUM = 20
  1146. ;;
  1147. ;; Number of maximum commits displayed in commit graph.
  1148. ;GRAPH_MAX_COMMIT_NUM = 100
  1149. ;;
  1150. ;; Number of line of codes shown for a code comment
  1151. ;CODE_COMMENT_LINES = 4
  1152. ;;
  1153. ;; Max size of files to be displayed (default is 8MiB)
  1154. ;MAX_DISPLAY_FILE_SIZE = 8388608
  1155. ;;
  1156. ;; Whether the email of the user should be shown in the Explore Users page
  1157. ;SHOW_USER_EMAIL = true
  1158. ;;
  1159. ;; Set the default theme for the Gitea install
  1160. ;DEFAULT_THEME = auto
  1161. ;;
  1162. ;; All available themes. Allow users select personalized themes regardless of the value of `DEFAULT_THEME`.
  1163. ;THEMES = auto,gitea,arc-green
  1164. ;;
  1165. ;; All available reactions users can choose on issues/prs and comments.
  1166. ;; Values can be emoji alias (:smile:) or a unicode emoji.
  1167. ;; For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
  1168. ;REACTIONS = +1, -1, laugh, hooray, confused, heart, rocket, eyes
  1169. ;;
  1170. ;; Additional Emojis not defined in the utf8 standard
  1171. ;; By default we support gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and add it to this config.
  1172. ;; Dont mistake it for Reactions.
  1173. ;CUSTOM_EMOJIS = gitea, codeberg, gitlab, git, github, gogs
  1174. ;;
  1175. ;; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
  1176. ;DEFAULT_SHOW_FULL_NAME = false
  1177. ;;
  1178. ;; Whether to search within description at repository search on explore page.
  1179. ;SEARCH_REPO_DESCRIPTION = true
  1180. ;;
  1181. ;; Whether to only show relevant repos on the explore page when no keyword is specified and default sorting is used.
  1182. ;; A repo is considered irrelevant if it's a fork or if it has no metadata (no description, no icon, no topic).
  1183. ;ONLY_SHOW_RELEVANT_REPOS = false
  1184. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1185. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1186. ;[ui.admin]
  1187. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1188. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1189. ;;
  1190. ;; Number of users that are displayed on one page
  1191. ;USER_PAGING_NUM = 50
  1192. ;;
  1193. ;; Number of repos that are displayed on one page
  1194. ;REPO_PAGING_NUM = 50
  1195. ;;
  1196. ;; Number of notices that are displayed on one page
  1197. ;NOTICE_PAGING_NUM = 25
  1198. ;;
  1199. ;; Number of organizations that are displayed on one page
  1200. ;ORG_PAGING_NUM = 50
  1201. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1202. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1203. ;[ui.user]
  1204. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1205. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1206. ;; Number of repos that are displayed on one page
  1207. ;REPO_PAGING_NUM = 15
  1208. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1209. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1210. ;[ui.meta]
  1211. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1212. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1213. ;AUTHOR = Gitea - Git with a cup of tea
  1214. ;DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go
  1215. ;KEYWORDS = go,git,self-hosted,gitea
  1216. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1217. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1218. ;[ui.notification]
  1219. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1220. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1221. ;;
  1222. ;; Control how often the notification endpoint is polled to update the notification
  1223. ;; The timeout will increase to MAX_TIMEOUT in TIMEOUT_STEPs if the notification count is unchanged
  1224. ;; Set MIN_TIMEOUT to -1 to turn off
  1225. ;MIN_TIMEOUT = 10s
  1226. ;MAX_TIMEOUT = 60s
  1227. ;TIMEOUT_STEP = 10s
  1228. ;;
  1229. ;; This setting determines how often the db is queried to get the latest notification counts.
  1230. ;; If the browser client supports EventSource and SharedWorker, a SharedWorker will be used in preference to polling notification. Set to -1 to disable the EventSource
  1231. ;EVENT_SOURCE_UPDATE_TIME = 10s
  1232. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1233. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1234. ;[ui.svg]
  1235. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1236. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1237. ;;
  1238. ;; Whether to render SVG files as images. If SVG rendering is disabled, SVG files are displayed as text and cannot be embedded in markdown files as images.
  1239. ;ENABLE_RENDER = true
  1240. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1241. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1242. ;[ui.csv]
  1243. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1244. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1245. ;;
  1246. ;; Maximum allowed file size in bytes to render CSV files as table. (Set to 0 for no limit).
  1247. ;MAX_FILE_SIZE = 524288
  1248. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1249. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1250. ;[markdown]
  1251. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1252. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1253. ;;
  1254. ;; Render soft line breaks as hard line breaks, which means a single newline character between
  1255. ;; paragraphs will cause a line break and adding trailing whitespace to paragraphs is not
  1256. ;; necessary to force a line break.
  1257. ;; Render soft line breaks as hard line breaks for comments
  1258. ;ENABLE_HARD_LINE_BREAK_IN_COMMENTS = true
  1259. ;;
  1260. ;; Render soft line breaks as hard line breaks for markdown documents
  1261. ;ENABLE_HARD_LINE_BREAK_IN_DOCUMENTS = false
  1262. ;;
  1263. ;; Comma separated list of custom URL-Schemes that are allowed as links when rendering Markdown
  1264. ;; for example git,magnet,ftp (more at https://en.wikipedia.org/wiki/List_of_URI_schemes)
  1265. ;; URLs starting with http and https are always displayed, whatever is put in this entry.
  1266. ;; If this entry is empty, all URL schemes are allowed.
  1267. ;CUSTOM_URL_SCHEMES =
  1268. ;;
  1269. ;; List of file extensions that should be rendered/edited as Markdown
  1270. ;; Separate the extensions with a comma. To render files without any extension as markdown, just put a comma
  1271. ;FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd,.livemd
  1272. ;;
  1273. ;; Enables math inline and block detection
  1274. ;ENABLE_MATH = true
  1275. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1276. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1277. ;[ssh.minimum_key_sizes]
  1278. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1279. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1280. ;;
  1281. ;; Define allowed algorithms and their minimum key length (use -1 to disable a type)
  1282. ;ED25519 = 256
  1283. ;ECDSA = 256
  1284. ;RSA = 2047 ; we allow 2047 here because an otherwise valid 2048 bit RSA key can be reported as having 2047 bit length
  1285. ;DSA = -1 ; set to 1024 to switch on
  1286. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1287. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1288. ;[indexer]
  1289. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1290. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1291. ;;
  1292. ;; Issue Indexer settings
  1293. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1294. ;;
  1295. ;; Issue indexer type, currently support: bleve, db, elasticsearch or meilisearch default is bleve
  1296. ;ISSUE_INDEXER_TYPE = bleve
  1297. ;;
  1298. ;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
  1299. ;ISSUE_INDEXER_PATH = indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_.
  1300. ;;
  1301. ;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch or meilisearch
  1302. ;ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200
  1303. ;;
  1304. ;; Issue indexer name, available when ISSUE_INDEXER_TYPE is elasticsearch
  1305. ;ISSUE_INDEXER_NAME = gitea_issues
  1306. ;;
  1307. ;; Timeout the indexer if it takes longer than this to start.
  1308. ;; Set to -1 to disable timeout.
  1309. ;STARTUP_TIMEOUT = 30s
  1310. ;;
  1311. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1312. ;; Repository Indexer settings
  1313. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1314. ;;
  1315. ;; repo indexer by default disabled, since it uses a lot of disk space
  1316. ;REPO_INDEXER_ENABLED = false
  1317. ;;
  1318. ;; repo indexer units, the items to index, could be `sources`, `forks`, `mirrors`, `templates` or any combination of them separated by a comma.
  1319. ;; If empty then it defaults to `sources` only, as if you'd like to disable fully please see REPO_INDEXER_ENABLED.
  1320. ;REPO_INDEXER_REPO_TYPES = sources,forks,mirrors,templates
  1321. ;;
  1322. ;; Code search engine type, could be `bleve` or `elasticsearch`.
  1323. ;REPO_INDEXER_TYPE = bleve
  1324. ;;
  1325. ;; Index file used for code search. available when `REPO_INDEXER_TYPE` is bleve
  1326. ;REPO_INDEXER_PATH = indexers/repos.bleve
  1327. ;;
  1328. ;; Code indexer connection string, available when `REPO_INDEXER_TYPE` is elasticsearch. i.e. http://elastic:changeme@localhost:9200
  1329. ;REPO_INDEXER_CONN_STR =
  1330. ;;
  1331. ;; Code indexer name, available when `REPO_INDEXER_TYPE` is elasticsearch
  1332. ;REPO_INDEXER_NAME = gitea_codes
  1333. ;;
  1334. ;; A comma separated list of glob patterns (see https://github.com/gobwas/glob) to include
  1335. ;; in the index; default is empty
  1336. ;REPO_INDEXER_INCLUDE =
  1337. ;;
  1338. ;; A comma separated list of glob patterns to exclude from the index; ; default is empty
  1339. ;REPO_INDEXER_EXCLUDE =
  1340. ;;
  1341. ;MAX_FILE_SIZE = 1048576
  1342. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1343. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1344. ;[queue]
  1345. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1346. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1347. ;;
  1348. ;; Specific queues can be individually configured with [queue.name]. [queue] provides defaults
  1349. ;; ([queue.issue_indexer] is special due to the old configuration described above)
  1350. ;;
  1351. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1352. ;;
  1353. ;; General queue queue type, currently support: persistable-channel, channel, level, redis, dummy
  1354. ;; default to persistable-channel
  1355. ;TYPE = persistable-channel
  1356. ;;
  1357. ;; data-dir for storing persistable queues and level queues, individual queues will default to `queues/common` meaning the queue is shared.
  1358. ;DATADIR = queues/ ; Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
  1359. ;;
  1360. ;; Default queue length before a channel queue will block
  1361. ;LENGTH = 100
  1362. ;;
  1363. ;; Batch size to send for batched queues
  1364. ;BATCH_LENGTH = 20
  1365. ;;
  1366. ;; Connection string for redis queues this will store the redis or redis-cluster connection string.
  1367. ;; When `TYPE` is `persistable-channel`, this provides a directory for the underlying leveldb
  1368. ;; or additional options of the form `leveldb://path/to/db?option=value&....`, and will override `DATADIR`.
  1369. ;CONN_STR = "redis://127.0.0.1:6379/0"
  1370. ;;
  1371. ;; Provides the suffix of the default redis/disk queue name - specific queues can be overridden within in their [queue.name] sections.
  1372. ;QUEUE_NAME = "_queue"
  1373. ;;
  1374. ;; Provides the suffix of the default redis/disk unique queue set name - specific queues can be overridden within in their [queue.name] sections.
  1375. ;SET_NAME = "_unique"
  1376. ;;
  1377. ;; Maximum number of worker go-routines for the queue. Default value is "CpuNum/2" clipped to between 1 and 10.
  1378. ;MAX_WORKERS = ; (dynamic)
  1379. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1380. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1381. ;[admin]
  1382. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1383. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1384. ;;
  1385. ;; Disallow regular (non-admin) users from creating organizations.
  1386. ;DISABLE_REGULAR_ORG_CREATION = false
  1387. ;;
  1388. ;; Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled
  1389. ;DEFAULT_EMAIL_NOTIFICATIONS = enabled
  1390. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1391. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1392. ;[openid]
  1393. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1394. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1395. ;;
  1396. ;; OpenID is an open, standard and decentralized authentication protocol.
  1397. ;; Your identity is the address of a webpage you provide, which describes
  1398. ;; how to prove you are in control of that page.
  1399. ;;
  1400. ;; For more info: https://en.wikipedia.org/wiki/OpenID
  1401. ;;
  1402. ;; Current implementation supports OpenID-2.0
  1403. ;;
  1404. ;; Tested to work providers at the time of writing:
  1405. ;; - Any GNUSocial node (your.hostname.tld/username)
  1406. ;; - Any SimpleID provider (http://simpleid.koinic.net)
  1407. ;; - http://openid.org.cn/
  1408. ;; - openid.stackexchange.com
  1409. ;; - login.launchpad.net
  1410. ;; - <username>.livejournal.com
  1411. ;;
  1412. ;; Whether to allow signin in via OpenID
  1413. ;ENABLE_OPENID_SIGNIN = true
  1414. ;;
  1415. ;; Whether to allow registering via OpenID
  1416. ;; Do not include to rely on rhw DISABLE_REGISTRATION setting
  1417. ;;ENABLE_OPENID_SIGNUP = true
  1418. ;;
  1419. ;; Allowed URI patterns (POSIX regexp).
  1420. ;; Space separated.
  1421. ;; Only these would be allowed if non-blank.
  1422. ;; Example value: trusted.domain.org trusted.domain.net
  1423. ;WHITELISTED_URIS =
  1424. ;;
  1425. ;; Forbidden URI patterns (POSIX regexp).
  1426. ;; Space separated.
  1427. ;; Only used if WHITELISTED_URIS is blank.
  1428. ;; Example value: loadaverage.org/badguy stackexchange.com/.*spammer
  1429. ;BLACKLISTED_URIS =
  1430. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1431. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1432. ;[oauth2_client]
  1433. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1434. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1435. ;;
  1436. ;; Whether a new auto registered oauth2 user needs to confirm their email.
  1437. ;; Do not include to use the REGISTER_EMAIL_CONFIRM setting from the `[service]` section.
  1438. ;REGISTER_EMAIL_CONFIRM =
  1439. ;;
  1440. ;; Scopes for the openid connect oauth2 provider (separated by space, the openid scope is implicitly added).
  1441. ;; Typical values are profile and email.
  1442. ;; For more information about the possible values see https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims
  1443. ;OPENID_CONNECT_SCOPES =
  1444. ;;
  1445. ;; Automatically create user accounts for new oauth2 users.
  1446. ;ENABLE_AUTO_REGISTRATION = false
  1447. ;;
  1448. ;; The source of the username for new oauth2 accounts:
  1449. ;; userid = use the userid / sub attribute
  1450. ;; nickname = use the nickname attribute
  1451. ;; email = use the username part of the email attribute
  1452. ;USERNAME = nickname
  1453. ;;
  1454. ;; Update avatar if available from oauth2 provider.
  1455. ;; Update will be performed on each login.
  1456. ;UPDATE_AVATAR = false
  1457. ;;
  1458. ;; How to handle if an account / email already exists:
  1459. ;; disabled = show an error
  1460. ;; login = show an account linking login
  1461. ;; auto = link directly with the account
  1462. ;ACCOUNT_LINKING = login
  1463. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1464. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1465. ;[webhook]
  1466. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1467. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1468. ;;
  1469. ;; Hook task queue length, increase if webhook shooting starts hanging
  1470. ;QUEUE_LENGTH = 1000
  1471. ;;
  1472. ;; Deliver timeout in seconds
  1473. ;DELIVER_TIMEOUT = 5
  1474. ;;
  1475. ;; Webhook can only call allowed hosts for security reasons. Comma separated list, eg: external, 192.168.1.0/24, *.mydomain.com
  1476. ;; Built-in: loopback (for localhost), private (for LAN/intranet), external (for public hosts on internet), * (for all hosts)
  1477. ;; CIDR list: 1.2.3.0/8, 2001:db8::/32
  1478. ;; Wildcard hosts: *.mydomain.com, 192.168.100.*
  1479. ;; Since 1.15.7. Default to * for 1.15.x, external for 1.16 and later
  1480. ;ALLOWED_HOST_LIST = external
  1481. ;;
  1482. ;; Allow insecure certification
  1483. ;SKIP_TLS_VERIFY = false
  1484. ;;
  1485. ;; Number of history information in each page
  1486. ;PAGING_NUM = 10
  1487. ;;
  1488. ;; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy
  1489. ;PROXY_URL =
  1490. ;;
  1491. ;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
  1492. ;PROXY_HOSTS =
  1493. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1494. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1495. ;[mailer]
  1496. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1497. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1498. ;;
  1499. ;; NOTICE: this section is for Gitea 1.18 and later. If you are using Gitea 1.17 or older,
  1500. ;; please refer to
  1501. ;; https://github.com/go-gitea/gitea/blob/release/v1.17/custom/conf/app.example.ini
  1502. ;; https://github.com/go-gitea/gitea/blob/release/v1.17/docs/content/doc/advanced/config-cheat-sheet.en-us.md
  1503. ;;
  1504. ;ENABLED = false
  1505. ;;
  1506. ;; Buffer length of channel, keep it as it is if you don't know what it is.
  1507. ;SEND_BUFFER_LEN = 100
  1508. ;;
  1509. ;; Prefix displayed before subject in mail
  1510. ;SUBJECT_PREFIX =
  1511. ;;
  1512. ;; Mail server protocol. One of "smtp", "smtps", "smtp+starttls", "smtp+unix", "sendmail", "dummy".
  1513. ;; - sendmail: use the operating system's `sendmail` command instead of SMTP. This is common on Linux systems.
  1514. ;; - dummy: send email messages to the log as a testing phase.
  1515. ;; If your provider does not explicitly say which protocol it uses but does provide a port,
  1516. ;; you can set SMTP_PORT instead and this will be inferred.
  1517. ;; (Before 1.18, see the notice, this was controlled via MAILER_TYPE and IS_TLS_ENABLED.)
  1518. ;PROTOCOL =
  1519. ;;
  1520. ;; Mail server address, e.g. smtp.gmail.com.
  1521. ;; For smtp+unix, this should be a path to a unix socket instead.
  1522. ;; (Before 1.18, see the notice, this was combined with SMTP_PORT as HOST.)
  1523. ;SMTP_ADDR =
  1524. ;;
  1525. ;; Mail server port. Common ports are:
  1526. ;; 25: insecure SMTP
  1527. ;; 465: SMTP Secure
  1528. ;; 587: StartTLS
  1529. ;; If no protocol is specified, it will be inferred by this setting.
  1530. ;; (Before 1.18, this was combined with SMTP_ADDR as HOST.)
  1531. ;SMTP_PORT =
  1532. ;;
  1533. ;; Enable HELO operation. Defaults to true.
  1534. ;ENABLE_HELO = true
  1535. ;;
  1536. ;; Custom hostname for HELO operation.
  1537. ;; If no value is provided, one is retrieved from system.
  1538. ;HELO_HOSTNAME =
  1539. ;;
  1540. ;; If set to `true`, completely ignores server certificate validation errors.
  1541. ;; This option is unsafe. Consider adding the certificate to the system trust store instead.
  1542. ;FORCE_TRUST_SERVER_CERT = false
  1543. ;;
  1544. ;; Use client certificate in connection.
  1545. ;USE_CLIENT_CERT = false
  1546. ;CLIENT_CERT_FILE = custom/mailer/cert.pem
  1547. ;CLIENT_KEY_FILE = custom/mailer/key.pem
  1548. ;;
  1549. ;; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
  1550. ;FROM =
  1551. ;;
  1552. ;; Sometimes it is helpful to use a different address on the envelope. Set this to use ENVELOPE_FROM as the from on the envelope. Set to `<>` to send an empty address.
  1553. ;ENVELOPE_FROM =
  1554. ;;
  1555. ;; Mailer user name and password, if required by provider.
  1556. ;USER =
  1557. ;;
  1558. ;; Use PASSWD = `your password` for quoting if you use special characters in the password.
  1559. ;PASSWD =
  1560. ;;
  1561. ;; Send mails only in plain text, without HTML alternative
  1562. ;SEND_AS_PLAIN_TEXT = false
  1563. ;;
  1564. ;; Specify an alternative sendmail binary
  1565. ;SENDMAIL_PATH = sendmail
  1566. ;;
  1567. ;; Specify any extra sendmail arguments
  1568. ;; WARNING: if your sendmail program interprets options you should set this to "--" or terminate these args with "--"
  1569. ;SENDMAIL_ARGS =
  1570. ;;
  1571. ;; Timeout for Sendmail
  1572. ;SENDMAIL_TIMEOUT = 5m
  1573. ;;
  1574. ;; convert \r\n to \n for Sendmail
  1575. ;SENDMAIL_CONVERT_CRLF = true
  1576. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1577. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1578. ;[email.incoming]
  1579. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1580. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1581. ;;
  1582. ;; Enable handling of incoming emails.
  1583. ;ENABLED = false
  1584. ;;
  1585. ;; The email address including the %{token} placeholder that will be replaced per user/action.
  1586. ;; Example: incoming+%{token}@example.com
  1587. ;; The placeholder must appear in the user part of the address (before the @).
  1588. ;REPLY_TO_ADDRESS =
  1589. ;;
  1590. ;; IMAP server host
  1591. ;HOST =
  1592. ;;
  1593. ;; IMAP server port
  1594. ;PORT =
  1595. ;;
  1596. ;; Username of the receiving account
  1597. ;USERNAME =
  1598. ;;
  1599. ;; Password of the receiving account
  1600. ;PASSWORD =
  1601. ;;
  1602. ;; Whether the IMAP server uses TLS.
  1603. ;USE_TLS = false
  1604. ;;
  1605. ;; If set to true, completely ignores server certificate validation errors. This option is unsafe.
  1606. ;SKIP_TLS_VERIFY = true
  1607. ;;
  1608. ;; The mailbox name where incoming mail will end up.
  1609. ;MAILBOX = INBOX
  1610. ;;
  1611. ;; Whether handled messages should be deleted from the mailbox.
  1612. ;DELETE_HANDLED_MESSAGE = true
  1613. ;;
  1614. ;; Maximum size of a message to handle. Bigger messages are ignored. Set to 0 to allow every size.
  1615. ;MAXIMUM_MESSAGE_SIZE = 10485760
  1616. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1617. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1618. ;[cache]
  1619. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1620. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1621. ;;
  1622. ;; if the cache enabled
  1623. ;ENABLED = true
  1624. ;;
  1625. ;; Either "memory", "redis", "memcache", or "twoqueue". default is "memory"
  1626. ;ADAPTER = memory
  1627. ;;
  1628. ;; For "memory" only, GC interval in seconds, default is 60
  1629. ;INTERVAL = 60
  1630. ;;
  1631. ;; For "redis", "redis-cluster" and "memcache", connection host address
  1632. ;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s`
  1633. ;; redis-cluster: `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s`
  1634. ;; memcache: `127.0.0.1:11211`
  1635. ;; twoqueue: `{"size":50000,"recent_ratio":0.25,"ghost_ratio":0.5}` or `50000`
  1636. ;HOST =
  1637. ;;
  1638. ;; Time to keep items in cache if not used, default is 16 hours.
  1639. ;; Setting it to -1 disables caching
  1640. ;ITEM_TTL = 16h
  1641. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1642. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1643. ;; Last commit cache
  1644. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1645. ;[cache.last_commit]
  1646. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1647. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1648. ;; if the cache enabled
  1649. ;ENABLED = true
  1650. ;;
  1651. ;; Time to keep items in cache if not used, default is 8760 hours.
  1652. ;; Setting it to -1 disables caching
  1653. ;ITEM_TTL = 8760h
  1654. ;;
  1655. ;; Only enable the cache when repository's commits count great than
  1656. ;COMMITS_COUNT = 1000
  1657. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1658. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1659. ;[session]
  1660. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1661. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1662. ;;
  1663. ;; Either "memory", "file", "redis", "redis-cluster", "db", "mysql", "couchbase", "memcache" or "postgres"
  1664. ;; Default is "memory". "db" will reuse the configuration in [database]
  1665. ;PROVIDER = memory
  1666. ;;
  1667. ;; Provider config options
  1668. ;; memory: doesn't have any config yet
  1669. ;; file: session file path, e.g. `data/sessions`
  1670. ;; redis: `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s`
  1671. ;; redis-cluster: `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s`
  1672. ;; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  1673. ;PROVIDER_CONFIG = data/sessions ; Relative paths will be made absolute against _`AppWorkPath`_.
  1674. ;;
  1675. ;; Session cookie name
  1676. ;COOKIE_NAME = i_like_gitea
  1677. ;;
  1678. ;; If you use session in https only, default is false
  1679. ;COOKIE_SECURE = false
  1680. ;;
  1681. ;; Session GC time interval in seconds, default is 86400 (1 day)
  1682. ;GC_INTERVAL_TIME = 86400
  1683. ;;
  1684. ;; Session life time in seconds, default is 86400 (1 day)
  1685. ;SESSION_LIFE_TIME = 86400
  1686. ;;
  1687. ;; SameSite settings. Either "none", "lax", or "strict"
  1688. ;SAME_SITE=lax
  1689. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1690. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1691. ;[picture]
  1692. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1693. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1694. ;;
  1695. ;AVATAR_UPLOAD_PATH = data/avatars
  1696. ;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
  1697. ;;
  1698. ;; How Gitea deals with missing repository avatars
  1699. ;; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used
  1700. ;REPOSITORY_AVATAR_FALLBACK = none
  1701. ;REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png
  1702. ;;
  1703. ;; Max Width and Height of uploaded avatars.
  1704. ;; This is to limit the amount of RAM used when resizing the image.
  1705. ;AVATAR_MAX_WIDTH = 4096
  1706. ;AVATAR_MAX_HEIGHT = 4096
  1707. ;;
  1708. ;; The multiplication factor for rendered avatar images.
  1709. ;; Larger values result in finer rendering on HiDPI devices.
  1710. ;AVATAR_RENDERED_SIZE_FACTOR = 2
  1711. ;;
  1712. ;; Maximum allowed file size for uploaded avatars.
  1713. ;; This is to limit the amount of RAM used when resizing the image.
  1714. ;AVATAR_MAX_FILE_SIZE = 1048576
  1715. ;;
  1716. ;; If the uploaded file is not larger than this byte size, the image will be used as is, without resizing/converting.
  1717. ;AVATAR_MAX_ORIGIN_SIZE = 262144
  1718. ;;
  1719. ;; Chinese users can choose "duoshuo"
  1720. ;; or a custom avatar source, like: http://cn.gravatar.com/avatar/
  1721. ;GRAVATAR_SOURCE = gravatar
  1722. ;;
  1723. ;; This value will always be true in offline mode.
  1724. ;DISABLE_GRAVATAR = false
  1725. ;;
  1726. ;; Federated avatar lookup uses DNS to discover avatar associated
  1727. ;; with emails, see https://www.libravatar.org
  1728. ;; This value will always be false in offline mode or when Gravatar is disabled.
  1729. ;ENABLE_FEDERATED_AVATAR = false
  1730. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1731. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1732. ;[attachment]
  1733. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1734. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1735. ;;
  1736. ;; Whether issue and pull request attachments are enabled. Defaults to `true`
  1737. ;ENABLED = true
  1738. ;;
  1739. ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
  1740. ;ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.patch,.pdf,.png,.pptx,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip
  1741. ;;
  1742. ;; Max size of each file. Defaults to 4MB
  1743. ;MAX_SIZE = 4
  1744. ;;
  1745. ;; Max number of files per upload. Defaults to 5
  1746. ;MAX_FILES = 5
  1747. ;;
  1748. ;; Storage type for attachments, `local` for local disk or `minio` for s3 compatible
  1749. ;; object storage service, default is `local`.
  1750. ;STORAGE_TYPE = local
  1751. ;;
  1752. ;; Allows the storage driver to redirect to authenticated URLs to serve files directly
  1753. ;; Currently, only `minio` is supported.
  1754. ;SERVE_DIRECT = false
  1755. ;;
  1756. ;; Path for attachments. Defaults to `data/attachments` only available when STORAGE_TYPE is `local`
  1757. ;PATH = data/attachments
  1758. ;;
  1759. ;; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
  1760. ;MINIO_ENDPOINT = localhost:9000
  1761. ;;
  1762. ;; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio`
  1763. ;MINIO_ACCESS_KEY_ID =
  1764. ;;
  1765. ;; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio`
  1766. ;MINIO_SECRET_ACCESS_KEY =
  1767. ;;
  1768. ;; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio`
  1769. ;MINIO_BUCKET = gitea
  1770. ;;
  1771. ;; Minio location to create bucket only available when STORAGE_TYPE is `minio`
  1772. ;MINIO_LOCATION = us-east-1
  1773. ;;
  1774. ;; Minio base path on the bucket only available when STORAGE_TYPE is `minio`
  1775. ;MINIO_BASE_PATH = attachments/
  1776. ;;
  1777. ;; Minio enabled ssl only available when STORAGE_TYPE is `minio`
  1778. ;MINIO_USE_SSL = false
  1779. ;;
  1780. ;; Minio skip SSL verification available when STORAGE_TYPE is `minio`
  1781. ;MINIO_INSECURE_SKIP_VERIFY = false
  1782. ;;
  1783. ;; Minio checksum algorithm: default (for MinIO or AWS S3) or md5 (for Cloudflare or Backblaze)
  1784. ;MINIO_CHECKSUM_ALGORITHM = default
  1785. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1786. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1787. ;[time]
  1788. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1789. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1790. ;;
  1791. ;; Location the UI time display i.e. Asia/Shanghai
  1792. ;; Empty means server's location setting
  1793. ;DEFAULT_UI_LOCATION =
  1794. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1795. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1796. ;[cron]
  1797. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1798. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1799. ;;
  1800. ;; Common settings
  1801. ;;
  1802. ;; Setting this to true will enable all cron tasks periodically with default settings.
  1803. ;ENABLED = false
  1804. ;; Setting this to true will run all enabled cron tasks when Gitea starts.
  1805. ;RUN_AT_START = false
  1806. ;;
  1807. ;; Note: ``SCHEDULE`` accept formats
  1808. ;; - Full crontab specs, e.g. "* * * * * ?"
  1809. ;; - Descriptors, e.g. "@midnight", "@every 1h30m"
  1810. ;; See more: https://pkg.go.dev/github.com/gogs/cron@v0.0.0-20171120032916-9f6c956d3e14
  1811. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1812. ;; Basic cron tasks - enabled by default
  1813. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1814. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1815. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1816. ;; Clean up old repository archives
  1817. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1818. ;[cron.archive_cleanup]
  1819. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1820. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1821. ;; Whether to enable the job
  1822. ;ENABLED = true
  1823. ;; Whether to always run at least once at start up time (if ENABLED)
  1824. ;RUN_AT_START = true
  1825. ;; Whether to emit notice on successful execution too
  1826. ;NOTICE_ON_SUCCESS = false
  1827. ;; Time interval for job to run
  1828. ;SCHEDULE = @midnight
  1829. ;; Archives created more than OLDER_THAN ago are subject to deletion
  1830. ;OLDER_THAN = 24h
  1831. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1832. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1833. ;; Update mirrors
  1834. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1835. ;[cron.update_mirrors]
  1836. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1837. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1838. ;SCHEDULE = @every 10m
  1839. ;; Enable running Update mirrors task periodically.
  1840. ;ENABLED = true
  1841. ;; Run Update mirrors task when Gitea starts.
  1842. ;RUN_AT_START = false
  1843. ;; Notice if not success
  1844. ;NOTICE_ON_SUCCESS = false
  1845. ;; Limit the number of mirrors added to the queue to this number
  1846. ;; (negative values mean no limit, 0 will result in no result in no mirrors being queued effectively disabling pull mirror updating.)
  1847. ;PULL_LIMIT=50
  1848. ;; Limit the number of mirrors added to the queue to this number
  1849. ;; (negative values mean no limit, 0 will result in no mirrors being queued effectively disabling push mirror updating)
  1850. ;PUSH_LIMIT=50
  1851. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1852. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1853. ;; Repository health check
  1854. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1855. ;[cron.repo_health_check]
  1856. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1857. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1858. ;SCHEDULE = @midnight
  1859. ;; Enable running Repository health check task periodically.
  1860. ;ENABLED = true
  1861. ;; Run Repository health check task when Gitea starts.
  1862. ;RUN_AT_START = false
  1863. ;; Notice if not success
  1864. ;NOTICE_ON_SUCCESS = false
  1865. ;TIMEOUT = 60s
  1866. ;; Arguments for command 'git fsck', e.g. "--unreachable --tags"
  1867. ;; see more on http://git-scm.com/docs/git-fsck
  1868. ;ARGS =
  1869. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1870. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1871. ;; Check repository statistics
  1872. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1873. ;[cron.check_repo_stats]
  1874. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1875. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1876. ;; Enable running check repository statistics task periodically.
  1877. ;ENABLED = true
  1878. ;; Run check repository statistics task when Gitea starts.
  1879. ;RUN_AT_START = true
  1880. ;; Notice if not success
  1881. ;NOTICE_ON_SUCCESS = false
  1882. ;SCHEDULE = @midnight
  1883. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1884. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1885. ;[cron.update_migration_poster_id]
  1886. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1887. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1888. ; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts.
  1889. ;ENABLED = true
  1890. ;; Update migrated repositories' issues and comments' posterid when starting server (default true)
  1891. ;RUN_AT_START = true
  1892. ;; Notice if not success
  1893. ;NOTICE_ON_SUCCESS = false
  1894. ;; Interval as a duration between each synchronization. (default every 24h)
  1895. ;SCHEDULE = @midnight
  1896. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1897. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1898. ;; Synchronize external user data (only LDAP user synchronization is supported)
  1899. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1900. ;[cron.sync_external_users]
  1901. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1902. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1903. ;ENABLED = true
  1904. ;; Synchronize external user data when starting server (default false)
  1905. ;RUN_AT_START = false
  1906. ;; Notice if not success
  1907. ;NOTICE_ON_SUCCESS = false
  1908. ;; Interval as a duration between each synchronization (default every 24h)
  1909. ;SCHEDULE = @midnight
  1910. ;; Create new users, update existing user data and disable users that are not in external source anymore (default)
  1911. ;; or only create new users if UPDATE_EXISTING is set to false
  1912. ;UPDATE_EXISTING = true
  1913. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1914. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1915. ;; Clean-up deleted branches
  1916. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1917. ;[cron.deleted_branches_cleanup]
  1918. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1919. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1920. ;ENABLED = true
  1921. ;; Clean-up deleted branches when starting server (default true)
  1922. ;RUN_AT_START = true
  1923. ;; Notice if not success
  1924. ;NOTICE_ON_SUCCESS = false
  1925. ;; Interval as a duration between each synchronization (default every 24h)
  1926. ;SCHEDULE = @midnight
  1927. ;; deleted branches than OLDER_THAN ago are subject to deletion
  1928. ;OLDER_THAN = 24h
  1929. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1930. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1931. ;; Cleanup hook_task table
  1932. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1933. ;[cron.cleanup_hook_task_table]
  1934. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1935. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1936. ;; Whether to enable the job
  1937. ;ENABLED = true
  1938. ;; Whether to always run at start up time (if ENABLED)
  1939. ;RUN_AT_START = false
  1940. ;; Time interval for job to run
  1941. ;SCHEDULE = @midnight
  1942. ;; OlderThan or PerWebhook. How the records are removed, either by age (i.e. how long ago hook_task record was delivered) or by the number to keep per webhook (i.e. keep most recent x deliveries per webhook).
  1943. ;CLEANUP_TYPE = OlderThan
  1944. ;; If CLEANUP_TYPE is set to OlderThan, then any delivered hook_task records older than this expression will be deleted.
  1945. ;OLDER_THAN = 168h
  1946. ;; If CLEANUP_TYPE is set to PerWebhook, this is number of hook_task records to keep for a webhook (i.e. keep the most recent x deliveries).
  1947. ;NUMBER_TO_KEEP = 10
  1948. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1949. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1950. ;; Cleanup expired packages
  1951. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1952. ;[cron.cleanup_packages]
  1953. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1954. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1955. ;; Whether to enable the job
  1956. ;ENABLED = true
  1957. ;; Whether to always run at least once at start up time (if ENABLED)
  1958. ;RUN_AT_START = true
  1959. ;; Whether to emit notice on successful execution too
  1960. ;NOTICE_ON_SUCCESS = false
  1961. ;; Time interval for job to run
  1962. ;SCHEDULE = @midnight
  1963. ;; Unreferenced blobs created more than OLDER_THAN ago are subject to deletion
  1964. ;OLDER_THAN = 24h
  1965. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1966. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1967. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1968. ; Extended cron task - not enabled by default
  1969. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1970. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1971. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1972. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1973. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1974. ;; Delete all unactivated accounts
  1975. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1976. ;[cron.delete_inactive_accounts]
  1977. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1978. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1979. ;ENABLED = false
  1980. ;RUN_AT_START = false
  1981. ;NOTICE_ON_SUCCESS = false
  1982. ;SCHEDULE = @annually
  1983. ;OLDER_THAN = 168h
  1984. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1985. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1986. ;; Delete all repository archives
  1987. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1988. ;[cron.delete_repo_archives]
  1989. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1990. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1991. ;ENABLED = false
  1992. ;RUN_AT_START = false
  1993. ;NOTICE_ON_SUCCESS = false
  1994. ;SCHEDULE = @annually;
  1995. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1996. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1997. ;; Garbage collect all repositories
  1998. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  1999. ;[cron.git_gc_repos]
  2000. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2001. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2002. ;ENABLED = false
  2003. ;RUN_AT_START = false
  2004. ;NOTICE_ON_SUCCESS = false
  2005. ;SCHEDULE = @every 72h
  2006. ;TIMEOUT = 60s
  2007. ;; Arguments for command 'git gc'
  2008. ;; The default value is same with [git] -> GC_ARGS
  2009. ;ARGS =
  2010. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2011. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2012. ;; Update the '.ssh/authorized_keys' file with Gitea SSH keys
  2013. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2014. ;[cron.resync_all_sshkeys]
  2015. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2016. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2017. ;ENABLED = false
  2018. ;RUN_AT_START = false
  2019. ;NOTICE_ON_SUCCESS = false
  2020. ;SCHEDULE = @every 72h
  2021. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2022. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2023. ;; Resynchronize pre-receive, update and post-receive hooks of all repositories.
  2024. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2025. ;[cron.resync_all_hooks]
  2026. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2027. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2028. ;ENABLED = false
  2029. ;RUN_AT_START = false
  2030. ;NOTICE_ON_SUCCESS = false
  2031. ;SCHEDULE = @every 72h
  2032. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2033. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2034. ;; Reinitialize all missing Git repositories for which records exist
  2035. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2036. ;[cron.reinit_missing_repos]
  2037. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2038. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2039. ;ENABLED = false
  2040. ;RUN_AT_START = false
  2041. ;NOTICE_ON_SUCCESS = false
  2042. ;SCHEDULE = @every 72h
  2043. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2044. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2045. ;; Delete all repositories missing their Git files
  2046. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2047. ;[cron.delete_missing_repos]
  2048. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2049. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2050. ;ENABLED = false
  2051. ;RUN_AT_START = false
  2052. ;NOTICE_ON_SUCCESS = false
  2053. ;SCHEDULE = @every 72h
  2054. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2055. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2056. ;; Delete generated repository avatars
  2057. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2058. ;[cron.delete_generated_repository_avatars]
  2059. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2060. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2061. ;ENABLED = false
  2062. ;RUN_AT_START = false
  2063. ;NOTICE_ON_SUCCESS = false
  2064. ;SCHEDULE = @every 72h
  2065. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2066. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2067. ;; Delete all old actions from database
  2068. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2069. ;[cron.delete_old_actions]
  2070. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2071. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2072. ;ENABLED = false
  2073. ;RUN_AT_START = false
  2074. ;NOTICE_ON_SUCCESS = false
  2075. ;SCHEDULE = @every 168h
  2076. ;OLDER_THAN = 8760h
  2077. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2078. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2079. ;; Check for new Gitea versions
  2080. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2081. ;[cron.update_checker]
  2082. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2083. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2084. ;ENABLED = true
  2085. ;RUN_AT_START = false
  2086. ;ENABLE_SUCCESS_NOTICE = false
  2087. ;SCHEDULE = @every 168h
  2088. ;HTTP_ENDPOINT = https://dl.gitea.com/gitea/version.json
  2089. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2090. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2091. ;; Delete all old system notices from database
  2092. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2093. ;[cron.delete_old_system_notices]
  2094. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2095. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2096. ;ENABLED = false
  2097. ;RUN_AT_START = false
  2098. ;NO_SUCCESS_NOTICE = false
  2099. ;SCHEDULE = @every 168h
  2100. ;OLDER_THAN = 8760h
  2101. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2102. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2103. ;; Garbage collect LFS pointers in repositories
  2104. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2105. ;[cron.gc_lfs]
  2106. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2107. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2108. ;ENABLED = false
  2109. ;; Garbage collect LFS pointers in repositories (default false)
  2110. ;RUN_AT_START = false
  2111. ;; Interval as a duration between each gc run (default every 24h)
  2112. ;SCHEDULE = @every 24h
  2113. ;; Only attempt to garbage collect LFSMetaObjects older than this (default 7 days)
  2114. ;OLDER_THAN = 168h
  2115. ;; Only attempt to garbage collect LFSMetaObjects that have not been attempted to be garbage collected for this long (default 3 days)
  2116. ;LAST_UPDATED_MORE_THAN_AGO = 72h
  2117. ; Minimum number of stale LFSMetaObjects to check per repo. Set to `0` to always check all.
  2118. ;NUMBER_TO_CHECK_PER_REPO = 100
  2119. ;Check at least this proportion of LFSMetaObjects per repo. (This may cause all stale LFSMetaObjects to be checked.)
  2120. ;PROPORTION_TO_CHECK_PER_REPO = 0.6
  2121. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2122. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2123. ;[mirror]
  2124. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2125. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2126. ;; Enables the mirror functionality. Set to **false** to disable all mirrors. Pre-existing mirrors remain valid but won't be updated; may be converted to regular repo.
  2127. ;ENABLED = true
  2128. ;; Disable the creation of **new** pull mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`.
  2129. ;DISABLE_NEW_PULL = false
  2130. ;; Disable the creation of **new** push mirrors. Pre-existing mirrors remain valid. Will be ignored if `mirror.ENABLED` is `false`.
  2131. ;DISABLE_NEW_PUSH = false
  2132. ;; Default interval as a duration between each check
  2133. ;DEFAULT_INTERVAL = 8h
  2134. ;; Min interval as a duration must be > 1m
  2135. ;MIN_INTERVAL = 10m
  2136. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2137. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2138. ;[api]
  2139. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2140. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2141. ;; Enables the API documentation endpoints (/api/swagger, /api/v1/swagger, …). True or false.
  2142. ;ENABLE_SWAGGER = true
  2143. ;; Max number of items in a page
  2144. ;MAX_RESPONSE_ITEMS = 50
  2145. ;; Default paging number of api
  2146. ;DEFAULT_PAGING_NUM = 30
  2147. ;; Default and maximum number of items per page for git trees api
  2148. ;DEFAULT_GIT_TREES_PER_PAGE = 1000
  2149. ;; Default max size of a blob returned by the blobs API (default is 10MiB)
  2150. ;DEFAULT_MAX_BLOB_SIZE = 10485760
  2151. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2152. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2153. ;[i18n]
  2154. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2155. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2156. ;; The first locale will be used as the default if user browser's language doesn't match any locale in the list.
  2157. ;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,pt-PT,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sv-SE,ko-KR,el-GR,fa-IR,hu-HU,id-ID,ml-IN
  2158. ;NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,Français,Nederlands,Latviešu,Русский,Українська,日本語,Español,Português do Brasil,Português de Portugal,Polski,Български,Italiano,Suomi,Türkçe,Čeština,Српски,Svenska,한국어,Ελληνικά,فارسی,Magyar nyelv,Bahasa Indonesia,മലയാളം
  2159. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2160. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2161. ;[highlight.mapping]
  2162. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2163. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2164. ;; Extension mapping to highlight class
  2165. ;; e.g. .toml=ini
  2166. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2167. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2168. ;[other]
  2169. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2170. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2171. ;; Show version information about Gitea and Go in the footer
  2172. ;SHOW_FOOTER_VERSION = true
  2173. ;; Show template execution time in the footer
  2174. ;SHOW_FOOTER_TEMPLATE_LOAD_TIME = true
  2175. ;; Generate sitemap. Defaults to `true`.
  2176. ;ENABLE_SITEMAP = true
  2177. ;; Enable/Disable RSS/Atom feed
  2178. ;ENABLE_FEED = true
  2179. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2180. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2181. ;[markup]
  2182. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2183. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2184. ;; Set the maximum number of characters in a mermaid source. (Set to -1 to disable limits)
  2185. ;MERMAID_MAX_SOURCE_CHARACTERS = 5000
  2186. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2187. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2188. ;[markup.sanitizer.1]
  2189. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2190. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2191. ;; The following keys can appear once to define a sanitation policy rule.
  2192. ;; This section can appear multiple times by adding a unique alphanumeric suffix to define multiple rules.
  2193. ;; e.g., [markup.sanitizer.1] -> [markup.sanitizer.2] -> [markup.sanitizer.TeX]
  2194. ;ELEMENT = span
  2195. ;ALLOW_ATTR = class
  2196. ;REGEXP = ^(info|warning|error)$
  2197. ;;
  2198. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2199. ;; Other markup formats e.g. asciidoc
  2200. ;;
  2201. ;; uncomment and enable the below section.
  2202. ;; (You can add other markup formats by copying the section and adjusting
  2203. ;; the section name suffix "asciidoc" to something else.)
  2204. ;[markup.asciidoc]
  2205. ;ENABLED = false
  2206. ;; List of file extensions that should be rendered by an external command
  2207. ;FILE_EXTENSIONS = .adoc,.asciidoc
  2208. ;; External command to render all matching extensions
  2209. ;RENDER_COMMAND = "asciidoc --out-file=- -"
  2210. ;; Don't pass the file on STDIN, pass the filename as argument instead.
  2211. ;IS_INPUT_FILE = false
  2212. ;; How the content will be rendered.
  2213. ;; * sanitized: Sanitize the content and render it inside current page, default to only allow a few HTML tags and attributes. Customized sanitizer rules can be defined in [markup.sanitizer.*] .
  2214. ;; * no-sanitizer: Disable the sanitizer and render the content inside current page. It's **insecure** and may lead to XSS attack if the content contains malicious code.
  2215. ;; * iframe: Render the content in a separate standalone page and embed it into current page by iframe. The iframe is in sandbox mode with same-origin disabled, and the JS code are safely isolated from parent page.
  2216. ;RENDER_CONTENT_MODE=sanitized
  2217. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2218. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2219. ;[metrics]
  2220. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2221. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2222. ;; Enables metrics endpoint. True or false; default is false.
  2223. ;ENABLED = false
  2224. ;; If you want to add authorization, specify a token here
  2225. ;TOKEN =
  2226. ;; Enable issue by label metrics; default is false
  2227. ;ENABLED_ISSUE_BY_LABEL = false
  2228. ;; Enable issue by repository metrics; default is false
  2229. ;ENABLED_ISSUE_BY_REPOSITORY = false
  2230. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2231. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2232. ;[task]
  2233. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2234. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2235. ;;
  2236. ;; Task queue type, could be `channel` or `redis`.
  2237. ;QUEUE_TYPE = channel
  2238. ;;
  2239. ;; Task queue length, available only when `QUEUE_TYPE` is `channel`.
  2240. ;QUEUE_LENGTH = 1000
  2241. ;;
  2242. ;; Task queue connection string, available only when `QUEUE_TYPE` is `redis`.
  2243. ;; If there is a password of redis, use `redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` or `redis+cluster://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s` for `redis-clsuter`.
  2244. ;QUEUE_CONN_STR = "redis://127.0.0.1:6379/0?pool_size=100&idle_timeout=180s"
  2245. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2246. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2247. ;[migrations]
  2248. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2249. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2250. ;;
  2251. ;; Max attempts per http/https request on migrations.
  2252. ;MAX_ATTEMPTS = 3
  2253. ;;
  2254. ;; Backoff time per http/https request retry (seconds)
  2255. ;RETRY_BACKOFF = 3
  2256. ;;
  2257. ;; Allowed domains for migrating, default is blank. Blank means everything will be allowed.
  2258. ;; Multiple domains could be separated by commas.
  2259. ;; Wildcard is supported: "github.com, *.github.com"
  2260. ;ALLOWED_DOMAINS =
  2261. ;;
  2262. ;; Blocklist for migrating, default is blank. Multiple domains could be separated by commas.
  2263. ;; When ALLOWED_DOMAINS is not blank, this option has a higher priority to deny domains.
  2264. ;; Wildcard is supported.
  2265. ;BLOCKED_DOMAINS =
  2266. ;;
  2267. ;; Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291 (false by default)
  2268. ;; If a domain is allowed by ALLOWED_DOMAINS, this option will be ignored.
  2269. ;ALLOW_LOCALNETWORKS = false
  2270. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2271. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2272. ;[federation]
  2273. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2274. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2275. ;;
  2276. ;; Enable/Disable federation capabilities
  2277. ;ENABLED = false
  2278. ;;
  2279. ;; Enable/Disable user statistics for nodeinfo if federation is enabled
  2280. ;SHARE_USER_STATISTICS = true
  2281. ;;
  2282. ;; Maximum federation request and response size (MB)
  2283. ;MAX_SIZE = 4
  2284. ;;
  2285. ;; WARNING: Changing the settings below can break federation.
  2286. ;;
  2287. ;; HTTP signature algorithms
  2288. ;ALGORITHMS = rsa-sha256, rsa-sha512, ed25519
  2289. ;;
  2290. ;; HTTP signature digest algorithm
  2291. ;DIGEST_ALGORITHM = SHA-256
  2292. ;;
  2293. ;; GET headers for federation requests
  2294. ;GET_HEADERS = (request-target), Date
  2295. ;;
  2296. ;; POST headers for federation requests
  2297. ;POST_HEADERS = (request-target), Date, Digest
  2298. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2299. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2300. ;[packages]
  2301. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2302. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2303. ;;
  2304. ;; Enable/Disable package registry capabilities
  2305. ;ENABLED = true
  2306. ;;
  2307. ;STORAGE_TYPE = local
  2308. ;; override the minio base path if storage type is minio
  2309. ;MINIO_BASE_PATH = packages/
  2310. ;;
  2311. ;; Path for chunked uploads. Defaults to APP_DATA_PATH + `tmp/package-upload`
  2312. ;CHUNKED_UPLOAD_PATH = tmp/package-upload
  2313. ;;
  2314. ;; Maximum count of package versions a single owner can have (`-1` means no limits)
  2315. ;LIMIT_TOTAL_OWNER_COUNT = -1
  2316. ;; Maximum size of packages a single owner can use (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2317. ;LIMIT_TOTAL_OWNER_SIZE = -1
  2318. ;; Maximum size of an Alpine upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2319. ;LIMIT_SIZE_ALPINE = -1
  2320. ;; Maximum size of a Cargo upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2321. ;LIMIT_SIZE_CARGO = -1
  2322. ;; Maximum size of a Chef upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2323. ;LIMIT_SIZE_CHEF = -1
  2324. ;; Maximum size of a Composer upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2325. ;LIMIT_SIZE_COMPOSER = -1
  2326. ;; Maximum size of a Conan upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2327. ;LIMIT_SIZE_CONAN = -1
  2328. ;; Maximum size of a Conda upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2329. ;LIMIT_SIZE_CONDA = -1
  2330. ;; Maximum size of a Container upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2331. ;LIMIT_SIZE_CONTAINER = -1
  2332. ;; Maximum size of a CRAN upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2333. ;LIMIT_SIZE_CRAN = -1
  2334. ;; Maximum size of a Debian upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2335. ;LIMIT_SIZE_DEBIAN = -1
  2336. ;; Maximum size of a Generic upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2337. ;LIMIT_SIZE_GENERIC = -1
  2338. ;; Maximum size of a Go upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2339. ;LIMIT_SIZE_GO = -1
  2340. ;; Maximum size of a Helm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2341. ;LIMIT_SIZE_HELM = -1
  2342. ;; Maximum size of a Maven upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2343. ;LIMIT_SIZE_MAVEN = -1
  2344. ;; Maximum size of a npm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2345. ;LIMIT_SIZE_NPM = -1
  2346. ;; Maximum size of a NuGet upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2347. ;LIMIT_SIZE_NUGET = -1
  2348. ;; Maximum size of a Pub upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2349. ;LIMIT_SIZE_PUB = -1
  2350. ;; Maximum size of a PyPI upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2351. ;LIMIT_SIZE_PYPI = -1
  2352. ;; Maximum size of a RPM upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2353. ;LIMIT_SIZE_RPM = -1
  2354. ;; Maximum size of a RubyGems upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2355. ;LIMIT_SIZE_RUBYGEMS = -1
  2356. ;; Maximum size of a Swift upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2357. ;LIMIT_SIZE_SWIFT = -1
  2358. ;; Maximum size of a Vagrant upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
  2359. ;LIMIT_SIZE_VAGRANT = -1
  2360. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2361. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2362. ;; default storage for attachments, lfs and avatars
  2363. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2364. ;[storage]
  2365. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2366. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2367. ;; storage type
  2368. ;STORAGE_TYPE = local
  2369. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2370. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2371. ;; repo-archive storage will override storage
  2372. ;;
  2373. ;[repo-archive]
  2374. ;STORAGE_TYPE = local
  2375. ;;
  2376. ;; Where your lfs files reside, default is data/lfs.
  2377. ;PATH = data/repo-archive
  2378. ;;
  2379. ;; override the minio base path if storage type is minio
  2380. ;MINIO_BASE_PATH = repo-archive/
  2381. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2382. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2383. ;; settings for repository archives, will override storage setting
  2384. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2385. ;[storage.repo-archive]
  2386. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2387. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2388. ;; storage type
  2389. ;STORAGE_TYPE = local
  2390. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2391. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2392. ;; lfs storage will override storage
  2393. ;;
  2394. ;[lfs]
  2395. ;STORAGE_TYPE = local
  2396. ;;
  2397. ;; Where your lfs files reside, default is data/lfs.
  2398. ;PATH = data/lfs
  2399. ;;
  2400. ;; override the minio base path if storage type is minio
  2401. ;MINIO_BASE_PATH = lfs/
  2402. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2403. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2404. ;; settings for packages, will override storage setting
  2405. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2406. ;[storage.packages]
  2407. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2408. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2409. ;; storage type
  2410. ;STORAGE_TYPE = local
  2411. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2412. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2413. ;; customize storage
  2414. ;[storage.my_minio]
  2415. ;STORAGE_TYPE = minio
  2416. ;;
  2417. ;; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
  2418. ;MINIO_ENDPOINT = localhost:9000
  2419. ;;
  2420. ;; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio`
  2421. ;MINIO_ACCESS_KEY_ID =
  2422. ;;
  2423. ;; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio`
  2424. ;MINIO_SECRET_ACCESS_KEY =
  2425. ;;
  2426. ;; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio`
  2427. ;MINIO_BUCKET = gitea
  2428. ;;
  2429. ;; Minio location to create bucket only available when STORAGE_TYPE is `minio`
  2430. ;MINIO_LOCATION = us-east-1
  2431. ;;
  2432. ;; Minio enabled ssl only available when STORAGE_TYPE is `minio`
  2433. ;MINIO_USE_SSL = false
  2434. ;;
  2435. ;; Minio skip SSL verification available when STORAGE_TYPE is `minio`
  2436. ;MINIO_INSECURE_SKIP_VERIFY = false
  2437. ;[proxy]
  2438. ;; Enable the proxy, all requests to external via HTTP will be affected
  2439. ;PROXY_ENABLED = false
  2440. ;; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy/no_proxy
  2441. ;PROXY_URL =
  2442. ;; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
  2443. ;PROXY_HOSTS =
  2444. ; [actions]
  2445. ;; Enable/Disable actions capabilities
  2446. ;ENABLED = false
  2447. ;;
  2448. ;; Default platform to get action plugins, `github` for `https://github.com`, `self` for the current Gitea instance.
  2449. ;DEFAULT_ACTIONS_URL = github
  2450. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2451. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2452. ;; settings for action logs, will override storage setting
  2453. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2454. ;[storage.actions_log]
  2455. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2456. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2457. ;; storage type
  2458. ;STORAGE_TYPE = local