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
Copy file name to clipboardExpand all lines: docs/content/doc/advanced/config-cheat-sheet.en-us.md
+10-2Lines changed: 10 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,7 @@ Values containing `#` or `;` must be quoted using `` ` `` or `"""`.
115
115
116
116
-`ALLOWED_TYPES`: **\<empty\>**: Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types.
117
117
-`DEFAULT_PAGING_NUM`: **10**: The default paging number of releases user interface
118
+
- For settings related to file attachments on releases, see the `attachment` section.
118
119
119
120
### Repository - Signing (`repository.signing`)
120
121
@@ -173,9 +174,9 @@ The following configuration set `Content-Type: application/vnd.android.package-a
173
174
-`FEED_PAGING_NUM`: **20**: Number of items that are displayed in home feed.
174
175
-`GRAPH_MAX_COMMIT_NUM`: **100**: Number of maximum commits shown in the commit graph.
175
176
-`CODE_COMMENT_LINES`: **4**: Number of line of codes shown for a code comment.
176
-
-`DEFAULT_THEME`: **gitea**: \[gitea, arc-green\]: Set the default theme for the Gitea install.
177
+
-`DEFAULT_THEME`: **auto**: \[auto, gitea, arc-green\]: Set the default theme for the Gitea install.
177
178
-`SHOW_USER_EMAIL`: **true**: Whether the email of the user should be shown in the Explore Users page.
178
-
-`THEMES`: **gitea,arc-green**: All available themes. Allow users select personalized themes.
179
+
-`THEMES`: **auto,gitea,arc-green**: All available themes. Allow users select personalized themes.
179
180
regardless of the value of `DEFAULT_THEME`.
180
181
-`THEME_COLOR_META_TAG`: **#6cc644**: Value of `theme-color` meta tag, used by Android >= 5.0. An invalid color like "none" or "disable" will have the default style. More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
181
182
-`MAX_DISPLAY_FILE_SIZE`: **8388608**: Max size of files to be displayed (default is 8MiB)
@@ -841,6 +842,7 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
841
842
-`VERBOSE_PUSH`: **true**: Print status information about pushes as they are being processed.
842
843
-`VERBOSE_PUSH_DELAY`: **5s**: Only print verbose information if push takes longer than this delay.
843
844
-`LARGE_OBJECT_THRESHOLD`: **1048576**: (Go-Git only), don't cache objects greater than this in memory. (Set to 0 to disable.)
845
+
-`DISABLE_CORE_PROTECT_NTFS`: **false** Set to true to forcibly set `core.protectNTFS` to false.
@@ -852,6 +854,8 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
852
854
## Metrics (`metrics`)
853
855
854
856
-`ENABLED`: **false**: Enables /metrics endpoint for prometheus.
857
+
-`ENABLED_ISSUE_BY_LABEL`: **false**: Enable issue by label metrics with format `gitea_issues_by_label{label="bug"} 2`.
858
+
-`ENABLED_ISSUE_BY_REPOSITORY`: **false**: Enable issue by repository metrics with format `gitea_issues_by_repository{repository="org/repo"} 5`.
855
859
-`TOKEN`: **\<empty\>**: You need to specify the token, if you want to include in the authorization the metrics . The same token need to be used in prometheus parameters `bearer_token` or `bearer_token_file`.
856
860
857
861
## API (`api`)
@@ -952,6 +956,10 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
952
956
-`ALLOW_LOCALNETWORKS`: **false**: Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291
0 commit comments