Advertisement
Guest User

Untitled

a guest
Apr 4th, 2018
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.39 KB | None | 0 0
  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. ; App name that shows on every page title
  5. APP_NAME = City Life RPG
  6. ; Change it if you run locally
  7. RUN_USER = root
  8. ; Either "dev", "prod" or "test", default is "dev"
  9. RUN_MODE = prod
  10.  
  11. [repository]
  12. ROOT = C:/gitea/data/gitea-repositories
  13. SCRIPT_TYPE = bash
  14. ; Default ANSI charset
  15. ANSI_CHARSET =
  16. ; Force every new repository to be private
  17. FORCE_PRIVATE = true
  18. ; Default private when create a new repository, could be: last, private, public. Default is last which means last user repo visiblity.
  19. DEFAULT_PRIVATE = private
  20. ; Global maximum creation limit of repository per user, -1 means no limit
  21. MAX_CREATION_LIMIT = -1
  22. ; Mirror sync queue length, increase if mirror syncing starts hanging
  23. MIRROR_QUEUE_LENGTH = 1000
  24. ; Patch test queue length, increase if pull request patch testing starts hanging
  25. PULL_REQUEST_QUEUE_LENGTH = 1000
  26. ; Preferred Licenses to place at the top of the List
  27. ; Name must match file name in conf/license or custom/conf/license
  28. PREFERRED_LICENSES = Apache License 2.0,MIT License
  29. ; Disable ability to interact with repositories by HTTP protocol
  30. DISABLE_HTTP_GIT = false
  31. ; Force ssh:// clone url instead of scp-style uri when default SSH port is used
  32. USE_COMPAT_SSH_URI = false
  33.  
  34. [repository.editor]
  35. ; List of file extensions that should have line wraps in the CodeMirror editor
  36. ; Separate extensions with a comma. To line wrap files w/o extension, just put a comma
  37. LINE_WRAP_EXTENSIONS = .txt,.md,.markdown,.mdown,.mkd,
  38. ; Valid file modes that have a preview API associated with them, such as api/v1/markdown
  39. ; Separate values by commas. Preview tab in edit mode won't show if the file extension doesn't match
  40. PREVIEWABLE_FILE_MODES = markdown
  41.  
  42. [repository.local]
  43. ; Path for local repository copy. Defaults to `tmp/local-repo`
  44. LOCAL_COPY_PATH = C:/gitea/data/tmp/local-repo
  45. ; Path for local wiki copy. Defaults to `tmp/local-wiki`
  46. LOCAL_WIKI_PATH = C:/gitea/data/tmp/local-wiki
  47.  
  48. [repository.upload]
  49. ; Whether repository file uploads are enabled. Defaults to `true`
  50. ENABLED = true
  51. ; Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
  52. TEMP_PATH = C:/gitea/data/tmp/uploads
  53. ; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
  54. ALLOWED_TYPES =
  55. ; Max size of each file in MB. Defaults to 3MB
  56. FILE_MAX_SIZE = 3
  57. ; Max number of files per upload. Defaults to 5
  58. MAX_FILES = 5
  59.  
  60. [ui]
  61. ; Number of repositories that are showed in one explore page
  62. EXPLORE_PAGING_NUM = 20
  63. ; Number of issues that are showed in one page
  64. ISSUE_PAGING_NUM = 10
  65. ; Number of maximum commits showed in one activity feed
  66. FEED_MAX_COMMIT_NUM = 5
  67. ; Value of `theme-color` meta tag, used by Android >= 5.0
  68. ; An invalid color like "none" or "disable" will have the default style
  69. ; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
  70. THEME_COLOR_META_TAG = `#6cc644`
  71. ; Max size of files to be displayed (defaults is 8MiB)
  72. MAX_DISPLAY_FILE_SIZE = 8388608
  73. ; Whether show the user email in the Explore Users page
  74. SHOW_USER_EMAIL = false
  75.  
  76. [ui.admin]
  77. ; Number of users that are showed in one page
  78. USER_PAGING_NUM = 50
  79. ; Number of repos that are showed in one page
  80. REPO_PAGING_NUM = 50
  81. ; Number of notices that are showed in one page
  82. NOTICE_PAGING_NUM = 25
  83. ; Number of organization that are showed in one page
  84. ORG_PAGING_NUM = 50
  85.  
  86. [ui.user]
  87. ; Number of repos that are showed in one page
  88. REPO_PAGING_NUM = 15
  89.  
  90. [ui.meta]
  91. AUTHOR = Gitea - Git with a cup of tea
  92. DESCRIPTION = Gitea (Git with a cup of tea) is a painless self-hosted Git service written in Go
  93. KEYWORDS = go,git,self-hosted,gitea
  94.  
  95. [markdown]
  96. ; Enable hard line break extension
  97. ENABLE_HARD_LINE_BREAK = false
  98. ; List of custom URL-Schemes that are allowed as links when rendering Markdown
  99. ; for example git,magnet
  100. CUSTOM_URL_SCHEMES =
  101. ; List of file extensions that should be rendered/edited as Markdown
  102. ; Separate extensions with a comma. To render files w/o extension as markdown, just put a comma
  103. FILE_EXTENSIONS = .md,.markdown,.mdown,.mkd
  104.  
  105. [server]
  106. ; Listen protocol. One of 'http', 'https', 'unix' or 'fcgi'.
  107. PROTOCOL = http
  108. DOMAIN = REmoved
  109. ROOT_URL = http://REmoved:3000/
  110. ; Listen address. Either a IPv4/IPv6 address or the path to a unix socket.
  111. HTTP_ADDR = 0.0.0.0
  112. HTTP_PORT = 3000
  113. ; If REDIRECT_OTHER_PORT is true, and PROTOCOL is set to https an http server
  114. ; will be started on PORT_TO_REDIRECT and redirect request to the main
  115. ; ROOT_URL. Defaults are false for REDIRECT_OTHER_PORT and 80 for
  116. ; PORT_TO_REDIRECT.
  117. REDIRECT_OTHER_PORT = false
  118. PORT_TO_REDIRECT = 80
  119. ; Permission for unix socket
  120. UNIX_SOCKET_PERMISSION = 666
  121. ; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service.
  122. ; In most cases you do not need to change the default value.
  123. ; Alter it only if your SSH server node is not the same as HTTP node.
  124. LOCAL_ROOT_URL = %(PROTOCOL)s://%(HTTP_ADDR)s:%(HTTP_PORT)s/
  125. ; Disable SSH feature when not available
  126. DISABLE_SSH = true
  127. ; Whether use builtin SSH server or not.
  128. START_SSH_SERVER = false
  129. ; Username to use for builtin SSH server. If blank, then it is the value of RUN_USER.
  130. BUILTIN_SSH_SERVER_USER =
  131. ; Domain name to be exposed in clone URL
  132. SSH_DOMAIN = localhost
  133. ; Network interface builtin SSH server listens on
  134. SSH_LISTEN_HOST =
  135. ; Port number to be exposed in clone URL
  136. SSH_PORT = 24
  137. ; Port number builtin SSH server listens on
  138. SSH_LISTEN_PORT = %(SSH_PORT)s
  139. ; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'.
  140. SSH_ROOT_PATH =
  141. ; For built-in SSH server only, choose the ciphers to support for SSH connections,
  142. ; for system SSH this setting has no effect
  143. SSH_SERVER_CIPHERS = aes128-ctr, aes192-ctr, aes256-ctr, aes128-gcm@openssh.com, arcfour256, arcfour128
  144. ; For built-in SSH server only, choose the key exchange algorithms to support for SSH connections,
  145. ; for system SSH this setting has no effect
  146. 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
  147. ; For built-in SSH server only, choose the MACs to support for SSH connections,
  148. ; for system SSH this setting has no effect
  149. SSH_SERVER_MACS = hmac-sha2-256-etm@openssh.com, hmac-sha2-256, hmac-sha1, hmac-sha1-96
  150. ; Directory to create temporary files when test public key using ssh-keygen,
  151. ; default is system temporary directory.
  152. SSH_KEY_TEST_PATH =
  153. ; Path to ssh-keygen, default is 'ssh-keygen' and let shell find out which one to call.
  154. SSH_KEYGEN_PATH = C:/Program Files (x86)/copSSH/bin/
  155. ; Enable SSH Authorized Key Backup when rewriting all keys, default is true
  156. SSH_BACKUP_AUTHORIZED_KEYS = true
  157. ; Enable exposure of SSH clone URL to anonymous visitors, default is false
  158. SSH_EXPOSE_ANONYMOUS = false
  159. ; Indicate whether to check minimum key size with corresponding type
  160. MINIMUM_KEY_SIZE_CHECK = false
  161. ; Disable CDN even in "prod" mode
  162. OFFLINE_MODE = false
  163. DISABLE_ROUTER_LOG = false
  164. ; Generate steps:
  165. ; $ ./gitea cert -ca=true -duration=8760h0m0s -host=myhost.example.com
  166. ;
  167. ; Or from a .pfx file exported from the Windows certificate store (do
  168. ; not forget to export the private key):
  169. ; $ openssl pkcs12 -in cert.pfx -out cert.pem -nokeys
  170. ; $ openssl pkcs12 -in cert.pfx -out key.pem -nocerts -nodes
  171. CERT_FILE = custom/https/cert.pem
  172. KEY_FILE = custom/https/key.pem
  173. ; Upper level of template and static file path
  174. ; default is the path where Gitea is executed
  175. STATIC_ROOT_PATH =
  176. ; Default path for App data
  177. APP_DATA_PATH = C:/gitea/data
  178. ; Application level GZIP support
  179. ENABLE_GZIP = true
  180. ; Landing page, can be "home", "explore", or "organizations"
  181. LANDING_PAGE = home
  182. ; Enables git-lfs support. true or false, default is false.
  183. LFS_START_SERVER = true
  184. ; Where your lfs files put on, default is data/lfs.
  185. LFS_CONTENT_PATH = C:/gitea/data/lfs
  186. ; LFS authentication secret, changed this to yourself.
  187. LFS_JWT_SECRET = REmoved
  188.  
  189. ; Define allowed algorithms and their minimum key length (use -1 to disable a type)
  190. [ssh.minimum_key_sizes]
  191. ED25519 = 256
  192. ECDSA = 256
  193. RSA = 2048
  194. DSA = 1024
  195.  
  196. [database]
  197. ; Either "mysql", "postgres", "mssql" or "sqlite3", it's your choice
  198. DB_TYPE = sqlite3
  199. HOST = 127.0.0.1:3306
  200. NAME = gitea
  201. USER = root
  202. ; Use PASSWD = `your password` for quoting if you use special characters in the password.
  203. PASSWD =
  204. ; For "postgres" only, either "disable", "require" or "verify-full"
  205. SSL_MODE = disable
  206. ; For "sqlite3" and "tidb", use absolute path when you start as service
  207. PATH = C:/gitea/data/gitea.db
  208. ; For "sqlite3" only. Query timeout
  209. SQLITE_TIMEOUT = 500
  210. ; For iterate buffer, default is 50
  211. ITERATE_BUFFER_SIZE = 50
  212. ; Show the database generated SQL
  213. LOG_SQL = true
  214.  
  215. [indexer]
  216. ISSUE_INDEXER_PATH = C:/gitea/indexers/issues.bleve
  217. ; repo indexer by default disabled, since it uses a lot of disk space
  218. REPO_INDEXER_ENABLED = true
  219. REPO_INDEXER_PATH = C:/gitea/indexers/repos.bleve
  220. UPDATE_BUFFER_LEN = 20
  221. MAX_FILE_SIZE = 1048576
  222.  
  223. [admin]
  224. ; Disable regular (non-admin) users to create organizations
  225. DISABLE_REGULAR_ORG_CREATION = true
  226.  
  227. [security]
  228. INTERNAL_TOKEN = REmoved
  229. ; Whether the installer is disabled
  230. INSTALL_LOCK = true
  231. ; !!CHANGE THIS TO KEEP YOUR USER DATA SAFE!!
  232. #@FDEWREWR&*(
  233. SECRET_KEY = REmoved
  234. ; Auto-login remember days
  235. LOGIN_REMEMBER_DAYS = 7
  236. COOKIE_USERNAME = gitea_awesome
  237. COOKIE_REMEMBER_NAME = gitea_incredible
  238. ; Reverse proxy authentication header name of user name
  239. REVERSE_PROXY_AUTHENTICATION_USER = X-WEBAUTH-USER
  240. ; Sets the minimum password length for new Users
  241. MIN_PASSWORD_LENGTH = 6
  242. ; True when users are allowed to import local server paths
  243. IMPORT_LOCAL_PATHS = true
  244. ; Prevent all users (including admin) from creating custom git hooks
  245. DISABLE_GIT_HOOKS = false
  246.  
  247. [openid]
  248. ; ; OpenID is an open standard and decentralized authentication protocol.
  249. ; Your identity is the address of a webpage you provide, which describes
  250. ; how to prove you are in control of that page.
  251. ;
  252. ; For more info: https://en.wikipedia.org/wiki/OpenID
  253. ;
  254. ; Current implementation supports OpenID-2.0
  255. ;
  256. ; Tested to work providers at the time of writing:
  257. ; - Any GNUSocial node (your.hostname.tld/username)
  258. ; - Any SimpleID provider (http://simpleid.koinic.net)
  259. ; - http://openid.org.cn/
  260. ; - openid.stackexchange.com
  261. ; - login.launchpad.net
  262. ; - <username>.livejournal.com
  263. ;
  264. ; Whether to allow signin in via OpenID
  265. ENABLE_OPENID_SIGNIN = false
  266. ; Whether to allow registering via OpenID
  267. ; Do not include to rely on DISABLE_REGISTRATION setting
  268. ;ENABLE_OPENID_SIGNUP = true
  269. ; Allowed URI patterns (POSIX regexp).
  270. ; Space separated.
  271. ; Only these would be allowed if non-blank.
  272. ; Example value: trusted.domain.org trusted.domain.net
  273. WHITELISTED_URIS =
  274. ; Forbidden URI patterns (POSIX regexp).
  275. ; Space separated.
  276. ; Only used if WHITELISTED_URIS is blank.
  277. ; Example value: loadaverage.org/badguy stackexchange.com/.*spammer
  278. BLACKLISTED_URIS =
  279. ENABLE_OPENID_SIGNUP = false
  280.  
  281. [service]
  282. ; Time limit to confirm account/email registration
  283. ACTIVE_CODE_LIVE_MINUTES = 180
  284. ; Time limit to confirm forgot password reset process
  285. RESET_PASSWD_CODE_LIVE_MINUTES = 180
  286. ; User need to confirm e-mail for registration
  287. REGISTER_EMAIL_CONFIRM = true
  288. ; Does not allow register and admin create account only
  289. DISABLE_REGISTRATION = true
  290. ; User must sign in to view anything.
  291. REQUIRE_SIGNIN_VIEW = true
  292. ; Mail notification
  293. ENABLE_NOTIFY_MAIL = true
  294. ; More detail: https://github.com/gogits/gogs/issues/165
  295. ENABLE_REVERSE_PROXY_AUTHENTICATION = false
  296. ENABLE_REVERSE_PROXY_AUTO_REGISTRATION = false
  297. ; Enable captcha validation for registration
  298. ENABLE_CAPTCHA = true
  299. ; Default value for KeepEmailPrivate
  300. ; New user will get the value of this setting copied into their profile
  301. DEFAULT_KEEP_EMAIL_PRIVATE = true
  302. ; Default value for AllowCreateOrganization
  303. ; New user will have rights set to create organizations depending on this setting
  304. DEFAULT_ALLOW_CREATE_ORGANIZATION = true
  305. ; Default value for EnableTimetracking
  306. ; Repositories will use timetracking by default depending on this setting
  307. DEFAULT_ENABLE_TIMETRACKING = true
  308. ; Default value for AllowOnlyContributorsToTrackTime
  309. ; Only users with write permissions could track time if this is true
  310. DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME = true
  311. ; Default value for the domain part of the user's email address in the git log
  312. ; if he has set KeepEmailPrivate true. The user's email replaced with a
  313. ; concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.
  314. NO_REPLY_ADDRESS = REmoved
  315.  
  316. [webhook]
  317. ; Hook task queue length, increase if webhook shooting starts hanging
  318. QUEUE_LENGTH = 1000
  319. ; Deliver timeout in seconds
  320. DELIVER_TIMEOUT = 5
  321. ; Allow insecure certification
  322. SKIP_TLS_VERIFY = false
  323. ; Number of history information in each page
  324. PAGING_NUM = 10
  325.  
  326. [mailer]
  327. ENABLED = true
  328. ; Buffer length of channel, keep it as it is if you don't know what it is.
  329. SEND_BUFFER_LEN = 100
  330. ; Name displayed in mail title
  331. SUBJECT = %(APP_NAME)s
  332. ; Mail server
  333. ; Gmail: smtp.gmail.com:587
  334. ; QQ: smtp.qq.com:465
  335. ; Note, if the port ends with "465", SMTPS will be used. Using STARTTLS on port 587 is recommended per RFC 6409. If the server supports STARTTLS it will always be used.
  336. HOST =
  337. ; Disable HELO operation when hostname are different.
  338. DISABLE_HELO =
  339. ; Custom hostname for HELO operation, default is from system.
  340. HELO_HOSTNAME =
  341. ; Do not verify the certificate of the server. Only use this for self-signed certificates
  342. SKIP_VERIFY =
  343. ; Use client certificate
  344. USE_CERTIFICATE = false
  345. CERT_FILE = custom/mailer/cert.pem
  346. KEY_FILE = custom/mailer/key.pem
  347. ; Mail from address, RFC 5322. This can be just an email address, or the `"Name" <email@example.com>` format
  348. FROM = REmoved
  349. ; Mailer user name and password
  350. USER =
  351. ; Use PASSWD = `your password` for quoting if you use special characters in the password.
  352. PASSWD =
  353. ; Send mails as plain text
  354. SEND_AS_PLAIN_TEXT = false
  355. ; Enable sendmail (override SMTP)
  356. USE_SENDMAIL = false
  357. ; Specify an alternative sendmail binary
  358. SENDMAIL_PATH = sendmail
  359. ; Specify any extra sendmail arguments
  360. SENDMAIL_ARGS =
  361.  
  362. [cache]
  363. ; Either "memory", "redis", or "memcache", default is "memory"
  364. ADAPTER = memory
  365. ; For "memory" only, GC interval in seconds, default is 60
  366. INTERVAL = 60
  367. ; For "redis" and "memcache", connection host address
  368. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  369. ; memcache: `127.0.0.1:11211`
  370. HOST =
  371. ; Time to keep items in cache if not used, default is 16 hours.
  372. ; Setting it to 0 disables caching
  373. ITEM_TTL = 16h
  374.  
  375. [session]
  376. ; Either "memory", "file", or "redis", default is "memory"
  377. PROVIDER = file
  378. ; Provider config options
  379. ; memory: not have any config yet
  380. ; file: session file path, e.g. `data/sessions`
  381. ; redis: network=tcp,addr=:6379,password=macaron,db=0,pool_size=100,idle_timeout=180
  382. ; mysql: go-sql-driver/mysql dsn config string, e.g. `root:password@/session_table`
  383. PROVIDER_CONFIG = C:/gitea/data/sessions
  384. ; Session cookie name
  385. COOKIE_NAME = i_like_gitea
  386. ; If you use session in https only, default is false
  387. COOKIE_SECURE = false
  388. ; Enable set cookie, default is true
  389. ENABLE_SET_COOKIE = true
  390. ; Session GC time interval in seconds, default is 86400 (1 day)
  391. GC_INTERVAL_TIME = 86400
  392. ; Session life time in seconds, default is 86400 (1 day)
  393. SESSION_LIFE_TIME = 86400
  394.  
  395. [picture]
  396. AVATAR_UPLOAD_PATH = C:/gitea/data/avatars
  397. ; Chinese users can choose "duoshuo"
  398. ; or a custom avatar source, like: http://cn.gravatar.com/avatar/
  399. GRAVATAR_SOURCE = gravatar
  400. ; This value will be forced to be true in offline mode.
  401. DISABLE_GRAVATAR = false
  402. ; Federated avatar lookup uses DNS to discover avatar associated
  403. ; with emails, see https://www.libravatar.org
  404. ; This value will be forced to be false in offline mode or Gravatar is disabled.
  405. ENABLE_FEDERATED_AVATAR = true
  406.  
  407. [attachment]
  408. ; Whether attachments are enabled. Defaults to `true`
  409. ENABLE = true
  410. ; Path for attachments. Defaults to `data/attachments`
  411. PATH = C:/gitea/data/attachments
  412. ; One or more allowed types, e.g. image/jpeg|image/png
  413. ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip
  414. ; Max size of each file. Defaults to 32MB
  415. MAX_SIZE = 4
  416. ; Max number of files per upload. Defaults to 10
  417. MAX_FILES = 5
  418.  
  419. [time]
  420. ; Specifies the format for fully outputted dates. Defaults to RFC1123
  421. ; Special supported values are ANSIC, UnixDate, RubyDate, RFC822, RFC822Z, RFC850, RFC1123, RFC1123Z, RFC3339, RFC3339Nano, Kitchen, Stamp, StampMilli, StampMicro and StampNano
  422. ; For more information about the format see http://golang.org/pkg/time/#pkg-constants
  423. FORMAT =
  424.  
  425. [log]
  426. ROOT_PATH = C:/gitea/log
  427. ; Either "console", "file", "conn", "smtp" or "database", default is "console"
  428. ; Use comma to separate multiple modes, e.g. "console, file"
  429. MODE = file
  430. ; Buffer length of channel, keep it as it is if you don't know what it is.
  431. BUFFER_LEN = 10000
  432. ; Either "Trace", "Debug", "Info", "Warn", "Error", "Critical", default is "Trace"
  433. LEVEL = Trace
  434.  
  435. ; For "console" mode only
  436. [log.console]
  437. LEVEL =
  438.  
  439. ; For "file" mode only
  440. [log.file]
  441. LEVEL =
  442. ; This enables automated log rotate(switch of following options), default is true
  443. LOG_ROTATE = true
  444. ; Max line number of single file, default is 1000000
  445. MAX_LINES = 1000000
  446. ; Max size shift of single file, default is 28 means 1 << 28, 256MB
  447. MAX_SIZE_SHIFT = 28
  448. ; Segment log daily, default is true
  449. DAILY_ROTATE = true
  450. ; Expired days of log file(delete after max days), default is 7
  451. MAX_DAYS = 7
  452.  
  453. ; For "conn" mode only
  454. [log.conn]
  455. LEVEL =
  456. ; Reconnect host for every single message, default is false
  457. RECONNECT_ON_MSG = false
  458. ; Try to reconnect when connection is lost, default is false
  459. RECONNECT = false
  460. ; Either "tcp", "unix" or "udp", default is "tcp"
  461. PROTOCOL = tcp
  462. ; Host address
  463. ADDR =
  464.  
  465. ; For "smtp" mode only
  466. [log.smtp]
  467. LEVEL =
  468. ; Name displayed in mail title, default is "Diagnostic message from server"
  469. SUBJECT = Diagnostic message from server
  470. ; Mail server
  471. HOST =
  472. ; Mailer user name and password
  473. USER =
  474. ; Use PASSWD = `your password` for quoting if you use special characters in the password.
  475. PASSWD =
  476. ; Receivers, can be one or more, e.g. 1@example.com,2@example.com
  477. RECEIVERS =
  478.  
  479. ; For "database" mode only
  480. [log.database]
  481. LEVEL =
  482. ; Either "mysql" or "postgres"
  483. DRIVER =
  484. ; Based on xorm, e.g.: root:root@localhost/gitea?charset=utf8
  485. CONN =
  486.  
  487. [cron]
  488. ; Enable running cron tasks periodically.
  489. ENABLED = true
  490. ; Run cron tasks when Gitea starts.
  491. RUN_AT_START = true
  492.  
  493. ; Update mirrors
  494. [cron.update_mirrors]
  495. SCHEDULE = @every 10m
  496.  
  497. ; Repository health check
  498. [cron.repo_health_check]
  499. SCHEDULE = @every 24h
  500. TIMEOUT = 60s
  501. ; Arguments for command 'git fsck', e.g. "--unreachable --tags"
  502. ; see more on http://git-scm.com/docs/git-fsck/1.7.5
  503. ARGS =
  504.  
  505. ; Check repository statistics
  506. [cron.check_repo_stats]
  507. RUN_AT_START = true
  508. SCHEDULE = @every 24h
  509.  
  510. ; Clean up old repository archives
  511. [cron.archive_cleanup]
  512. ; Whether to enable the job
  513. ENABLED = true
  514. ; Whether to always run at least once at start up time (if ENABLED)
  515. RUN_AT_START = true
  516. ; Time interval for job to run
  517. SCHEDULE = @every 24h
  518. ; Archives created more than OLDER_THAN ago are subject to deletion
  519. OLDER_THAN = 24h
  520.  
  521. ; Synchronize external user data (only LDAP user synchronization is supported)
  522. [cron.sync_external_users]
  523. ; Synchronize external user data when starting server (default false)
  524. RUN_AT_START = false
  525. ; Interval as a duration between each synchronization (default every 24h)
  526. SCHEDULE = @every 24h
  527. ; Create new users, update existing user data and disable users that are not in external source anymore (default)
  528. ; or only create new users if UPDATE_EXISTING is set to false
  529. UPDATE_EXISTING = true
  530.  
  531. [git]
  532. ; Disables highlight of added and removed changes
  533. DISABLE_DIFF_HIGHLIGHT = false
  534. ; Max number of lines allowed of a single file in diff view
  535. MAX_GIT_DIFF_LINES = 1000
  536. ; Max number of characters of a line allowed in diff view
  537. MAX_GIT_DIFF_LINE_CHARACTERS = 5000
  538. ; Max number of files shown in diff view
  539. MAX_GIT_DIFF_FILES = 100
  540. ; Arguments for command 'git gc', e.g. "--aggressive --auto"
  541. ; see more on http://git-scm.com/docs/git-gc/1.7.5
  542. GC_ARGS =
  543.  
  544. ; Operation timeout in seconds
  545. [git.timeout]
  546. MIGRATE = 600
  547. MIRROR = 600
  548. CLONE = 600
  549. PULL = 600
  550. GC = 600
  551.  
  552. [mirror]
  553. ; Default interval as a duration between each check
  554. DEFAULT_INTERVAL = 8h
  555. ; Min interval as a duration must be > 1m
  556. MIN_INTERVAL = 10m
  557.  
  558. [api]
  559. ; Enables /api/swagger, /api/v1/swagger etc. endpoints. True or false; default is true.
  560. ENABLE_SWAGGER_ENDPOINT = false
  561. ; Max number of items will response in a page
  562. MAX_RESPONSE_ITEMS = 50
  563.  
  564. [i18n]
  565. LANGS = en-US,zh-CN,zh-HK,zh-TW,de-DE,fr-FR,nl-NL,lv-LV,ru-RU,ja-JP,es-ES,pt-BR,pl-PL,bg-BG,it-IT,fi-FI,tr-TR,cs-CZ,sr-SP,sv-SE,ko-KR
  566. NAMES = English,简体中文,繁體中文(香港),繁體中文(台灣),Deutsch,français,Nederlands,latviešu,русский,日本語,español,português do Brasil,polski,български,italiano,suomi,Türkçe,čeština,српски,svenska,한국어
  567.  
  568. ; Used for datetimepicker
  569. [i18n.datelang]
  570. en-US = en
  571. zh-CN = zh
  572. zh-HK = zh-TW
  573. zh-TW = zh-TW
  574. de-DE = de
  575. fr-FR = fr
  576. nl-NL = nl
  577. lv-LV = lv
  578. ru-RU = ru
  579. ja-JP = ja
  580. es-ES = es
  581. pt-BR = pt-BR
  582. pl-PL = pl
  583. bg-BG = bg
  584. it-IT = it
  585. fi-FI = fi
  586. tr-TR = tr
  587. cs-CZ = cs-CZ
  588. sr-SP = sr
  589. sv-SE = sv
  590. ko-KR = ko
  591.  
  592. ; Extension mapping to highlight class
  593. ; e.g. .toml=ini
  594. [highlight.mapping]
  595.  
  596. [other]
  597. SHOW_FOOTER_BRANDING = false
  598. ; Show version information about Gitea and Go in the footer
  599. SHOW_FOOTER_VERSION = false
  600. ; Show time of template execution in the footer
  601. SHOW_FOOTER_TEMPLATE_LOAD_TIME = true
  602.  
  603. [markup.asciidoc]
  604. ENABLED = false
  605. ; List of file extensions that should be rendered by an external command
  606. FILE_EXTENSIONS = .adoc,.asciidoc
  607. ; External command to render all matching extensions
  608. RENDER_COMMAND = asciidoc --out-file=- -
  609. ; Input is not a standard input but a file
  610. IS_INPUT_FILE = false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement