|
1 | | ---- gitea-1.20.0/custom/conf/app.example.ini.orig 2023-07-16 21:24:12.000000000 +0200 |
2 | | -+++ gitea-1.20.0/custom/conf/app.example.ini 2023-07-19 18:51:01.186945949 +0200 |
3 | | -@@ -47,7 +47,7 @@ |
| 1 | +diff --git a/custom/conf/app.example.ini b/custom/conf/app.example.ini |
| 2 | +index a7476ad..d8cc405 100644 |
| 3 | +--- a/custom/conf/app.example.ini |
| 4 | ++++ b/custom/conf/app.example.ini |
| 5 | +@@ -44,7 +44,7 @@ |
4 | 6 | APP_NAME = ; Gitea: Git with a cup of tea |
5 | 7 | ;; |
6 | 8 | ;; RUN_USER will automatically detect the current user - but you can set it here change it if you run locally |
|
9 | 11 | ;; |
10 | 12 | ;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod" |
11 | 13 | ;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use. |
12 | | -@@ -117,7 +117,7 @@ |
| 14 | +@@ -129,7 +129,7 @@ RUN_USER = ; git |
13 | 15 | ;PER_WRITE_PER_KB_TIMEOUT = 30s |
14 | 16 | ;; |
15 | 17 | ;; Permission for unix socket |
16 | 18 | -;UNIX_SOCKET_PERMISSION = 666 |
17 | 19 | +UNIX_SOCKET_PERMISSION = 660 |
18 | 20 | ;; |
19 | | - ;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service. |
20 | | - ;; In most cases you do not need to change the default value. |
21 | | -@@ -156,7 +156,7 @@ |
22 | | - ;SSH_LISTEN_PORT = %(SSH_PORT)s |
| 21 | + ;; Local (DMZ) URL for Gitea workers (such as SSH update) accessing web service. In |
| 22 | + ;; most cases you do not need to change the default value. Alter it only if |
| 23 | +@@ -176,7 +176,7 @@ RUN_USER = ; git |
| 24 | + ;SSH_LISTEN_PORT = |
23 | 25 | ;; |
24 | 26 | ;; Root path of SSH directory, default is '~/.ssh', but you have to use '/home/git/.ssh'. |
25 | 27 | -;SSH_ROOT_PATH = |
26 | 28 | +SSH_ROOT_PATH = /var/lib/gitea/.ssh |
27 | 29 | ;; |
28 | 30 | ;; Gitea will create a authorized_keys file by default when it is not using the internal ssh server |
29 | 31 | ;; If you intend to use the AuthorizedKeysCommand functionality then you should turn this off. |
30 | | -@@ -275,7 +275,7 @@ |
| 32 | +@@ -288,7 +288,7 @@ RUN_USER = ; git |
31 | 33 | ;; |
32 | 34 | ;; Root directory containing templates and static files. |
33 | 35 | ;; default is the path where Gitea is executed |
|
36 | 38 | ;; |
37 | 39 | ;; Default path for App data |
38 | 40 | ;APP_DATA_PATH = data ; relative paths will be made absolute with _`AppWorkPath`_ |
39 | | -@@ -338,10 +338,10 @@ |
| 41 | +@@ -363,10 +363,10 @@ RUN_USER = ; git |
40 | 42 | ;; |
41 | 43 | ;; MySQL Configuration |
42 | 44 | ;; |
|
50 | 52 | +;USER = root |
51 | 53 | ;PASSWD = ;Use PASSWD = `your password` for quoting if you use special characters in the password. |
52 | 54 | ;SSL_MODE = false ; either "false" (default), "true", or "skip-verify" |
53 | | - ;CHARSET = utf8mb4 ;either "utf8" or "utf8mb4", default is "utf8mb4". |
54 | | -@@ -364,8 +364,8 @@ |
| 55 | + ;CHARSET_COLLATION = ; Empty as default, Gitea will try to find a case-sensitive collation. Don't change it unless you clearly know what you need. |
| 56 | +@@ -387,8 +387,8 @@ USER = root |
55 | 57 | ;; |
56 | 58 | ;; SQLite Configuration |
57 | 59 | ;; |
|
62 | 64 | ;SQLITE_TIMEOUT = ; Query timeout defaults to: 500 |
63 | 65 | ;SQLITE_JOURNAL_MODE = ; defaults to sqlite database default (often DELETE), can be used to enable WAL mode. https://www.sqlite.org/pragma.html#pragma_journal_mode |
64 | 66 | ;; |
65 | | -@@ -545,7 +545,7 @@ |
| 67 | +@@ -595,7 +595,7 @@ ENABLED = true |
66 | 68 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
67 | 69 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
68 | | - ;; Root path for the log files - defaults to %(GITEA_WORK_DIR)/log |
| 70 | + ;; Root path for the log files - defaults to "{AppWorkPath}/log" |
69 | 71 | -;ROOT_PATH = |
70 | 72 | +ROOT_PATH = /var/log/gitea |
71 | 73 | ;; |
72 | 74 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
73 | 75 | ;; Main Logger |
74 | | -@@ -873,11 +873,11 @@ |
| 76 | +@@ -984,11 +984,11 @@ LEVEL = Info |
75 | 77 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
76 | 78 |
|
77 | 79 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
78 | 80 | -;[repository] |
79 | 81 | +[repository] |
80 | 82 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
81 | | - ;; Root path for storing all repository data. By default, it is set to %(APP_DATA_PATH)s/gitea-repositories. |
82 | | - ;; A relative path is interpreted as _`AppWorkPath`_/%(ROOT)s |
| 83 | + ;; Root path for storing all repository data. By default, it is set to "{APP_DATA_PATH}/gitea-repositories". |
| 84 | + ;; A relative path is interpreted as "{AppWorkPath}/{ROOT}" (use AppWorkPath as base path). |
83 | 85 | -;ROOT = |
84 | 86 | +ROOT = /var/lib/gitea/repositories |
85 | 87 | ;; |
86 | 88 | ;; The script type this server supports. Usually this is `bash`, but some users report that only `sh` is available. |
87 | 89 | ;SCRIPT_TYPE = bash |
88 | | -@@ -970,16 +970,16 @@ |
89 | | - |
90 | | - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
91 | | - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
92 | | --;[repository.local] |
93 | | -+[repository.local] |
94 | | - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
95 | | - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
96 | | - ;; |
97 | | - ;; Path for local repository copy. Defaults to `tmp/local-repo` (content gets deleted on gitea restart) |
98 | | --;LOCAL_COPY_PATH = tmp/local-repo |
99 | | -+LOCAL_COPY_PATH = /var/lib/gitea/tmp/local-repo |
| 90 | +@@ -1099,7 +1099,7 @@ LEVEL = Info |
100 | 91 |
|
101 | 92 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
102 | 93 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
105 | 96 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
106 | 97 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
107 | 98 | ;; |
108 | | -@@ -987,7 +987,7 @@ |
109 | | - ;ENABLED = true |
110 | | - ;; |
111 | | - ;; Path for uploads. Defaults to `data/tmp/uploads` (content gets deleted on gitea restart) |
112 | | --;TEMP_PATH = data/tmp/uploads |
113 | | -+TEMP_PATH = /var/lib/gitea/uploads |
114 | | - ;; |
115 | | - ;; Comma-separated list of allowed file extensions (`.zip`), mime types (`text/plain`) or wildcard type (`image/*`, `audio/*`, `video/*`). Empty value or `*/*` allows all types. |
116 | | - ;ALLOWED_TYPES = |
117 | | -@@ -1324,7 +1324,7 @@ |
| 99 | +@@ -1474,7 +1474,7 @@ LEVEL = Info |
118 | 100 |
|
119 | 101 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
120 | 102 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
123 | 105 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
124 | 106 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
125 | 107 | ;; |
126 | | -@@ -1335,7 +1335,7 @@ |
| 108 | +@@ -1485,7 +1485,7 @@ LEVEL = Info |
127 | 109 | ;ISSUE_INDEXER_TYPE = bleve |
128 | 110 | ;; |
129 | 111 | ;; Issue indexer storage path, available when ISSUE_INDEXER_TYPE is bleve |
130 | 112 | -;ISSUE_INDEXER_PATH = indexers/issues.bleve ; Relative paths will be made absolute against _`AppWorkPath`_. |
131 | 113 | +ISSUE_INDEXER_PATH = /var/lib/gitea/indexers/issues.bleve |
132 | 114 | ;; |
133 | | - ;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch or meilisearch |
134 | | - ;ISSUE_INDEXER_CONN_STR = http://elastic:changeme@localhost:9200 |
135 | | -@@ -1738,11 +1738,11 @@ |
| 115 | + ;; Issue indexer connection string, available when ISSUE_INDEXER_TYPE is elasticsearch (e.g. http://elastic:password@localhost:9200) or meilisearch (e.g. http://:apikey@localhost:7700) |
| 116 | + ;ISSUE_INDEXER_CONN_STR = |
| 117 | +@@ -1924,11 +1924,11 @@ LEVEL = Info |
136 | 118 |
|
137 | 119 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
138 | 120 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
146 | 128 | ;REPOSITORY_AVATAR_UPLOAD_PATH = data/repo-avatars |
147 | 129 | ;; |
148 | 130 | ;; How Gitea deals with missing repository avatars |
149 | | -@@ -2483,11 +2483,11 @@ |
| 131 | +@@ -2702,11 +2702,11 @@ LEVEL = Info |
150 | 132 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
151 | 133 | ;; lfs storage will override storage |
152 | 134 | ;; |
|
158 | 140 | -;PATH = data/lfs |
159 | 141 | +PATH = /var/lib/gitea/lfs |
160 | 142 | ;; |
161 | | - ;; override the minio base path if storage type is minio |
162 | | - ;MINIO_BASE_PATH = lfs/ |
| 143 | + ;; Allows the storage driver to redirect to authenticated URLs to serve files directly |
| 144 | + ;; Currently, only `minio` and `azureblob` is supported. |
0 commit comments