@@ -74,6 +74,37 @@ WORK_IN_PROGRESS_PREFIXES=WIP:,[WIP]
74
74
; List of reasons why a Pull Request or Issue can be locked
75
75
LOCK_REASONS=Too heated,Off-topic,Resolved,Spam
76
76
77
+ [repository.signing]
78
+ ; GPG key to use to sign commits, Defaults to the default - that is the value of git config --get user.signingkey
79
+ ; run in the context of the RUN_USER
80
+ ; Switch to none to stop signing completely
81
+ SIGNING_KEY = default
82
+ ; If a SIGNING_KEY ID is provided and is not set to default, use the provided Name and Email address as the signer.
83
+ ; These should match a publicized name and email address for the key. (When SIGNING_KEY is default these are set to
84
+ ; the results of git config --get user.name and git config --get user.email respectively and can only be overrided
85
+ ; by setting the SIGNING_KEY ID to the correct ID.)
86
+ SIGNING_NAME =
87
+ SIGNING_EMAIL =
88
+ ; Determines when gitea should sign the initial commit when creating a repository
89
+ ; Either:
90
+ ; - never
91
+ ; - pubkey: only sign if the user has a pubkey
92
+ ; - twofa: only sign if the user has logged in with twofa
93
+ ; - always
94
+ ; options other than none and always can be combined as comma separated list
95
+ INITIAL_COMMIT = always
96
+ ; Determines when to sign for CRUD actions
97
+ ; - as above
98
+ ; - parentsigned: requires that the parent commit is signed.
99
+ CRUD_ACTIONS = pubkey, twofa, parentsigned
100
+ ; Determines when to sign Wiki commits
101
+ ; - as above
102
+ WIKI = never
103
+ ; Determines when to sign on merges
104
+ ; - basesigned: require that the parent of commit on the base repo is signed.
105
+ ; - commitssigned: require that all the commits in the head branch are signed.
106
+ MERGES = pubkey, twofa, basesigned, commitssigned
107
+
77
108
[cors]
78
109
; More information about CORS can be found here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS#The_HTTP_response_headers
79
110
; enable cors headers (disabled by default)
@@ -141,8 +172,9 @@ KEYWORDS = go,git,self-hosted,gitea
141
172
[markdown]
142
173
; Enable hard line break extension
143
174
ENABLE_HARD_LINE_BREAK = false
144
- ; List of custom URL-Schemes that are allowed as links when rendering Markdown
145
- ; for example git,magnet
175
+ ; Comma separated list of custom URL-Schemes that are allowed as links when rendering Markdown
176
+ ; for example git,magnet,ftp (more at https://en.wikipedia.org/wiki/List_of_URI_schemes)
177
+ ; URLs starting with http and https are always displayed, whatever is put in this entry.
146
178
CUSTOM_URL_SCHEMES =
147
179
; List of file extensions that should be rendered/edited as Markdown
148
180
; Separate the extensions with a comma. To render files without any extension as markdown, just put a comma
@@ -243,6 +275,14 @@ LFS_CONTENT_PATH = data/lfs
243
275
LFS_JWT_SECRET =
244
276
; LFS authentication validity period (in time.Duration), pushes taking longer than this may fail.
245
277
LFS_HTTP_AUTH_EXPIRY = 20m
278
+ ; Allow graceful restarts using SIGHUP to fork
279
+ ALLOW_GRACEFUL_RESTARTS = true
280
+ ; After a restart the parent will finish ongoing requests before
281
+ ; shutting down. Force shutdown if this process takes longer than this delay.
282
+ ; set to a negative value to disable
283
+ GRACEFUL_HAMMER_TIME = 60s
284
+ ; Static resources, includes resources on custom/, public/ and all uploaded avatars web browser cache time, default is 6h
285
+ STATIC_CACHE_TIME = 6h
246
286
247
287
; Define allowed algorithms and their minimum key length (use -1 to disable a type)
248
288
[ssh.minimum_key_sizes]
@@ -296,6 +336,9 @@ ISSUE_INDEXER_QUEUE_DIR = indexers/issues.queue
296
336
ISSUE_INDEXER_QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"
297
337
; Batch queue number, default is 20
298
338
ISSUE_INDEXER_QUEUE_BATCH_NUMBER = 20
339
+ ; Timeout the indexer if it takes longer than this to start.
340
+ ; Set to zero to disable timeout.
341
+ STARTUP_TIMEOUT=30s
299
342
300
343
; repo indexer by default disabled, since it uses a lot of disk space
301
344
REPO_INDEXER_ENABLED = false
@@ -333,7 +376,8 @@ IMPORT_LOCAL_PATHS = false
333
376
; Set to true to prevent all users (including admin) from creating custom git hooks
334
377
DISABLE_GIT_HOOKS = false
335
378
;Comma separated list of character classes required to pass minimum complexity.
336
- ;If left empty or no valid values are specified, the default values (`lower,upper,digit,spec`) will be used.
379
+ ;If left empty or no valid values are specified, the default values ("lower,upper,digit,spec") will be used.
380
+ ;Use "off" to disable checking.
337
381
PASSWORD_COMPLEXITY = lower,upper,digit,spec
338
382
; Password Hash algorithm, either "pbkdf2", "argon2", "scrypt" or "bcrypt"
339
383
PASSWORD_HASH_ALGO = pbkdf2
@@ -826,4 +870,4 @@ QUEUE_TYPE = channel
826
870
QUEUE_LENGTH = 1000
827
871
; Task queue connction string, available only when `QUEUE_TYPE` is `redis`.
828
872
; If there is a password of redis, use `addrs=127.0.0.1:6379 password=123 db=0`.
829
- QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"
873
+ QUEUE_CONN_STR = "addrs=127.0.0.1:6379 db=0"
0 commit comments