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
* upstream/main: (30 commits)
Don't filter action runs based on state (go-gitea#24711)
Add Go package registry (go-gitea#24687)
Fix flash of unstyled content in action view page (go-gitea#24712)
Clean up various avatar dimensions (go-gitea#24701)
Remove the parallelizing when loading repo for dashboard (go-gitea#24705)
Optimize actions list by removing an unnecessary `git` call (go-gitea#24710)
Update cron-translations.yml (go-gitea#24708)
Fix run list broken when trigger user deleted (go-gitea#24706)
Remove Fomantic comment module (go-gitea#24703)
Update to Alpine 3.18 (go-gitea#24700)
fix minio storage iterator path (go-gitea#24691)
Add status indicator on main home screen for each repo (go-gitea#24638)
Add test for api team orgnization (go-gitea#24699)
Improve button-ghost, remove tertiary button (go-gitea#24692)
Add icon support for safari (go-gitea#24697)
Improve avatar uploading / resizing / compressing, remove Fomantic card module (go-gitea#24653)
Fix docs documenting invalid `@every` for `OLDER_THAN` cron settings (go-gitea#24695)
Fix `organization` field being `null` in `GET /api/v1/teams/{id}` (go-gitea#24694)
Use standard HTTP library to serve files (go-gitea#24693)
Add `eslint-plugin-eslint-comments` (go-gitea#24690)
...
Copy file name to clipboardExpand all lines: docs/content/doc/administration/config-cheat-sheet.en-us.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,8 @@ In addition there is _`StaticRootPath`_ which can be set as a built-in at build
95
95
HTTP protocol.
96
96
-`USE_COMPAT_SSH_URI`: **false**: Force ssh:// clone url instead of scp-style uri when
97
97
default SSH port is used.
98
+
-`GO_GET_CLONE_URL_PROTOCOL`: **https**: Value for the "go get" request returns the repository url as https or ssh
99
+
default is https.
98
100
-`ACCESS_CONTROL_ALLOW_ORIGIN`: **\<empty\>**: Value for Access-Control-Allow-Origin header,
99
101
default is not to present. **WARNING**: This maybe harmful to you website if you do not
100
102
give it a right value.
@@ -790,9 +792,10 @@ and
790
792
-`AVATAR_STORAGE_TYPE`: **default**: Storage type defined in `[storage.xxx]`. Default is `default` which will read `[storage]` if no section `[storage]` will be a type `local`.
791
793
-`AVATAR_UPLOAD_PATH`: **data/avatars**: Path to store user avatar image files.
792
794
-`AVATAR_MAX_WIDTH`: **4096**: Maximum avatar image width in pixels.
793
-
-`AVATAR_MAX_HEIGHT`: **3072**: Maximum avatar image height in pixels.
794
-
-`AVATAR_MAX_FILE_SIZE`: **1048576** (1Mb): Maximum avatar image file size in bytes.
795
-
-`AVATAR_RENDERED_SIZE_FACTOR`: **3**: The multiplication factor for rendered avatar images. Larger values result in finer rendering on HiDPI devices.
795
+
-`AVATAR_MAX_HEIGHT`: **4096**: Maximum avatar image height in pixels.
796
+
-`AVATAR_MAX_FILE_SIZE`: **1048576** (1MiB): Maximum avatar image file size in bytes.
797
+
-`AVATAR_MAX_ORIGIN_SIZE`: **262144** (256KiB): If the uploaded file is not larger than this byte size, the image will be used as is, without resizing/converting.
798
+
-`AVATAR_RENDERED_SIZE_FACTOR`: **2**: The multiplication factor for rendered avatar images. Larger values result in finer rendering on HiDPI devices.
796
799
797
800
-`REPOSITORY_AVATAR_STORAGE_TYPE`: **default**: Storage type defined in `[storage.xxx]`. Default is `default` which will read `[storage]` if no section `[storage]` will be a type `local`.
798
801
-`REPOSITORY_AVATAR_UPLOAD_PATH`: **data/repo-avatars**: Path to store repository avatar image files.
@@ -1016,7 +1019,7 @@ Default templates for project boards:
1016
1019
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
1017
1020
-`NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
1018
1021
-`SCHEDULE`: **@every 168h**: Cron syntax to set how often to check.
1019
-
-`OLDER_THAN`: **@every8760h**: any action older than this expression will be deleted from database, suggest using `8760h` (1 year) because that's the max length of heatmap.
1022
+
-`OLDER_THAN`: **8760h**: any action older than this expression will be deleted from database, suggest using `8760h` (1 year) because that's the max length of heatmap.
1020
1023
1021
1024
#### Cron - Check for new Gitea versions (`cron.update_checker`)
1022
1025
@@ -1032,7 +1035,7 @@ Default templates for project boards:
1032
1035
-`RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
1033
1036
-`NO_SUCCESS_NOTICE`: **false**: Set to true to switch off success notices.
1034
1037
-`SCHEDULE`: **@every 168h**: Cron syntax to set how often to check.
1035
-
-`OLDER_THAN`: **@every8760h**: any system notice older than this expression will be deleted from database.
1038
+
-`OLDER_THAN`: **8760h**: any system notice older than this expression will be deleted from database.
1036
1039
1037
1040
#### Cron - Garbage collect LFS pointers in repositories (`cron.gc_lfs`)
1038
1041
@@ -1211,6 +1214,7 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
1211
1214
-`CHUNKED_UPLOAD_PATH`: **tmp/package-upload**: Path for chunked uploads. Defaults to `APP_DATA_PATH` + `tmp/package-upload`
1212
1215
-`LIMIT_TOTAL_OWNER_COUNT`: **-1**: Maximum count of package versions a single owner can have (`-1` means no limits)
1213
1216
-`LIMIT_TOTAL_OWNER_SIZE`: **-1**: Maximum size of packages a single owner can use (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1217
+
-`LIMIT_SIZE_ALPINE`: **-1**: Maximum size of an Alpine upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1214
1218
-`LIMIT_SIZE_CARGO`: **-1**: Maximum size of a Cargo upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1215
1219
-`LIMIT_SIZE_CHEF`: **-1**: Maximum size of a Chef upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1216
1220
-`LIMIT_SIZE_COMPOSER`: **-1**: Maximum size of a Composer upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
@@ -1219,6 +1223,7 @@ Task queue configuration has been moved to `queue.task`. However, the below conf
1219
1223
-`LIMIT_SIZE_CONTAINER`: **-1**: Maximum size of a Container upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1220
1224
-`LIMIT_SIZE_DEBIAN`: **-1**: Maximum size of a Debian upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1221
1225
-`LIMIT_SIZE_GENERIC`: **-1**: Maximum size of a Generic upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1226
+
-`LIMIT_SIZE_GO`: **-1**: Maximum size of a Go upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1222
1227
-`LIMIT_SIZE_HELM`: **-1**: Maximum size of a Helm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1223
1228
-`LIMIT_SIZE_MAVEN`: **-1**: Maximum size of a Maven upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
1224
1229
-`LIMIT_SIZE_NPM`: **-1**: Maximum size of a npm upload (`-1` means no limits, format `1000`, `1 MB`, `1 GiB`)
If the registry is private, provide credentials in the url. You can use a password or a [personal access token]({{< relref "doc/development/api-usage.en-us.md#authentication" >}}):
If you are using 2FA or OAuth use a [personal access token]({{< relref "doc/development/api-usage.en-us.md#authentication" >}}) instead of the password.
84
+
You cannot publish a file with the same name twice to a package. You must delete the existing package file first.
85
+
86
+
The server responds with the following HTTP Status codes.
87
+
88
+
| HTTP Status Code | Meaning |
89
+
| ----------------- | ------- |
90
+
|`201 Created`| The package has been published. |
91
+
|`400 Bad Request`| The package name, version, branch, repository or architecture are invalid. |
92
+
|`409 Conflict`| A package file with the same combination of parameters exist already in the package. |
93
+
94
+
## Delete a package
95
+
96
+
To delete an Alpine package perform a HTTP `DELETE` operation. This will delete the package version too if there is no file left.
0 commit comments