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

app.example.ini 85KB

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