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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304
  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. ; see https://docs.gitea.io/en-us/config-cheat-sheet/ for additional documentation.
  7. ; App name that shows in every page title
  8. APP_NAME = Gitea: Git with a cup of tea
  9. ; Change it if you run locally
  10. RUN_USER = git
  11. ; Application run mode, affects performance and debugging. Either "dev", "prod" or "test", default is "prod"
  12. RUN_MODE = prod
  13. [project]
  14. ; Default templates for project boards
  15. PROJECT_BOARD_BASIC_KANBAN_TYPE = To Do, In Progress, Done
  16. PROJECT_BOARD_BUG_TRIAGE_TYPE = Needs Triage, High Priority, Low Priority, Closed
  17. [repository]
  18. ; 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`.
  19. ROOT =
  20. ; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available.
  21. SCRIPT_TYPE = bash
  22. ; DETECTED_CHARSETS_ORDER tie-break order for detected charsets.
  23. ; If the charsets have equal confidence, tie-breaking will be done by order in this list
  24. ; with charsets earlier in the list chosen in preference to those later.
  25. ; Adding "defaults" will place the unused charsets at that position.
  26. 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
  27. ; Default ANSI charset to override non-UTF-8 charsets to
  28. ANSI_CHARSET =
  29. ; Force every new repository to be private
  30. FORCE_PRIVATE = false
  31. ; Default privacy setting when creating a new repository, allowed values: last, private, public. Default is last which means the last setting used.
  32. DEFAULT_PRIVATE = last
  33. ; Default private when using push-to-create
  34. DEFAULT_PUSH_CREATE_PRIVATE = true
  35. ; Global limit of repositories per user, applied at creation time. -1 means no limit
  36. MAX_CREATION_LIMIT = -1
  37. ; Mirror sync queue length, increase if mirror syncing starts hanging
  38. MIRROR_QUEUE_LENGTH = 1000
  39. ; Patch test queue length, increase if pull request patch testing starts hanging
  40. PULL_REQUEST_QUEUE_LENGTH = 1000
  41. ; Preferred Licenses to place at the top of the List
  42. ; The name here must match the filename in conf/license or custom/conf/license
  43. PREFERRED_LICENSES = Apache License 2.0,MIT License
  44. ; Disable the ability to interact with repositories using the HTTP protocol
  45. DISABLE_HTTP_GIT = false
  46. ; Value for Access-Control-Allow-Origin header, default is not to present
  47. ; WARNING: This may be harmful to your website if you do not give it a right value.
  48. ACCESS_CONTROL_ALLOW_ORIGIN =
  49. ; Force ssh:// clone url instead of scp-style uri when default SSH port is used
  50. USE_COMPAT_SSH_URI = false
  51. ; Close issues as long as a commit on any branch marks it as fixed
  52. DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH = false
  53. ; Allow users to push local repositories to Gitea and have them automatically created for a user or an org
  54. ENABLE_PUSH_CREATE_USER = false
  55. ENABLE_PUSH_CREATE_ORG = false
  56. ; Comma separated list of globally disabled repo units. Allowed values: repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki
  57. DISABLED_REPO_UNITS =
  58. ; Comma separated list of default repo units. Allowed values: repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects.
  59. ; Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility.
  60. ; External wiki and issue tracker can't be enabled by default as it requires additional settings.
  61. ; Disabled repo units will not be added to new repositories regardless if it is in the default list.
  62. DEFAULT_REPO_UNITS = repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects
  63. ; Prefix archive files by placing them in a directory named after the repository
  64. PREFIX_ARCHIVE_FILES = true
  65. ; Disable the creation of new mirrors. Pre-existing mirrors remain valid.
  66. DISABLE_MIRRORS = false
  67. ; Disable migrating feature.
  68. DISABLE_MIGRATIONS = false
  69. ; Disable stars feature.
  70. DISABLE_STARS = false
  71. ; The default branch name of new repositories
  72. DEFAULT_BRANCH = master
  73. ; Allow adoption of unadopted repositories
  74. ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES = false
  75. ; Allow deletion of unadopted repositories
  76. ALLOW_DELETION_OF_UNADOPTED_REPOSITORIES = false
  77. [repository.editor]
  78. ; List of file extensions for which lines should be wrapped in the Monaco editor
  79. ; Separate extensions with a comma. To line wrap files without an extension, just put a comma
  80. LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
  81. ; Valid file modes that have a preview API associated with them, such as api/v1/markdown
  82. ; Separate the values by commas. The preview tab in edit mode won't be displayed if the file extension doesn't match
  83. PREVIEWABLE_FILE_MODES = markdown
  84. [repository.local]
  85. ; Path for local repository copy. Defaults to `tmp/local-repo`
  86. LOCAL_COPY_PATH = tmp/local-repo
  87. [repository.upload]
  88. ; Whether repository file uploads are enabled. Defaults to `true`
  89. ENABLED = true
  90. ; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
  91. TEMP_PATH = data/tmp/uploads
  92. ; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
  93. ALLOWED_TYPES =
  94. ; Max size of each file in megabytes. Defaults to 3MB
  95. FILE_MAX_SIZE = 3
  96. ; Max number of files per upload. Defaults to 5
  97. MAX_FILES = 5
  98. [repository.pull-request]
  99. ; List of prefixes used in Pull Request title to mark them as Work In Progress
  100. WORK_IN_PROGRESS_PREFIXES = WIP:,[WIP]
  101. ; List of keywords used in Pull Request comments to automatically close a related issue
  102. CLOSE_KEYWORDS = close,closes,closed,fix,fixes,fixed,resolve,resolves,resolved
  103. ; List of keywords used in Pull Request comments to automatically reopen a related issue
  104. REOPEN_KEYWORDS = reopen,reopens,reopened
  105. ; In the default merge message for squash commits include at most this many commits
  106. DEFAULT_MERGE_MESSAGE_COMMITS_LIMIT = 50
  107. ; In the default merge message for squash commits limit the size of the commit messages to this
  108. DEFAULT_MERGE_MESSAGE_SIZE = 5120
  109. ; 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
  110. DEFAULT_MERGE_MESSAGE_ALL_AUTHORS = false
  111. ; In default merge messages limit the number of approvers listed as Reviewed-by: to this many
  112. DEFAULT_MERGE_MESSAGE_MAX_APPROVERS = 10
  113. ; In default merge messages only include approvers who are official
  114. DEFAULT_MERGE_MESSAGE_OFFICIAL_APPROVERS_ONLY = true
  115. [repository.issue]
  116. ; List of reasons why a Pull Request or Issue can be locked
  117. LOCK_REASONS = Too heated,Off-topic,Resolved,Spam
  118. [repository.release]
  119. ; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
  120. ALLOWED_TYPES =
  121. [repository.signing]
  122. ; GPG key to use to sign commits, Defaults to the default - that is the value of git config --get user.signingkey
  123. ; run in the context of the RUN_USER
  124. ; Switch to none to stop signing completely
  125. SIGNING_KEY = default
  126. ; If a SIGNING_KEY ID is provided and is not set to default, use the provided Name and Email address as the signer.
  127. ; These should match a publicized name and email address for the key. (When SIGNING_KEY is default these are set to
  128. ; the results of git config --get user.name and git config --get user.email respectively and can only be overridden
  129. ; by setting the SIGNING_KEY ID to the correct ID.)
  130. SIGNING_NAME =
  131. SIGNING_EMAIL =
  132. ; Sets the default trust model for repositories. Options are: collaborator, committer, collaboratorcommitter
  133. DEFAULT_TRUST_MODEL = collaborator
  134. ; Determines when gitea should sign the initial commit when creating a repository
  135. ; Either:
  136. ; - never
  137. ; - pubkey: only sign if the user has a pubkey
  138. ; - twofa: only sign if the user has logged in with twofa
  139. ; - always
  140. ; options other than none and always can be combined as comma separated list
  141. INITIAL_COMMIT = always
  142. ; Determines when to sign for CRUD actions
  143. ; - as above
  144. ; - parentsigned: requires that the parent commit is signed.
  145. CRUD_ACTIONS = pubkey, twofa, parentsigned
  146. ; Determines when to sign Wiki commits
  147. ; - as above
  148. WIKI = never
  149. ; Determines when to sign on merges
  150. ; - basesigned: require that the parent of commit on the base repo is signed.
  151. ; - commitssigned: require that all the commits in the head branch are signed.
  152. ; - approved: only sign when merging an approved pr to a protected branch
  153. MERGES = pubkey, twofa, basesigned, commitssigned
  154. [cors]
  155. ; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers
  156. ; enable cors headers (disabled by default)
  157. ENABLED = false
  158. ; scheme of allowed requests
  159. SCHEME = http
  160. ; list of requesting domains that are allowed
  161. ALLOW_DOMAIN = *
  162. ; allow subdomains of headers listed above to request
  163. ALLOW_SUBDOMAIN = false
  164. ; list of methods allowed to request
  165. METHODS = GET,HEAD,POST,PUT,PATCH,DELETE,OPTIONS
  166. ; max time to cache response
  167. MAX_AGE = 10m
  168. ; allow request with credentials
  169. ALLOW_CREDENTIALS = false
  170. [ui]
  171. ; Number of repositories that are displayed on one explore page
  172. EXPLORE_PAGING_NUM = 20
  173. ; Number of issues that are displayed on one page
  174. ISSUE_PAGING_NUM = 10
  175. ; Number of maximum commits displayed in one activity feed
  176. FEED_MAX_COMMIT_NUM = 5
  177. ; Number of items that are displayed in home feed
  178. FEED_PAGING_NUM = 20
  179. ; Number of maximum commits displayed in commit graph.
  180. GRAPH_MAX_COMMIT_NUM = 100
  181. ; Number of line of codes shown for a code comment
  182. CODE_COMMENT_LINES = 4
  183. ; Value of `theme-color` meta tag, used by Android >= 5.0
  184. ; An invalid color like "none" or "disable" will have the default style
  185. ; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
  186. THEME_COLOR_META_TAG = `#6cc644`
  187. ; Max size of files to be displayed (default is 8MiB)
  188. MAX_DISPLAY_FILE_SIZE = 8388608
  189. ; Whether the email of the user should be shown in the Explore Users page
  190. SHOW_USER_EMAIL = true
  191. ; Set the default theme for the Gitea install
  192. DEFAULT_THEME = gitea
  193. ; All available themes. Allow users select personalized themes regardless of the value of `DEFAULT_THEME`.
  194. THEMES = gitea,arc-green
  195. ;All available reactions users can choose on issues/prs and comments.
  196. ;Values can be emoji alias (:smile:) or a unicode emoji.
  197. ;For custom reactions, add a tightly cropped square image to public/emoji/img/reaction_name.png
  198. REACTIONS = +1, -1, laugh, hooray, confused, heart, rocket, eyes
  199. ; Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
  200. DEFAULT_SHOW_FULL_NAME = false
  201. ; Whether to search within description at repository search on explore page.
  202. SEARCH_REPO_DESCRIPTION = true
  203. ; Whether to enable a Service Worker to cache frontend assets
  204. USE_SERVICE_WORKER = true
  205. [ui.admin]
  206. ; Number of users that are displayed on one page
  207. USER_PAGING_NUM = 50
  208. ; Number of repos that are displayed on one page
  209. REPO_PAGING_NUM = 50
  210. ; Number of notices that are displayed on one page
  211. NOTICE_PAGING_NUM = 25
  212. ; Number of organizations that are displayed on one page
  213. ORG_PAGING_NUM = 50
  214. [ui.user]
  215. ; Number of repos that are displayed on one page
  216. REPO_PAGING_NUM = 15
  217. [ui.meta]
  218. AUTHOR = Gitea - Git with a cup of tea
  219. DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go
  220. KEYWORDS = go,git,self-hosted,gitea
  221. [ui.notification]
  222. ; Control how often the notification endpoint is polled to update the notification
  223. ; The timeout will increase to MAX_TIMEOUT in TIMEOUT_STEPs if the notification count is unchanged
  224. ; Set MIN_TIMEOUT to 0 to turn off
  225. MIN_TIMEOUT = 10s
  226. MAX_TIMEOUT = 60s
  227. TIMEOUT_STEP = 10s
  228. ; This setting determines how often the db is queried to get the latest notification counts.
  229. ; 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
  230. EVENT_SOURCE_UPDATE_TIME = 10s
  231. [ui.svg]
  232. ; 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.
  233. ENABLE_RENDER = true
  234. [ui.csv]
  235. ; Maximum allowed file size in bytes to render CSV files as table. (Set to 0 for no limit).
  236. MAX_FILE_SIZE = 524288
  237. [markdown]
  238. ; Render soft line breaks as hard line breaks, which means a single newline character between
  239. ; paragraphs will cause a line break and adding trailing whitespace to paragraphs is not
  240. ; necessary to force a line break.
  241. ; Render soft line breaks as hard line breaks for comments
  242. ENABLE_HARD_LINE_BREAK_IN_COMMENTS = true
  243. ; Render soft line breaks as hard line breaks for markdown documents
  244. ENABLE_HARD_LINE_BREAK_IN_DOCUMENTS = false
  245. ; Comma separated list of custom URL-Schemes that are allowed as links when rendering Markdown
  246. ; for example git,magnet,ftp (more at https://en.wikipedia.org/wiki/List_of_URI_schemes)
  247. ; URLs starting with http and https are always displayed, whatever is put in this entry.
  248. CUSTOM_URL_SCHEMES =
  249. ; List of file extensions that should be rendered/edited as Markdown
  250. ; Separate the extensions with a comma. To render files without any extension as markdown, just put a comma
  251. FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
  252. [server]
  253. ; The protocol the server listens on. One of 'http', 'https', 'unix' or 'fcgi'.
  254. PROTOCOL = http
  255. DOMAIN = localhost
  256. ROOT_URL = %(PROTOCOL)s://%(DOMAIN)s:%(HTTP_PORT)s/
  257. ; when STATIC_URL_PREFIX is empty it will follow ROOT_URL
  258. STATIC_URL_PREFIX =
  259. ; The address to listen on. Either a IPv4/IPv6 address or the path to a unix socket.
  260. HTTP_ADDR = 0.0.0.0
  261. ; The port to listen on. Leave empty when using a unix socket.
  262. HTTP_PORT = 3000
  263. ; If REDIRECT_OTHER_PORT is true, and PROTOCOL is set to https an http server
  264. ; will be started on PORT_TO_REDIRECT and it will redirect plain, non-secure http requests to the main
  265. ; ROOT_URL. Defaults are false for REDIRECT_OTHER_PORT and 80 for
  266. ; PORT_TO_REDIRECT.
  267. REDIRECT_OTHER_PORT = false
  268. PORT_TO_REDIRECT = 80
  269. ; Permission for unix socket
  270. UNIX_SOCKET_PERMISSION = 666
  271. ; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
  272. ; In most cases you do not need to change the default value.
  273. ; Alter it only if your SSH server node is not the same as HTTP node.
  274. ; Do not set this variable if PROTOCOL is set to 'unix'.
  275. LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
  276. ; Disable SSH feature when not available
  277. DISABLE_SSH = false
  278. ; Whether to use the builtin SSH server or not.
  279. START_SSH_SERVER = false
  280. ; Username to use for the builtin SSH server. If blank, then it is the value of RUN_USER.
  281. BUILTIN_SSH_SERVER_USER =
  282. ; Domain name to be exposed in clone URL
  283. SSH_DOMAIN = %(DOMAIN)s
  284. ; The network interface the builtin SSH server should listen on
  285. SSH_LISTEN_HOST =
  286. ; Port number to be exposed in clone URL
  287. SSH_PORT = 22
  288. ; The port number the builtin SSH server should listen on
  289. SSH_LISTEN_PORT = %(SSH_PORT)s
  290. ; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
  291. SSH_ROOT_PATH =
  292. ; Gitea will create a authorized_keys file by default when it is not using the internal ssh server
  293. ; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off.
  294. SSH_CREATE_AUTHORIZED_KEYS_FILE = true
  295. ; Gitea will create a authorized_principals file by default when it is not using the internal ssh server
  296. ; If you intend to use the AuthorizedPrincipalsCommand functionality then you should turn this off.
  297. SSH_CREATE_AUTHORIZED_PRINCIPALS_FILE = true
  298. ; For the built-in SSH server, choose the ciphers to support for SSH connections,
  299. ; for system SSH this setting has no effect
  300. SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
  301. ; For the built-in SSH server, choose the key exchange algorithms to support for SSH connections,
  302. ; for system SSH this setting has no effect
  303. 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
  304. ; For the built-in SSH server, choose the MACs to support for SSH connections,
  305. ; for system SSH this setting has no effect
  306. SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1, hmac-sha1-96
  307. ; For the built-in SSH server, choose the keypair to offer as the host key
  308. ; The private key should be at SSH_SERVER_HOST_KEY and the public SSH_SERVER_HOST_KEY.pub
  309. ; relative paths are made absolute relative to the APP_DATA_PATH
  310. SSH_SERVER_HOST_KEYS=ssh/gitea.rsa, ssh/gogs.rsa
  311. ; Directory to create temporary files in when testing public keys using ssh-keygen,
  312. ; default is the system temporary directory.
  313. SSH_KEY_TEST_PATH =
  314. ; Path to ssh-keygen, default is 'ssh-keygen' which means the shell is responsible for finding out which one to call.
  315. SSH_KEYGEN_PATH = ssh-keygen
  316. ; Enable SSH Authorized Key Backup when rewriting all keys, default is true
  317. SSH_AUTHORIZED_KEYS_BACKUP = true
  318. ; Determines which principals to allow
  319. ; - empty: if SSH_TRUSTED_USER_CA_KEYS is empty this will default to off, otherwise will default to email, username.
  320. ; - off: Do not allow authorized principals
  321. ; - email: the principal must match the user's email
  322. ; - username: the principal must match the user's username
  323. ; - anything: there will be no checking on the content of the principal
  324. SSH_AUTHORIZED_PRINCIPALS_ALLOW = email, username
  325. ; Enable SSH Authorized Principals Backup when rewriting all keys, default is true
  326. SSH_AUTHORIZED_PRINCIPALS_BACKUP = true
  327. ; Specifies the public keys of certificate authorities that are trusted to sign user certificates for authentication.
  328. ; Multiple keys should be comma separated.
  329. ; E.g."ssh-<algorithm> <key>". or "ssh-<algorithm> <key1>, ssh-<algorithm> <key2>".
  330. ; For more information see "TrustedUserCAKeys" in the sshd config manpages.
  331. SSH_TRUSTED_USER_CA_KEYS =
  332. ; Absolute path of the `TrustedUserCaKeys` file gitea will manage.
  333. ; Default this `RUN_USER`/.ssh/gitea-trusted-user-ca-keys.pem
  334. ; If you're running your own ssh server and you want to use the gitea managed file you'll also need to modify your
  335. ; sshd_config to point to this file. The official docker image will automatically work without further configuration.
  336. SSH_TRUSTED_USER_CA_KEYS_FILENAME =
  337. ; Enable exposure of SSH clone URL to anonymous visitors, default is false
  338. SSH_EXPOSE_ANONYMOUS = false
  339. ; Indicate whether to check minimum key size with corresponding type
  340. MINIMUM_KEY_SIZE_CHECK = false
  341. ; Disable CDN even in "prod" mode
  342. OFFLINE_MODE = false
  343. DISABLE_ROUTER_LOG = false
  344. ; Generate steps:
  345. ; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com
  346. ;
  347. ; Or from a .pfx file exported from the Windows certificate store (do
  348. ; not forget to export the private key):
  349. ; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
  350. ; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
  351. ; Paths are relative to CUSTOM_PATH
  352. CERT_FILE = https/cert.pem
  353. KEY_FILE = https/key.pem
  354. ; Root directory containing templates and static files.
  355. ; default is the path where Gitea is executed
  356. STATIC_ROOT_PATH =
  357. ; Default path for App data
  358. APP_DATA_PATH = data
  359. ; Enable gzip compression for runtime-generated content, static resources excluded
  360. ENABLE_GZIP = false
  361. ; Application profiling (memory and cpu)
  362. ; For "web" command it listens on localhost:6060
  363. ; For "serve" command it dumps to disk at PPROF_DATA_PATH as (cpuprofile|memprofile)_<username>_<temporary id>
  364. ENABLE_PPROF = false
  365. ; PPROF_DATA_PATH, use an absolute path when you start gitea as service
  366. PPROF_DATA_PATH = data/tmp/pprof
  367. ; Landing page, can be "home", "explore", "organizations" or "login"
  368. ; The "login" choice is not a security measure but just a UI flow change, use REQUIRE_SIGNIN_VIEW to force users to log in.
  369. LANDING_PAGE = home
  370. ; Enables git-lfs support. true or false, default is false.
  371. LFS_START_SERVER = false
  372. ; Where your lfs files reside, default is data/lfs.
  373. LFS_CONTENT_PATH = data/lfs
  374. ; LFS authentication secret, change this yourself
  375. LFS_JWT_SECRET =
  376. ; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail.
  377. LFS_HTTP_AUTH_EXPIRY = 20m
  378. ; Maximum allowed LFS file size in bytes (Set to 0 for no limit).
  379. LFS_MAX_FILE_SIZE = 0
  380. ; Maximum number of locks returned per page
  381. LFS_LOCKS_PAGING_NUM = 50
  382. ; Allow graceful restarts using SIGHUP to fork
  383. ALLOW_GRACEFUL_RESTARTS = true
  384. ; After a restart the parent will finish ongoing requests before
  385. ; shutting down. Force shutdown if this process takes longer than this delay.
  386. ; set to a negative value to disable
  387. GRACEFUL_HAMMER_TIME = 60s
  388. ; Allows the setting of a startup timeout and waithint for Windows as SVC service
  389. ; 0 disables this.
  390. STARTUP_TIMEOUT = 0
  391. ; 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
  392. STATIC_CACHE_TIME = 6h
  393. ; Define allowed algorithms and their minimum key length (use -1 to disable a type)
  394. [ssh.minimum_key_sizes]
  395. ED25519 = 256
  396. ECDSA = 256
  397. RSA = 2048
  398. DSA = -1 ; set to 1024 to switch on
  399. [database]
  400. ; Database to use. Either "mysql", "postgres", "mssql" or "sqlite3".
  401. DB_TYPE = mysql
  402. HOST = 127.0.0.1:3306
  403. NAME = gitea
  404. USER = root
  405. ; Use PASSWD = `your password` for quoting if you use special characters in the password.
  406. PASSWD =
  407. ; For Postgres, schema to use if different from "public". The schema must exist beforehand,
  408. ; the user must have creation privileges on it, and the user search path must be set
  409. ; to the look into the schema first. e.g.:ALTER USER user SET SEARCH_PATH = schema_name,"$user",public;
  410. SCHEMA =
  411. ; For Postgres, either "disable" (default), "require", or "verify-full"
  412. ; For MySQL, either "false" (default), "true", or "skip-verify"
  413. SSL_MODE = disable
  414. ; For MySQL only, either "utf8" or "utf8mb4", default is "utf8mb4".
  415. ; NOTICE: for "utf8mb4" you must use MySQL InnoDB > 5.6. Gitea is unable to check this.
  416. CHARSET = utf8mb4
  417. ; For "sqlite3" and "tidb", use an absolute path when you start gitea as service
  418. PATH = data/gitea.db
  419. ; For "sqlite3" only. Query timeout
  420. SQLITE_TIMEOUT = 500
  421. ; For iterate buffer, default is 50
  422. ITERATE_BUFFER_SIZE = 50
  423. ; Show the database generated SQL
  424. LOG_SQL = true
  425. ; Maximum number of DB Connect retries
  426. DB_RETRIES = 10
  427. ; Backoff time per DB retry (time.Duration)
  428. DB_RETRY_BACKOFF = 3s
  429. ; Max idle database connections on connection pool, default is 2
  430. MAX_IDLE_CONNS = 2
  431. ; Database connection max life time, default is 0 or 3s mysql (See #6804 & #7071 for reasoning)
  432. CONN_MAX_LIFETIME = 3s
  433. ; Database maximum number of open connections, default is 0 meaning no maximum
  434. MAX_OPEN_CONNS = 0
  435. [indexer]
  436. ; Issue indexer type, currently support: bleve, db or elasticsearch, default is bleve
  437. ISSUE_INDEXER_TYPE = bleve
  438. ; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch
  439. ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200
  440. ; Issue indexer name, available when ISSUE_INDEXER_TYPE is elasticsearch
  441. ISSUE_INDEXER_NAME = gitea_issues
  442. ; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve
  443. ISSUE_INDEXER_PATH = indexers/issues.bleve
  444. ; Issue indexer queue, currently support: channel, levelqueue or redis, default is levelqueue
  445. ISSUE_INDEXER_QUEUE_TYPE = levelqueue
  446. ; When ISSUE_INDEXER_QUEUE_TYPE is levelqueue, this will be the path where the queue will be saved.
  447. ; This can be overridden by `ISSUE_INDEXER_QUEUE_CONN_STR`.
  448. ; default is indexers/issues.queue
  449. ISSUE_INDEXER_QUEUE_DIR = indexers/issues.queue
  450. ; When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string.
  451. ; When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this is a directory or additional options of
  452. ; the form `leveldb://path/to/db?option=value&....`, and overrides `ISSUE_INDEXER_QUEUE_DIR`.
  453. ISSUE_INDEXER_QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"
  454. ; Batch queue number, default is 20
  455. ISSUE_INDEXER_QUEUE_BATCH_NUMBER = 20
  456. ; Timeout the indexer if it takes longer than this to start.
  457. ; Set to zero to disable timeout.
  458. STARTUP_TIMEOUT = 30s
  459. ; repo indexer by default disabled, since it uses a lot of disk space
  460. REPO_INDEXER_ENABLED = false
  461. ; Code search engine type, could be `bleve` or `elasticsearch`.
  462. REPO_INDEXER_TYPE = bleve
  463. ; Index file used for code search.
  464. REPO_INDEXER_PATH = indexers/repos.bleve
  465. ; Code indexer connection string, available when `REPO_INDEXER_TYPE` is elasticsearch. i.e. http://elastic:changeme@localhost:9200
  466. REPO_INDEXER_CONN_STR =
  467. ; Code indexer name, available when `REPO_INDEXER_TYPE` is elasticsearch
  468. REPO_INDEXER_NAME = gitea_codes
  469. UPDATE_BUFFER_LEN = 20
  470. MAX_FILE_SIZE = 1048576
  471. ; A comma separated list of glob patterns (see https://github.com/gobwas/glob) to include
  472. ; in the index; default is empty
  473. REPO_INDEXER_INCLUDE =
  474. ; A comma separated list of glob patterns to exclude from the index; ; default is empty
  475. REPO_INDEXER_EXCLUDE =
  476. [queue]
  477. ; Specific queues can be individually configured with [queue.name]. [queue] provides defaults
  478. ;
  479. ; General queue queue type, currently support: persistable-channel, channel, level, redis, dummy
  480. ; default to persistable-channel
  481. TYPE = persistable-channel
  482. ; data-dir for storing persistable queues and level queues, individual queues will be named by their type
  483. DATADIR = queues/
  484. ; Default queue length before a channel queue will block
  485. LENGTH = 20
  486. ; Batch size to send for batched queues
  487. BATCH_LENGTH = 20
  488. ; Connection string for redis queues this will store the redis connection string.
  489. ; When `TYPE` is `persistable-channel`, this provides a directory for the underlying leveldb
  490. ; or additional options of the form `leveldb://path/to/db?option=value&....`, and will override `DATADIR`.
  491. CONN_STR = "addrs=127.0.0.1:6379 db=0"
  492. ; Provides the suffix of the default redis/disk queue name - specific queues can be overridden within in their [queue.name] sections.
  493. QUEUE_NAME = "_queue"
  494. ; Provides the suffix of the default redis/disk unique queue set name - specific queues can be overridden within in their [queue.name] sections.
  495. SET_NAME = "_unique"
  496. ; If the queue cannot be created at startup - level queues may need a timeout at startup - wrap the queue:
  497. WRAP_IF_NECESSARY = true
  498. ; Attempt to create the wrapped queue at max
  499. MAX_ATTEMPTS = 10
  500. ; Timeout queue creation
  501. TIMEOUT = 15m30s
  502. ; Create a pool with this many workers
  503. WORKERS = 1
  504. ; Dynamically scale the worker pool to at this many workers
  505. MAX_WORKERS = 10
  506. ; Add boost workers when the queue blocks for BLOCK_TIMEOUT
  507. BLOCK_TIMEOUT = 1s
  508. ; Remove the boost workers after BOOST_TIMEOUT
  509. BOOST_TIMEOUT = 5m
  510. ; During a boost add BOOST_WORKERS
  511. BOOST_WORKERS = 5
  512. [admin]
  513. ; Disallow regular (non-admin) users from creating organizations.
  514. DISABLE_REGULAR_ORG_CREATION = false
  515. ; Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled
  516. DEFAULT_EMAIL_NOTIFICATIONS = enabled
  517. [security]
  518. ; Whether the installer is disabled
  519. INSTALL_LOCK = false
  520. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  521. SECRET_KEY = !#@FDEWREWR&*(
  522. ; How long to remember that a user is logged in before requiring relogin (in days)
  523. LOGIN_REMEMBER_DAYS = 7
  524. COOKIE_USERNAME = gitea_awesome
  525. COOKIE_REMEMBER_NAME = gitea_incredible
  526. ; Reverse proxy authentication header name of user name
  527. REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
  528. REVERSE_PROXY_AUTHENTICATION_EMAIL = X-WEBAUTH-EMAIL
  529. ; Interpret X-Forwarded-For header or the X-Real-IP header and set this as the remote IP for the request
  530. REVERSE_PROXY_LIMIT = 1
  531. ; List of IP addresses and networks separated by comma of trusted proxy servers. Use `*` to trust all.
  532. REVERSE_PROXY_TRUSTED_PROXIES = 127.0.0.0/8,::1/128
  533. ; The minimum password length for new Users
  534. MIN_PASSWORD_LENGTH = 6
  535. ; Set to true to allow users to import local server paths
  536. IMPORT_LOCAL_PATHS = false
  537. ; Set to false to allow users with git hook privileges to create custom git hooks.
  538. ; Custom git hooks can be used to perform arbitrary code execution on the host operating system.
  539. ; This enables the users to access and modify this config file and the Gitea database and interrupt the Gitea service.
  540. ; By modifying the Gitea database, users can gain Gitea administrator privileges.
  541. ; 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.
  542. ; WARNING: This maybe harmful to you website or your operating system.
  543. DISABLE_GIT_HOOKS = true
  544. ; Set to true to disable webhooks feature.
  545. DISABLE_WEBHOOKS = false
  546. ; Set to false to allow pushes to gitea repositories despite having an incomplete environment - NOT RECOMMENDED
  547. ONLY_ALLOW_PUSH_IF_GITEA_ENVIRONMENT_SET = true
  548. ;Comma separated list of character classes required to pass minimum complexity.
  549. ;If left empty or no valid values are specified, the default is off (no checking)
  550. ;Classes include "lower,upper,digit,spec"
  551. PASSWORD_COMPLEXITY = off
  552. ; Password Hash algorithm, either "argon2", "pbkdf2", "scrypt" or "bcrypt"
  553. PASSWORD_HASH_ALGO = pbkdf2
  554. ; Set false to allow JavaScript to read CSRF cookie
  555. CSRF_COOKIE_HTTP_ONLY = true
  556. ; Validate against https://haveibeenpwned.com/Passwords to see if a password has been exposed
  557. PASSWORD_CHECK_PWN = false
  558. [openid]
  559. ;
  560. ; OpenID is an open, standard and decentralized authentication protocol.
  561. ; Your identity is the address of a webpage you provide, which describes
  562. ; how to prove you are in control of that page.
  563. ;
  564. ; For more info: https://en.wikipedia.org/wiki/OpenID
  565. ;
  566. ; Current implementation supports OpenID-2.0
  567. ;
  568. ; Tested to work providers at the time of writing:
  569. ; - Any GNUSocial node (your.hostname.tld/username)
  570. ; - Any SimpleID provider (http://simpleid.koinic.net)
  571. ; - http://openid.org.cn/
  572. ; - openid.stackexchange.com
  573. ; - login.launchpad.net
  574. ; - <username>.livejournal.com
  575. ;
  576. ; Whether to allow signin in via OpenID
  577. ENABLE_OPENID_SIGNIN = true
  578. ; Whether to allow registering via OpenID
  579. ; Do not include to rely on rhw DISABLE_REGISTRATION setting
  580. ;ENABLE_OPENID_SIGNUP = true
  581. ; Allowed URI patterns (POSIX regexp).
  582. ; Space separated.
  583. ; Only these would be allowed if non-blank.
  584. ; Example value: trusted.domain.org trusted.domain.net
  585. WHITELISTED_URIS =
  586. ; Forbidden URI patterns (POSIX regexp).
  587. ; Space separated.
  588. ; Only used if WHITELISTED_URIS is blank.
  589. ; Example value: loadaverage.org/badguy stackexchange.com/.*spammer
  590. BLACKLISTED_URIS =
  591. [oauth2_client]
  592. ; Whether a new auto registered oauth2 user needs to confirm their email.
  593. ; Do not include to use the REGISTER_EMAIL_CONFIRM setting from the `[service]` section.
  594. REGISTER_EMAIL_CONFIRM =
  595. ; Scopes for the openid connect oauth2 provider (separated by space, the openid scope is implicitly added).
  596. ; Typical values are profile and email.
  597. ; For more information about the possible values see https://openid.net/specs/openid-connect-core-1_0.html#ScopeClaims
  598. OPENID_CONNECT_SCOPES =
  599. ; Automatically create user accounts for new oauth2 users.
  600. ENABLE_AUTO_REGISTRATION = false
  601. ; The source of the username for new oauth2 accounts:
  602. ; userid = use the userid / sub attribute
  603. ; nickname = use the nickname attribute
  604. ; email = use the username part of the email attribute
  605. USERNAME = nickname
  606. ; Update avatar if available from oauth2 provider.
  607. ; Update will be performed on each login.
  608. UPDATE_AVATAR = false
  609. ; How to handle if an account / email already exists:
  610. ; disabled = show an error
  611. ; login = show an account linking login
  612. ; auto = link directly with the account
  613. ACCOUNT_LINKING = disabled
  614. [service]
  615. ; Time limit to confirm account/email registration
  616. ACTIVE_CODE_LIVE_MINUTES = 180
  617. ; Time limit to perform the reset of a forgotten password
  618. RESET_PASSWD_CODE_LIVE_MINUTES = 180
  619. ; Whether a new user needs to confirm their email when registering.
  620. REGISTER_EMAIL_CONFIRM = false
  621. ; Whether a new user needs to be confirmed manually after registration. (Requires `REGISTER_EMAIL_CONFIRM` to be disabled.)
  622. REGISTER_MANUAL_CONFIRM = false
  623. ; List of domain names that are allowed to be used to register on a Gitea instance
  624. ; gitea.io,example.com
  625. EMAIL_DOMAIN_WHITELIST =
  626. ; Comma-separated list of domain names that are not allowed to be used to register on a Gitea instance
  627. EMAIL_DOMAIN_BLOCKLIST =
  628. ; Disallow registration, only allow admins to create accounts.
  629. DISABLE_REGISTRATION = false
  630. ; Allow registration only using third-party services, it works only when DISABLE_REGISTRATION is false
  631. ALLOW_ONLY_EXTERNAL_REGISTRATION = false
  632. ; User must sign in to view anything.
  633. REQUIRE_SIGNIN_VIEW = false
  634. ; Mail notification
  635. ENABLE_NOTIFY_MAIL = false
  636. ; This setting enables gitea to be signed in with HTTP BASIC Authentication using the user's password
  637. ; If you set this to false you will not be able to access the tokens endpoints on the API with your password
  638. ; Please note that setting this to false will not disable OAuth Basic or Basic authentication using a token
  639. ENABLE_BASIC_AUTHENTICATION = true
  640. ; More detail: https://github.com/gogits/gogs/issues/165
  641. ENABLE_REVERSE_PROXY_AUTHENTICATION = false
  642. ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
  643. ENABLE_REVERSE_PROXY_EMAIL = false
  644. ; Enable captcha validation for registration
  645. ENABLE_CAPTCHA = false
  646. ; Type of captcha you want to use. Options: image, recaptcha, hcaptcha
  647. CAPTCHA_TYPE = image
  648. ; Enable recaptcha to use Google's recaptcha service
  649. ; Go to https://www.google.com/recaptcha/admin to sign up for a key
  650. RECAPTCHA_SECRET =
  651. RECAPTCHA_SITEKEY =
  652. ; For hCaptcha, create an account at https://accounts.hcaptcha.com/login to get your keys
  653. HCAPTCHA_SECRET =
  654. HCAPTCHA_SITEKEY =
  655. ; Change this to use recaptcha.net or other recaptcha service
  656. RECAPTCHA_URL = https://www.google.com/recaptcha/
  657. ; Default value for KeepEmailPrivate
  658. ; Each new user will get the value of this setting copied into their profile
  659. DEFAULT_KEEP_EMAIL_PRIVATE = false
  660. ; Default value for AllowCreateOrganization
  661. ; Every new user will have rights set to create organizations depending on this setting
  662. DEFAULT_ALLOW_CREATE_ORGANIZATION = true
  663. ; Either "public", "limited" or "private", default is "public"
  664. ; Limited is for signed user only
  665. ; Private is only for member of the organization
  666. ; Public is for everyone
  667. DEFAULT_ORG_VISIBILITY = public
  668. ; Default value for DefaultOrgMemberVisible
  669. ; True will make the membership of the users visible when added to the organisation
  670. DEFAULT_ORG_MEMBER_VISIBLE = false
  671. ; Default value for EnableDependencies
  672. ; Repositories will use dependencies by default depending on this setting
  673. DEFAULT_ENABLE_DEPENDENCIES = true
  674. ; Dependencies can be added from any repository where the user is granted access or only from the current repository depending on this setting.
  675. ALLOW_CROSS_REPOSITORY_DEPENDENCIES = true
  676. ; Enable heatmap on users profiles.
  677. ENABLE_USER_HEATMAP = true
  678. ; Enable Timetracking
  679. ENABLE_TIMETRACKING = true
  680. ; Default value for EnableTimetracking
  681. ; Repositories will use timetracking by default depending on this setting
  682. DEFAULT_ENABLE_TIMETRACKING = true
  683. ; Default value for AllowOnlyContributorsToTrackTime
  684. ; Only users with write permissions can track time if this is true
  685. DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true
  686. ; Value for the domain part of the user's email address in the git log if user
  687. ; has set KeepEmailPrivate to true. The user's email will be replaced with a
  688. ; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. Default
  689. ; value is "noreply." + DOMAIN, where DOMAIN resolves to the value from server.DOMAIN
  690. ; Note: do not use the <DOMAIN> notation below
  691. NO_REPLY_ADDRESS = noreply.<DOMAIN>
  692. ; Show Registration button
  693. SHOW_REGISTRATION_BUTTON = true
  694. ; Show milestones dashboard page - a view of all the user's milestones
  695. SHOW_MILESTONES_DASHBOARD_PAGE = true
  696. ; Default value for AutoWatchNewRepos
  697. ; When adding a repo to a team or creating a new repo all team members will watch the
  698. ; repo automatically if enabled
  699. AUTO_WATCH_NEW_REPOS = true
  700. ; Default value for AutoWatchOnChanges
  701. ; Make the user watch a repository When they commit for the first time
  702. AUTO_WATCH_ON_CHANGES = false
  703. ; Minimum amount of time a user must exist before comments are kept when the user is deleted.
  704. USER_DELETE_WITH_COMMENTS_MAX_TIME = 0
  705. [webhook]
  706. ; Hook task queue length, increase if webhook shooting starts hanging
  707. QUEUE_LENGTH = 1000
  708. ; Deliver timeout in seconds
  709. DELIVER_TIMEOUT = 5
  710. ; Allow insecure certification
  711. SKIP_TLS_VERIFY = false
  712. ; Number of history information in each page
  713. PAGING_NUM = 10
  714. ; Proxy server URL, support http://, https//, socks://, blank will follow environment http_proxy/https_proxy
  715. PROXY_URL =
  716. ; Comma separated list of host names requiring proxy. Glob patterns (*) are accepted; use ** to match all hosts.
  717. PROXY_HOSTS =
  718. [mailer]
  719. ENABLED = false
  720. ; Buffer length of channel, keep it as it is if you don't know what it is.
  721. SEND_BUFFER_LEN = 100
  722. ; Prefix displayed before subject in mail
  723. SUBJECT_PREFIX =
  724. ; Mail server
  725. ; Gmail: smtp.gmail.com:587
  726. ; QQ: smtp.qq.com:465
  727. ; Using STARTTLS on port 587 is recommended per RFC 6409.
  728. ; Note, if the port ends with "465", SMTPS will be used.
  729. HOST =
  730. ; Disable HELO operation when hostnames are different.
  731. DISABLE_HELO =
  732. ; Custom hostname for HELO operation, if no value is provided, one is retrieved from system.
  733. HELO_HOSTNAME =
  734. ; 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.
  735. SKIP_VERIFY = false
  736. ; Use client certificate
  737. USE_CERTIFICATE = false
  738. CERT_FILE = custom/mailer/cert.pem
  739. KEY_FILE = custom/mailer/key.pem
  740. ; Should SMTP connect with TLS, (if port ends with 465 TLS will always be used.)
  741. ; If this is false but STARTTLS is supported the connection will be upgraded to TLS opportunistically.
  742. IS_TLS_ENABLED = false
  743. ; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
  744. FROM =
  745. ; Mailer user name and password
  746. ; Please Note: Authentication is only supported when the SMTP server communication is encrypted with TLS (this can be via STARTTLS) or `HOST=localhost`.
  747. USER =
  748. ; Use PASSWD = `your password` for quoting if you use special characters in the password.
  749. PASSWD =
  750. ; Send mails as plain text
  751. SEND_AS_PLAIN_TEXT = false
  752. ; Set Mailer Type (either SMTP, sendmail or dummy to just send to the log)
  753. MAILER_TYPE = smtp
  754. ; Specify an alternative sendmail binary
  755. SENDMAIL_PATH = sendmail
  756. ; Specify any extra sendmail arguments
  757. SENDMAIL_ARGS =
  758. ; Timeout for Sendmail
  759. SENDMAIL_TIMEOUT = 5m
  760. [cache]
  761. ; if the cache enabled
  762. ENABLED = true
  763. ; Either "memory", "redis", or "memcache", default is "memory"
  764. ADAPTER = memory
  765. ; For "memory" only, GC interval in seconds, default is 60
  766. INTERVAL = 60
  767. ; For "redis" and "memcache", connection host address
  768. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  769. ; memcache: `127.0.0.1:11211`
  770. HOST =
  771. ; Time to keep items in cache if not used, default is 16 hours.
  772. ; Setting it to 0 disables caching
  773. ITEM_TTL = 16h
  774. ; Last commit cache
  775. [cache.last_commit]
  776. ; if the cache enabled
  777. ENABLED = true
  778. ; Time to keep items in cache if not used, default is 8760 hours.
  779. ; Setting it to 0 disables caching
  780. ITEM_TTL = 8760h
  781. ; Only enable the cache when repository's commits count great than
  782. COMMITS_COUNT = 1000
  783. [session]
  784. ; Either "memory", "file", or "redis", default is "memory"
  785. PROVIDER = memory
  786. ; Provider config options
  787. ; memory: doesn't have any config yet
  788. ; file: session file path, e.g. `data/sessions`
  789. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  790. ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  791. PROVIDER_CONFIG = data/sessions
  792. ; Session cookie name
  793. COOKIE_NAME = i_like_gitea
  794. ; If you use session in https only, default is false
  795. COOKIE_SECURE = false
  796. ; Session GC time interval in seconds, default is 86400 (1 day)
  797. GC_INTERVAL_TIME = 86400
  798. ; Session life time in seconds, default is 86400 (1 day)
  799. SESSION_LIFE_TIME = 86400
  800. ; SameSite settings. Either "none", "lax", or "strict"
  801. SAME_SITE=lax
  802. [picture]
  803. AVATAR_UPLOAD_PATH = data/avatars
  804. REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars
  805. ; How Gitea deals with missing repository avatars
  806. ; none = no avatar will be displayed; random = random avatar will be displayed; image = default image will be used
  807. REPOSITORY_AVATAR_FALLBACK = none
  808. REPOSITORY_AVATAR_FALLBACK_IMAGE = /img/repo_default.png
  809. ; Max Width and Height of uploaded avatars.
  810. ; This is to limit the amount of RAM used when resizing the image.
  811. AVATAR_MAX_WIDTH = 4096
  812. AVATAR_MAX_HEIGHT = 3072
  813. ; Maximum allowed file size for uploaded avatars.
  814. ; This is to limit the amount of RAM used when resizing the image.
  815. AVATAR_MAX_FILE_SIZE = 1048576
  816. ; Chinese users can choose "duoshuo"
  817. ; or a custom avatar source, like: http://cn.gravatar.com/avatar/
  818. GRAVATAR_SOURCE = gravatar
  819. ; This value will always be true in offline mode.
  820. DISABLE_GRAVATAR = false
  821. ; Federated avatar lookup uses DNS to discover avatar associated
  822. ; with emails, see https://www.libravatar.org
  823. ; This value will always be false in offline mode or when Gravatar is disabled.
  824. ENABLE_FEDERATED_AVATAR = false
  825. [attachment]
  826. ; Whether issue and pull request attachments are enabled. Defaults to `true`
  827. ENABLED = true
  828. ; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
  829. ALLOWED_TYPES = .docx,.gif,.gz,.jpeg,.jpg,.log,.pdf,.png,.pptx,.txt,.xlsx,.zip
  830. ; Max size of each file. Defaults to 4MB
  831. MAX_SIZE = 4
  832. ; Max number of files per upload. Defaults to 5
  833. MAX_FILES = 5
  834. ; Storage type for attachments, `local` for local disk or `minio` for s3 compatible
  835. ; object storage service, default is `local`.
  836. STORAGE_TYPE = local
  837. ; Allows the storage driver to redirect to authenticated URLs to serve files directly
  838. ; Currently, only `minio` is supported.
  839. SERVE_DIRECT = false
  840. ; Path for attachments. Defaults to `data/attachments` only available when STORAGE_TYPE is `local`
  841. PATH = data/attachments
  842. ; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
  843. MINIO_ENDPOINT = localhost:9000
  844. ; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio`
  845. MINIO_ACCESS_KEY_ID =
  846. ; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio`
  847. MINIO_SECRET_ACCESS_KEY =
  848. ; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio`
  849. MINIO_BUCKET = gitea
  850. ; Minio location to create bucket only available when STORAGE_TYPE is `minio`
  851. MINIO_LOCATION = us-east-1
  852. ; Minio base path on the bucket only available when STORAGE_TYPE is `minio`
  853. MINIO_BASE_PATH = attachments/
  854. ; Minio enabled ssl only available when STORAGE_TYPE is `minio`
  855. MINIO_USE_SSL = false
  856. [time]
  857. ; Specifies the format for fully outputted dates. Defaults to RFC1123
  858. ; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
  859. ; For more information about the format see http://golang.org/pkg/time/#pkg-constants
  860. FORMAT =
  861. ; Location the UI time display i.e. Asia/Shanghai
  862. ; Empty means server's location setting
  863. DEFAULT_UI_LOCATION =
  864. [log]
  865. ROOT_PATH =
  866. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  867. ; Use comma to separate multiple modes, e.g. "console, file"
  868. MODE = console
  869. ; Buffer length of the channel, keep it as it is if you don't know what it is.
  870. BUFFER_LEN = 10000
  871. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Info"
  872. ROUTER_LOG_LEVEL = Info
  873. ROUTER = console
  874. ENABLE_ACCESS_LOG = false
  875. 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}}"
  876. ACCESS = file
  877. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  878. LEVEL = Info
  879. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "None"
  880. STACKTRACE_LEVEL = None
  881. ; Generic log modes
  882. [log.x]
  883. FLAGS = stdflags
  884. EXPRESSION =
  885. PREFIX =
  886. COLORIZE = false
  887. ; For "console" mode only
  888. [log.console]
  889. LEVEL =
  890. STDERR = false
  891. ; For "file" mode only
  892. [log.file]
  893. LEVEL =
  894. ; Set the file_name for the logger. If this is a relative path this
  895. ; will be relative to ROOT_PATH
  896. FILE_NAME =
  897. ; This enables automated log rotate(switch of following options), default is true
  898. LOG_ROTATE = true
  899. ; Max size shift of a single file, default is 28 means 1 << 28, 256MB
  900. MAX_SIZE_SHIFT = 28
  901. ; Segment log daily, default is true
  902. DAILY_ROTATE = true
  903. ; delete the log file after n days, default is 7
  904. MAX_DAYS = 7
  905. ; compress logs with gzip
  906. COMPRESS = true
  907. ; compression level see godoc for compress/gzip
  908. COMPRESSION_LEVEL = -1
  909. ; For "conn" mode only
  910. [log.conn]
  911. LEVEL =
  912. ; Reconnect host for every single message, default is false
  913. RECONNECT_ON_MSG = false
  914. ; Try to reconnect when connection is lost, default is false
  915. RECONNECT = false
  916. ; Either "tcp", "unix" or "udp", default is "tcp"
  917. PROTOCOL = tcp
  918. ; Host address
  919. ADDR =
  920. ; For "smtp" mode only
  921. [log.smtp]
  922. LEVEL =
  923. ; Name displayed in mail title, default is "Diagnostic message from server"
  924. SUBJECT = Diagnostic message from server
  925. ; Mail server
  926. HOST =
  927. ; Mailer user name and password
  928. USER =
  929. ; Use PASSWD = `your password` for quoting if you use special characters in the password.
  930. PASSWD =
  931. ; Receivers, can be one or more, e.g. 1@example.com,2@example.com
  932. RECEIVERS =
  933. [cron]
  934. ; Enable running all cron tasks periodically with default settings.
  935. ENABLED = false
  936. ; Run cron tasks when Gitea starts.
  937. RUN_AT_START = false
  938. ; Basic cron tasks - enabled by default
  939. ; Clean up old repository archives
  940. [cron.archive_cleanup]
  941. ; Whether to enable the job
  942. ENABLED = true
  943. ; Whether to always run at least once at start up time (if ENABLED)
  944. RUN_AT_START = true
  945. ; Notice if not success
  946. NO_SUCCESS_NOTICE = false
  947. ; Time interval for job to run
  948. SCHEDULE = @every 24h
  949. ; Archives created more than OLDER_THAN ago are subject to deletion
  950. OLDER_THAN = 24h
  951. ; Update mirrors
  952. [cron.update_mirrors]
  953. SCHEDULE = @every 10m
  954. ; Enable running Update mirrors task periodically.
  955. ENABLED = true
  956. ; Run Update mirrors task when Gitea starts.
  957. RUN_AT_START = false
  958. ; Notice if not success
  959. NO_SUCCESS_NOTICE = true
  960. ; Repository health check
  961. [cron.repo_health_check]
  962. SCHEDULE = @every 24h
  963. ; Enable running Repository health check task periodically.
  964. ENABLED = true
  965. ; Run Repository health check task when Gitea starts.
  966. RUN_AT_START = false
  967. ; Notice if not success
  968. NO_SUCCESS_NOTICE = false
  969. TIMEOUT = 60s
  970. ; Arguments for command 'git fsck', e.g. "--unreachable --tags"
  971. ; see more on http://git-scm.com/docs/git-fsck
  972. ARGS =
  973. ; Check repository statistics
  974. [cron.check_repo_stats]
  975. ; Enable running check repository statistics task periodically.
  976. ENABLED = true
  977. ; Run check repository statistics task when Gitea starts.
  978. RUN_AT_START = true
  979. ; Notice if not success
  980. NO_SUCCESS_NOTICE = false
  981. SCHEDULE = @every 24h
  982. [cron.update_migration_poster_id]
  983. ; Update migrated repositories' issues and comments' posterid, it will always attempt synchronization when the instance starts.
  984. ENABLED = true
  985. ; Update migrated repositories' issues and comments' posterid when starting server (default true)
  986. RUN_AT_START = true
  987. ; Notice if not success
  988. NO_SUCCESS_NOTICE = false
  989. ; Interval as a duration between each synchronization. (default every 24h)
  990. SCHEDULE = @every 24h
  991. ; Synchronize external user data (only LDAP user synchronization is supported)
  992. [cron.sync_external_users]
  993. ENABLED = true
  994. ; Synchronize external user data when starting server (default false)
  995. RUN_AT_START = false
  996. ; Notice if not success
  997. NO_SUCCESS_NOTICE = false
  998. ; Interval as a duration between each synchronization (default every 24h)
  999. SCHEDULE = @every 24h
  1000. ; Create new users, update existing user data and disable users that are not in external source anymore (default)
  1001. ; or only create new users if UPDATE_EXISTING is set to false
  1002. UPDATE_EXISTING = true
  1003. ; Clean-up deleted branches
  1004. [cron.deleted_branches_cleanup]
  1005. ENABLED = true
  1006. ; Clean-up deleted branches when starting server (default true)
  1007. RUN_AT_START = true
  1008. ; Notice if not success
  1009. NO_SUCCESS_NOTICE = false
  1010. ; Interval as a duration between each synchronization (default every 24h)
  1011. SCHEDULE = @every 24h
  1012. ; deleted branches than OLDER_THAN ago are subject to deletion
  1013. OLDER_THAN = 24h
  1014. ; Cleanup hook_task table
  1015. [cron.cleanup_hook_task_table]
  1016. ; Whether to enable the job
  1017. ENABLED = true
  1018. ; Whether to always run at start up time (if ENABLED)
  1019. RUN_AT_START = false
  1020. ; Time interval for job to run
  1021. SCHEDULE = @every 24h
  1022. ; 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).
  1023. CLEANUP_TYPE = OlderThan
  1024. ; If CLEANUP_TYPE is set to OlderThan, then any delivered hook_task records older than this expression will be deleted.
  1025. OLDER_THAN = 168h
  1026. ; 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).
  1027. NUMBER_TO_KEEP = 10
  1028. ; Extended cron task - not enabled by default
  1029. ; Delete all unactivated accounts
  1030. [cron.delete_inactive_accounts]
  1031. ENABLED = false
  1032. RUN_AT_START = false
  1033. NO_SUCCESS_NOTICE = false
  1034. SCHEDULE = @annually
  1035. OLDER_THAN = 168h
  1036. ; Delete all repository archives
  1037. [cron.delete_repo_archives]
  1038. ENABLED = false
  1039. RUN_AT_START = false
  1040. NO_SUCCESS_NOTICE = false
  1041. SCHEDULE = @annually
  1042. ; Garbage collect all repositories
  1043. [cron.git_gc_repos]
  1044. ENABLED = false
  1045. RUN_AT_START = false
  1046. NO_SUCCESS_NOTICE = false
  1047. SCHEDULE = @every 72h
  1048. TIMEOUT = 60s
  1049. ; Arguments for command 'git gc'
  1050. ; The default value is same with [git] -> GC_ARGS
  1051. ARGS =
  1052. ; Update the '.ssh/authorized_keys' file with Gitea SSH keys
  1053. [cron.resync_all_sshkeys]
  1054. ENABLED = false
  1055. RUN_AT_START = false
  1056. NO_SUCCESS_NOTICE = false
  1057. SCHEDULE = @every 72h
  1058. ; Resynchronize pre-receive, update and post-receive hooks of all repositories.
  1059. [cron.resync_all_hooks]
  1060. ENABLED = false
  1061. RUN_AT_START = false
  1062. NO_SUCCESS_NOTICE = false
  1063. SCHEDULE = @every 72h
  1064. ; Reinitialize all missing Git repositories for which records exist
  1065. [cron.reinit_missing_repos]
  1066. ENABLED = false
  1067. RUN_AT_START = false
  1068. NO_SUCCESS_NOTICE = false
  1069. SCHEDULE = @every 72h
  1070. ; Delete all repositories missing their Git files
  1071. [cron.delete_missing_repos]
  1072. ENABLED = false
  1073. RUN_AT_START = false
  1074. NO_SUCCESS_NOTICE = false
  1075. SCHEDULE = @every 72h
  1076. ; Delete generated repository avatars
  1077. [cron.delete_generated_repository_avatars]
  1078. ENABLED = false
  1079. RUN_AT_START = false
  1080. NO_SUCCESS_NOTICE = false
  1081. SCHEDULE = @every 72h
  1082. [git]
  1083. ; The path of git executable. If empty, Gitea searches through the PATH environment.
  1084. PATH =
  1085. ; Disables highlight of added and removed changes
  1086. DISABLE_DIFF_HIGHLIGHT = false
  1087. ; Max number of lines allowed in a single file in diff view
  1088. MAX_GIT_DIFF_LINES = 1000
  1089. ; Max number of allowed characters in a line in diff view
  1090. MAX_GIT_DIFF_LINE_CHARACTERS = 5000
  1091. ; Max number of files shown in diff view
  1092. MAX_GIT_DIFF_FILES = 100
  1093. ; Set the default commits range size
  1094. COMMITS_RANGE_SIZE = 50
  1095. ; Set the default branches range size
  1096. BRANCHES_RANGE_SIZE = 20
  1097. ; Arguments for command 'git gc', e.g. "--aggressive --auto"
  1098. ; see more on http://git-scm.com/docs/git-gc/
  1099. GC_ARGS =
  1100. ; 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
  1101. ENABLE_AUTO_GIT_WIRE_PROTOCOL = true
  1102. ; Respond to pushes to a non-default branch with a URL for creating a Pull Request (if the repository has them enabled)
  1103. PULL_REQUEST_PUSH_MESSAGE = true
  1104. ; Operation timeout in seconds
  1105. [git.timeout]
  1106. DEFAULT = 360
  1107. MIGRATE = 600
  1108. MIRROR = 300
  1109. CLONE = 300
  1110. PULL = 300
  1111. GC = 60
  1112. [mirror]
  1113. ; Default interval as a duration between each check
  1114. DEFAULT_INTERVAL = 8h
  1115. ; Min interval as a duration must be > 1m
  1116. MIN_INTERVAL = 10m
  1117. [api]
  1118. ; Enables Swagger. True or false; default is true.
  1119. ENABLE_SWAGGER = true
  1120. ; Max number of items in a page
  1121. MAX_RESPONSE_ITEMS = 50
  1122. ; Default paging number of api
  1123. DEFAULT_PAGING_NUM = 30
  1124. ; Default and maximum number of items per page for git trees api
  1125. DEFAULT_GIT_TREES_PER_PAGE = 1000
  1126. ; Default size of a blob returned by the blobs API (default is 10MiB)
  1127. DEFAULT_MAX_BLOB_SIZE = 10485760
  1128. [oauth2]
  1129. ; Enables OAuth2 provider
  1130. ENABLE = true
  1131. ; Lifetime of an OAuth2 access token in seconds
  1132. ACCESS_TOKEN_EXPIRATION_TIME = 3600
  1133. ; Lifetime of an OAuth2 refresh token in hours
  1134. REFRESH_TOKEN_EXPIRATION_TIME = 730
  1135. ; Check if refresh token got already used
  1136. INVALIDATE_REFRESH_TOKENS = false
  1137. ; 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
  1138. JWT_SECRET =
  1139. ; Maximum length of oauth2 token/cookie stored on server
  1140. MAX_TOKEN_LENGTH = 32767
  1141. [i18n]
  1142. 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
  1143. 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,한국어
  1144. [U2F]
  1145. ; NOTE: THE DEFAULT VALUES HERE WILL NEED TO BE CHANGED
  1146. ; Two Factor authentication with security keys
  1147. ; https://developers.yubico.com/U2F/App_ID.html
  1148. ;APP_ID = http://localhost:3000/
  1149. ; Comma separated list of trusted facets
  1150. ;TRUSTED_FACETS = http://localhost:3000/
  1151. ; Extension mapping to highlight class
  1152. ; e.g. .toml=ini
  1153. [highlight.mapping]
  1154. [other]
  1155. SHOW_FOOTER_BRANDING = false
  1156. ; Show version information about Gitea and Go in the footer
  1157. SHOW_FOOTER_VERSION = true
  1158. ; Show template execution time in the footer
  1159. SHOW_FOOTER_TEMPLATE_LOAD_TIME = true
  1160. [markup.sanitizer.1]
  1161. ; The following keys can appear once to define a sanitation policy rule.
  1162. ; This section can appear multiple times by adding a unique alphanumeric suffix to define multiple rules.
  1163. ; e.g., [markup.sanitizer.1] -> [markup.sanitizer.2] -> [markup.sanitizer.TeX]
  1164. ;ELEMENT = span
  1165. ;ALLOW_ATTR = class
  1166. ;REGEXP = ^(info|warning|error)$
  1167. [markup.asciidoc]
  1168. ENABLED = false
  1169. ; List of file extensions that should be rendered by an external command
  1170. FILE_EXTENSIONS = .adoc,.asciidoc
  1171. ; External command to render all matching extensions
  1172. RENDER_COMMAND = "asciidoc --out-file=- -"
  1173. ; Don't pass the file on STDIN, pass the filename as argument instead.
  1174. IS_INPUT_FILE = false
  1175. [metrics]
  1176. ; Enables metrics endpoint. True or false; default is false.
  1177. ENABLED = false
  1178. ; If you want to add authorization, specify a token here
  1179. TOKEN =
  1180. [task]
  1181. ; Task queue type, could be `channel` or `redis`.
  1182. QUEUE_TYPE = channel
  1183. ; Task queue length, available only when `QUEUE_TYPE` is `channel`.
  1184. QUEUE_LENGTH = 1000
  1185. ; Task queue connection string, available only when `QUEUE_TYPE` is `redis`.
  1186. ; If there is a password of redis, use `addrs=127.0.0.1:6379 password=123 db=0`.
  1187. QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"
  1188. [migrations]
  1189. ; Max attempts per http/https request on migrations.
  1190. MAX_ATTEMPTS = 3
  1191. ; Backoff time per http/https request retry (seconds)
  1192. RETRY_BACKOFF = 3
  1193. ; Allowed domains for migrating, default is blank. Blank means everything will be allowed.
  1194. ; Multiple domains could be separated by commas.
  1195. ALLOWED_DOMAINS =
  1196. ; Blocklist for migrating, default is blank. Multiple domains could be separated by commas.
  1197. ; When ALLOWED_DOMAINS is not blank, this option will be ignored.
  1198. BLOCKED_DOMAINS =
  1199. ; Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291 (false by default)
  1200. ALLOW_LOCALNETWORKS = false
  1201. ; default storage for attachments, lfs and avatars
  1202. [storage]
  1203. ; storage type
  1204. STORAGE_TYPE = local
  1205. ; lfs storage will override storage
  1206. [lfs]
  1207. STORAGE_TYPE = local
  1208. ; customize storage
  1209. ;[storage.my_minio]
  1210. ;STORAGE_TYPE = minio
  1211. ; Minio endpoint to connect only available when STORAGE_TYPE is `minio`
  1212. ;MINIO_ENDPOINT = localhost:9000
  1213. ; Minio accessKeyID to connect only available when STORAGE_TYPE is `minio`
  1214. ;MINIO_ACCESS_KEY_ID =
  1215. ; Minio secretAccessKey to connect only available when STORAGE_TYPE is `minio`
  1216. ;MINIO_SECRET_ACCESS_KEY =
  1217. ; Minio bucket to store the attachments only available when STORAGE_TYPE is `minio`
  1218. ;MINIO_BUCKET = gitea
  1219. ; Minio location to create bucket only available when STORAGE_TYPE is `minio`
  1220. ;MINIO_LOCATION = us-east-1
  1221. ; Minio enabled ssl only available when STORAGE_TYPE is `minio`
  1222. ;MINIO_USE_SSL = false