Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

app.example.ini 103KB

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