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
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,9 +174,9 @@ The following configuration set `Content-Type: application/vnd.android.package-a
174
174
-`FEED_PAGING_NUM`: **20**: Number of items that are displayed in home feed.
175
175
-`GRAPH_MAX_COMMIT_NUM`: **100**: Number of maximum commits shown in the commit graph.
176
176
-`CODE_COMMENT_LINES`: **4**: Number of line of codes shown for a code comment.
177
-
-`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.
178
178
-`SHOW_USER_EMAIL`: **true**: Whether the email of the user should be shown in the Explore Users page.
179
-
-`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.
180
180
regardless of the value of `DEFAULT_THEME`.
181
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
182
182
-`MAX_DISPLAY_FILE_SIZE`: **8388608**: Max size of files to be displayed (default is 8MiB)
@@ -853,6 +853,8 @@ NB: You must have `DISABLE_ROUTER_LOG` set to `false` for this option to take ef
853
853
## Metrics (`metrics`)
854
854
855
855
-`ENABLED`: **false**: Enables /metrics endpoint for prometheus.
856
+
-`ENABLED_ISSUE_BY_LABEL`: **false**: Enable issue by label metrics with format `gitea_issues_by_label{label="bug"} 2`.
857
+
-`ENABLED_ISSUE_BY_REPOSITORY`: **false**: Enable issue by repository metrics with format `gitea_issues_by_repository{repository="org/repo"} 5`.
856
858
-`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`.
857
859
858
860
## API (`api`)
@@ -953,6 +955,10 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
953
955
-`ALLOW_LOCALNETWORKS`: **false**: Allow private addresses defined by RFC 1918, RFC 1122, RFC 4632 and RFC 4291
Copy file name to clipboardExpand all lines: docs/content/doc/help/faq.en-us.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,7 @@ Use [Fail2Ban]({{< relref "doc/usage/fail2ban-setup.en-us.md" >}}) to monitor an
158
158
159
159
## How to add/use custom themes
160
160
161
-
Gitea supports two official themes right now, `gitea`and`arc-green` (`light` and `dark` respectively)
161
+
Gitea supports three official themes right now, `gitea`(light),`arc-green` (dark), and `auto` (automatically switches between the previous two depending on operating system settings).
162
162
To add your own theme, currently the only way is to provide a complete theme (not just color overrides)
163
163
164
164
As an example, let's say our theme is `arc-blue` (this is a real theme, and can be found [in this issue](https://github.com/go-gitea/gitea/issues/6011))
0 commit comments