You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.example.ini 90KB

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