You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* upstream/main:
Add Gitea Profile Readmes (go-gitea#23260)
Make diff view full width again (go-gitea#24598)
Add permission check for moving issue action in project view page (go-gitea#24589)
Update JS dependencies, add new eslint rules (go-gitea#24597)
Filters for GetAllCommits (go-gitea#24568)
[skip ci] Updated translations via Crowdin
Attach a tooltip to the action control button (go-gitea#24595)
Improve Gitea's web context, decouple "issue template" code into service package (go-gitea#24590)
Support markdown editor for issue template (go-gitea#24400)
Do not select line numbers when selecting text from the action run logs (go-gitea#24594)
In TestViewRepo2, convert computed timezones to local time (go-gitea#24579)
Fix close org projects (go-gitea#24588)
Rewrite queue (go-gitea#24505)
Split "modules/context.go" to separate files (go-gitea#24569)
Pass 'not' to commit count (go-gitea#24473)
Refresh the refernce of the closed PR when reopening (go-gitea#24231)
;; Issue indexer queue, currently support: channel, levelqueue or redis, default is levelqueue (deprecated - use [queue.issue_indexer])
1380
-
;ISSUE_INDEXER_QUEUE_TYPE = levelqueue; **DEPRECATED** use settings in `[queue.issue_indexer]`.
1381
-
;;
1382
-
;; When ISSUE_INDEXER_QUEUE_TYPE is levelqueue, this will be the path where the queue will be saved.
1383
-
;; This can be overridden by `ISSUE_INDEXER_QUEUE_CONN_STR`.
1384
-
;; default is queues/common
1385
-
;ISSUE_INDEXER_QUEUE_DIR = queues/common; **DEPRECATED** use settings in `[queue.issue_indexer]`. Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
1386
-
;;
1387
-
;; When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string.
1388
-
;; When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this is a directory or additional options of
1389
-
;; the form `leveldb://path/to/db?option=value&....`, and overrides `ISSUE_INDEXER_QUEUE_DIR`.
1390
-
;ISSUE_INDEXER_QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"; **DEPRECATED** use settings in `[queue.issue_indexer]`.
1391
-
;;
1392
-
;; Batch queue number, default is 20
1393
-
;ISSUE_INDEXER_QUEUE_BATCH_NUMBER = 20; **DEPRECATED** use settings in `[queue.issue_indexer]`.
1394
-
1395
1373
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1396
1374
;; Repository Indexer settings
1397
1375
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@@ -1418,8 +1396,6 @@ ROUTER = console
1418
1396
;; A comma separated list of glob patterns to exclude from the index; ; default is empty
1419
1397
;REPO_INDEXER_EXCLUDE =
1420
1398
;;
1421
-
;;
1422
-
;UPDATE_BUFFER_LEN = 20; **DEPRECATED** use settings in `[queue.issue_indexer]`.
Copy file name to clipboardexpand all lines: docs/content/doc/administration/config-cheat-sheet.en-us.md
+5-39
Original file line number
Diff line number
Diff line change
@@ -89,10 +89,6 @@ In addition there is _`StaticRootPath`_ which can be set as a built-in at build
89
89
-`DEFAULT_PUSH_CREATE_PRIVATE`: **true**: Default private when creating a new repository with push-to-create.
90
90
-`MAX_CREATION_LIMIT`: **-1**: Global maximum creation limit of repositories per user,
91
91
`-1` means no limit.
92
-
-`PULL_REQUEST_QUEUE_LENGTH`: **1000**: Length of pull request patch test queue, make it. **DEPRECATED** use `LENGTH` in `[queue.pr_patch_checker]`.
93
-
as large as possible. Use caution when editing this value.
94
-
-`MIRROR_QUEUE_LENGTH`: **1000**: Patch test queue length, increase if pull request patch
95
-
testing starts hanging. **DEPRECATED** use `LENGTH` in `[queue.mirror]`.
96
92
-`PREFERRED_LICENSES`: **Apache License 2.0,MIT License**: Preferred Licenses to place at
97
93
the top of the list. Name must match file name in options/license or custom/options/license.
98
94
-`DISABLE_HTTP_GIT`: **false**: Disable the ability to interact with repositories over the
@@ -465,11 +461,6 @@ relation to port exhaustion.
465
461
-`ISSUE_INDEXER_CONN_STR`: ****: Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch, or meilisearch. i.e. http://elastic:changeme@localhost:9200
466
462
-`ISSUE_INDEXER_NAME`: **gitea_issues**: Issue indexer name, available when ISSUE_INDEXER_TYPE is elasticsearch
467
463
-`ISSUE_INDEXER_PATH`: **indexers/issues.bleve**: Index file used for issue search; available when ISSUE_INDEXER_TYPE is bleve and elasticsearch. Relative paths will be made absolute against _`AppWorkPath`_.
468
-
- The next 4 configuration values are deprecated and should be set in `queue.issue_indexer` however are kept for backwards compatibility:
469
-
-`ISSUE_INDEXER_QUEUE_TYPE`: **levelqueue**: Issue indexer queue, currently supports:`channel`, `levelqueue`, `redis`. **DEPRECATED** use settings in `[queue.issue_indexer]`.
470
-
-`ISSUE_INDEXER_QUEUE_DIR`: **queues/common**: When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this will be the path where the queue will be saved. **DEPRECATED** use settings in `[queue.issue_indexer]`. Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
471
-
-`ISSUE_INDEXER_QUEUE_CONN_STR`: **addrs=127.0.0.1:6379 db=0**: When `ISSUE_INDEXER_QUEUE_TYPE` is `redis`, this will store the redis connection string. When `ISSUE_INDEXER_QUEUE_TYPE` is `levelqueue`, this is a directory or additional options of the form `leveldb://path/to/db?option=value&....`, and overrides `ISSUE_INDEXER_QUEUE_DIR`. **DEPRECATED** use settings in `[queue.issue_indexer]`.
472
-
-`ISSUE_INDEXER_QUEUE_BATCH_NUMBER`: **20**: Batch queue number. **DEPRECATED** use settings in `[queue.issue_indexer]`.
473
464
474
465
-`REPO_INDEXER_ENABLED`: **false**: Enables code search (uses a lot of disk space, about 6 times more than the repository size).
475
466
-`REPO_INDEXER_TYPE`: **bleve**: Code search engine type, could be `bleve` or `elasticsearch`.
@@ -480,31 +471,21 @@ relation to port exhaustion.
480
471
-`REPO_INDEXER_INCLUDE`: **empty**: A comma separated list of glob patterns (see https://github.com/gobwas/glob) to **include** in the index. Use `**.txt` to match any files with .txt extension. An empty list means include all files.
481
472
-`REPO_INDEXER_EXCLUDE`: **empty**: A comma separated list of glob patterns (see https://github.com/gobwas/glob) to **exclude** from the index. Files that match this list will not be indexed, even if they match in `REPO_INDEXER_INCLUDE`.
482
473
-`REPO_INDEXER_EXCLUDE_VENDORED`: **true**: Exclude vendored files from index.
483
-
-`UPDATE_BUFFER_LEN`: **20**: Buffer length of index request. **DEPRECATED** use settings in `[queue.issue_indexer]`.
484
474
-`MAX_FILE_SIZE`: **1048576**: Maximum size in bytes of files to be indexed.
485
475
-`STARTUP_TIMEOUT`: **30s**: If the indexer takes longer than this timeout to start - fail. (This timeout will be added to the hammer time above for child processes - as bleve will not start until the previous parent is shutdown.) Set to -1 to never timeout.
486
476
487
477
## Queue (`queue` and `queue.*`)
488
478
489
479
Configuration at `[queue]` will set defaults for queues with overrides for individual queues at `[queue.*]`. (However see below.)
490
480
491
-
-`TYPE`: **persistable-channel**: General queue type, currently support: `persistable-channel` (uses a LevelDB internally), `channel`, `level`, `redis`, `dummy`
492
-
-`DATADIR`: **queues/**: Base DataDir for storing persistent and level queues. `DATADIR` for individual queues can be set in `queue.name` sections but will default to `DATADIR/`**`common`**. (Previously each queue would default to `DATADIR/`**`name`**.) Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
493
-
-`LENGTH`: **20**: Maximal queue size before channel queues block
481
+
-`TYPE`: **level**: General queue type, currently support: `level` (uses a LevelDB internally), `channel`, `redis`, `dummy`. Invalid types are treated as `level`.
482
+
-`DATADIR`: **queues/common**: Base DataDir for storing level queues. `DATADIR` for individual queues can be set in `queue.name` sections. Relative paths will be made absolute against `%(APP_DATA_PATH)s`.
483
+
-`LENGTH`: **100**: Maximal queue size before channel queues block
494
484
-`BATCH_LENGTH`: **20**: Batch data before passing to the handler
495
-
-`CONN_STR`: **redis://127.0.0.1:6379/0**: Connection string for the redis queue type. Options can be set using query params. Similarly LevelDB options can also be set using: **leveldb://relative/path?option=value** or **leveldb:///absolute/path?option=value**, and will override `DATADIR`
485
+
-`CONN_STR`: **redis://127.0.0.1:6379/0**: Connection string for the redis queue type. Options can be set using query params. Similarly, LevelDB options can also be set using: **leveldb://relative/path?option=value** or **leveldb:///absolute/path?option=value**, and will override `DATADIR`
496
486
-`QUEUE_NAME`: **_queue**: The suffix for default redis and disk queue name. Individual queues will default to **`name`**`QUEUE_NAME` but can be overridden in the specific `queue.name` section.
497
-
-`SET_NAME`: **_unique**: The suffix that will be added to the default redis and disk queue `set` name for unique queues. Individual queues will default to
498
-
**`name`**`QUEUE_NAME`_`SET_NAME`_ but can be overridden in the specific `queue.name` section.
499
-
-`WRAP_IF_NECESSARY`: **true**: Will wrap queues with a timeoutable queue if the selected queue is not ready to be created - (Only relevant for the level queue.)
500
-
-`MAX_ATTEMPTS`: **10**: Maximum number of attempts to create the wrapped queue
501
-
-`TIMEOUT`: **GRACEFUL_HAMMER_TIME + 30s**: Timeout the creation of the wrapped queue if it takes longer than this to create.
502
-
- Queues by default come with a dynamically scaling worker pool. The following settings configure this:
503
-
-`WORKERS`: **0**: Number of initial workers for the queue.
487
+
-`SET_NAME`: **_unique**: The suffix that will be added to the default redis and disk queue `set` name for unique queues. Individual queues will default to **`name`**`QUEUE_NAME`_`SET_NAME`_ but can be overridden in the specific `queue.name` section.
504
488
-`MAX_WORKERS`: **10**: Maximum number of worker go-routines for the queue.
505
-
-`BLOCK_TIMEOUT`: **1s**: If the queue blocks for this time, boost the number of workers - the `BLOCK_TIMEOUT` will then be doubled before boosting again whilst the boost is ongoing.
506
-
-`BOOST_TIMEOUT`: **5m**: Boost workers will timeout after this long.
507
-
-`BOOST_WORKERS`: **1**: This many workers will be added to the worker pool if there is a boost.
508
489
509
490
Gitea creates the following non-unique queues:
510
491
@@ -522,21 +503,6 @@ And the following unique queues:
522
503
-`mirror`
523
504
-`pr_patch_checker`
524
505
525
-
Certain queues have defaults that override the defaults set in `[queue]` (this occurs mostly to support older configuration):
526
-
527
-
-`[queue.issue_indexer]`
528
-
-`TYPE` this will default to `[queue]``TYPE` if it is set but if not it will appropriately convert `[indexer]``ISSUE_INDEXER_QUEUE_TYPE` if that is set.
529
-
-`LENGTH` will default to `[indexer]``UPDATE_BUFFER_LEN` if that is set.
530
-
-`BATCH_LENGTH` will default to `[indexer]``ISSUE_INDEXER_QUEUE_BATCH_NUMBER` if that is set.
531
-
-`DATADIR` will default to `[indexer]``ISSUE_INDEXER_QUEUE_DIR` if that is set.
532
-
-`CONN_STR` will default to `[indexer]``ISSUE_INDEXER_QUEUE_CONN_STR` if that is set.
533
-
-`[queue.mailer]`
534
-
-`LENGTH` will default to **100** or whatever `[mailer]``SEND_BUFFER_LEN` is.
535
-
-`[queue.pr_patch_checker]`
536
-
-`LENGTH` will default to **1000** or whatever `[repository]``PULL_REQUEST_QUEUE_LENGTH` is.
537
-
-`[queue.mirror]`
538
-
-`LENGTH` will default to **1000** or whatever `[repository]``MIRROR_QUEUE_LENGTH` is.
539
-
540
506
## Admin (`admin`)
541
507
542
508
-`DEFAULT_EMAIL_NOTIFICATIONS`: **enabled**: Default configuration for email notifications for users (user configurable). Options: enabled, onmention, disabled
0 commit comments