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
* giteaofficial/main:
[skip ci] Updated translations via Crowdin
Fix commit status color on dashboard repolist (go-gitea#25993)
Improve profile readme rendering (go-gitea#25988)
avoid hard-coding height in language dropdown menu (go-gitea#25986)
parseScope with owner/repo always sets owner to zero (go-gitea#25987)
Bump github.com/golang-jwt/jwt to v5 (go-gitea#25975)
Update path related documents (go-gitea#25417)
Update djlint, enable H026 and T027 (go-gitea#25980)
[skip ci] Updated translations via Crowdin
Show the mismatched ROOT_URL warning on the sign-in page if OAuth2 is enabled (go-gitea#25947)
Refactor "Content" for file uploading (go-gitea#25851)
Fix SSPI auth panic (go-gitea#25955)
Make pending commit status yellow again (go-gitea#25935)
Move public asset files to the proper directory (go-gitea#25907)
Disallow dangerous url schemes (go-gitea#25960)
Avoid creating directories when loading config (go-gitea#25944)
Copy file name to clipboardExpand all lines: custom/conf/app.example.ini
+10-10
Original file line number
Diff line number
Diff line change
@@ -16,26 +16,23 @@
16
16
;;
17
17
;; - _`AppPath`_: This is the absolute path of the running gitea binary.
18
18
;; - _`AppWorkPath`_: This refers to "working path" of the `gitea` binary. It is determined by using the first set thing in the following hierarchy:
19
+
;; - The "WORK_PATH" option in "app.ini" file
19
20
;; - The `--work-path` flag passed to the binary
20
21
;; - The environment variable `$GITEA_WORK_DIR`
21
22
;; - A built-in value set at build time (see building from source)
22
23
;; - Otherwise it defaults to the directory of the _`AppPath`_
23
-
;; - If any of the above are relative paths then they are made absolute against
24
-
;; the directory of the _`AppPath`_
25
-
;; - _`CustomPath`_: This is the base directory for custom templates and other options.
26
-
;; It is determined by using the first set thing in the following hierarchy:
24
+
;; - If any of the above are relative paths then they are made absolute against the directory of the _`AppPath`_
25
+
;; - _`CustomPath`_: This is the base directory for custom templates and other options. It is determined by using the first set thing in the following hierarchy:
27
26
;; - The `--custom-path` flag passed to the binary
28
27
;; - The environment variable `$GITEA_CUSTOM`
29
28
;; - A built-in value set at build time (see building from source)
30
29
;; - Otherwise it defaults to _`AppWorkPath`_`/custom`
31
-
;; - If any of the above are relative paths then they are made absolute against the
32
-
;; the directory of the _`AppWorkPath`_
30
+
;; - If any of the above are relative paths then they are made absolute against the directory of the _`AppWorkPath`_
33
31
;; - _`CustomConf`_: This is the path to the `app.ini` file.
34
32
;; - The `--config` flag passed to the binary
35
33
;; - A built-in value set at build time (see building from source)
36
34
;; - Otherwise it defaults to _`CustomPath`_`/conf/app.ini`
37
-
;; - If any of the above are relative paths then they are made absolute against the
38
-
;; the directory of the _`CustomPath`_
35
+
;; - If any of the above are relative paths then they are made absolute against the directory of the _`CustomPath`_
39
36
;;
40
37
;; In addition there is _`StaticRootPath`_ which can be set as a built-in at build time, but will otherwise default to _`AppWorkPath`_
41
38
@@ -52,6 +49,9 @@ RUN_USER = ; git
52
49
;; Application run mode, affects performance and debugging: "dev" or "prod", default is "prod"
53
50
;; Mode "dev" makes Gitea easier to develop and debug, values other than "dev" are treated as "prod" which is for production use.
54
51
;RUN_MODE = prod
52
+
;;
53
+
;; The working directory, see the comment of AppWorkPath above
Copy file name to clipboardExpand all lines: docs/content/doc/administration/backup-and-restore.en-us.md
+2-12
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,9 @@ directory. There should be some output similar to the following:
46
46
47
47
Inside the `gitea-dump-1482906742.zip` file, will be the following:
48
48
49
-
-`app.ini` - Optional copy of configuration file if originally stored outside of the default `custom/` directory
49
+
-`app.ini` - Optional copy of configuration file if originally stored outside the default `custom/` directory
50
50
-`custom` - All config or customization files in `custom/`.
51
-
-`data` - Data directory in <GITEA_WORK_DIR>, except sessions if you are using file session. This directory includes `attachments`, `avatars`, `lfs`, `indexers`, SQLite file if you are using SQLite.
51
+
-`data` - Data directory (APP_DATA_PATH), except sessions if you are using file session. This directory includes `attachments`, `avatars`, `lfs`, `indexers`, SQLite file if you are using SQLite.
52
52
-`gitea-db.sql` - SQL dump of database
53
53
-`gitea-repo.zip` - Complete copy of the repository directory.
54
54
-`log/` - Various logs. They are not needed for a recovery or migration.
@@ -139,16 +139,6 @@ chown -R git:git /data
139
139
140
140
The default user in the gitea container is `git` (1000:1000). Please replace `2a83b293548e` with your gitea container id or name.
141
141
142
-
These are the default paths used in the container:
143
-
144
-
```text
145
-
DEFAULT CONFIGURATION:
146
-
CustomPath: /data/gitea (GITEA_CUSTOM)
147
-
CustomConf: /data/gitea/conf/app.ini
148
-
AppPath: /usr/local/bin/gitea
149
-
AppWorkPath: /usr/local/bin
150
-
```
151
-
152
142
### Using Docker-rootless (`restore`)
153
143
154
144
The restore workflow in Docker-rootless containers differs only in the directories to be used:
Copy file name to clipboardExpand all lines: docs/content/doc/administration/config-cheat-sheet.en-us.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -44,28 +44,27 @@ reported as part of the default configuration when running `gitea --help` or on
44
44
45
45
-_`AppPath`_: This is the absolute path of the running gitea binary.
46
46
-_`AppWorkPath`_: This refers to "working path" of the `gitea` binary. It is determined by using the first set thing in the following hierarchy:
47
+
- The `WORK_PATH` option in `app.ini`
47
48
- The `--work-path` flag passed to the binary
48
49
- The environment variable `$GITEA_WORK_DIR`
49
50
- A built-in value set at build time (see building from source)
50
-
- Otherwise it defaults to the directory of the _`AppPath`_
51
-
- If any of the above are relative paths then they are made absolute against
52
-
the directory of the _`AppPath`_
51
+
- Otherwise, it defaults to the directory of the _`AppPath`_
52
+
- If any of the above are relative paths then they are made absolute against the directory of the _`AppPath`_
53
53
-_`CustomPath`_: This is the base directory for custom templates and other options.
54
54
It is determined by using the first set thing in the following hierarchy:
55
55
- The `--custom-path` flag passed to the binary
56
56
- The environment variable `$GITEA_CUSTOM`
57
57
- A built-in value set at build time (see building from source)
58
-
- Otherwise it defaults to _`AppWorkPath`_`/custom`
58
+
- Otherwise, it defaults to _`AppWorkPath`_`/custom`
59
59
- If any of the above are relative paths then they are made absolute against the
60
60
the directory of the _`AppWorkPath`_
61
61
-_`CustomConf`_: This is the path to the `app.ini` file.
62
62
- The `--config` flag passed to the binary
63
63
- A built-in value set at build time (see building from source)
64
-
- Otherwise it defaults to _`CustomPath`_`/conf/app.ini`
65
-
- If any of the above are relative paths then they are made absolute against the
66
-
the directory of the _`CustomPath`_
64
+
- Otherwise, it defaults to _`CustomPath`_`/conf/app.ini`
65
+
- If any of the above are relative paths then they are made absolute against the directory of the _`CustomPath`_
67
66
68
-
In addition there is _`StaticRootPath`_ which can be set as a built-in at build time, but will otherwise default to _`AppWorkPath`_
67
+
In addition, there is _`StaticRootPath`_ which can be set as a built-in at build time, but will otherwise default to _`AppWorkPath`_
69
68
70
69
## Overall (`DEFAULT`)
71
70
@@ -74,6 +73,7 @@ In addition there is _`StaticRootPath`_ which can be set as a built-in at build
74
73
This should be a dedicated system (non-user) account. Setting this incorrectly will cause Gitea
75
74
to not start.
76
75
-`RUN_MODE`: **prod**: Application run mode, affects performance and debugging: `dev` or `prod`, default is `prod`. Mode `dev` makes Gitea easier to develop and debug, values other than `dev` are treated as `prod` which is for production use.
76
+
-`WORK_PATH`: **_the-work-path_**: The working directory, see the comment of AppWorkPath above.
77
77
78
78
## Repository (`repository`)
79
79
@@ -224,9 +224,9 @@ The following configuration set `Content-Type: application/vnd.android.package-a
224
224
-`MAX_DISPLAY_FILE_SIZE`: **8388608**: Max size of files to be displayed (default is 8MiB)
225
225
-`REACTIONS`: All available reactions users can choose on issues/prs and comments
226
226
Values can be emoji alias (:smile:) or a unicode emoji.
227
-
For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
227
+
For custom reactions, add a tightly cropped square image to public/assets/img/emoji/reaction_name.png
228
228
-`CUSTOM_EMOJIS`: **gitea, codeberg, gitlab, git, github, gogs**: Additional Emojis not defined in the utf8 standard.
229
-
By default, we support Gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and
229
+
By default, we support Gitea (:gitea:), to add more copy them to public/assets/img/emoji/emoji_name.png and
230
230
add it to this config.
231
231
-`DEFAULT_SHOW_FULL_NAME`: **false**: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
232
232
-`SEARCH_REPO_DESCRIPTION`: **true**: Whether to search within description at repository search on explore page.
0 commit comments