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

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