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

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