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 84KB

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