You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/templates
Giteabot 21cd5c2f3d
Fix all possible setting error related storages and added some tests (#23911) (#25244)
Backport #23911 by @lunny

Follow up #22405

Fix #20703 

This PR rewrites storage configuration read sequences with some breaks
and tests. It becomes more strict than before and also fixed some
inherit problems.

- Move storage's MinioConfig struct into setting, so after the
configuration loading, the values will be stored into the struct but not
still on some section.
- All storages configurations should be stored on one section,
configuration items cannot be overrided by multiple sections. The
prioioty of configuration is `[attachment]` > `[storage.attachments]` |
`[storage.customized]` > `[storage]` > `default`
- For extra override configuration items, currently are `SERVE_DIRECT`,
`MINIO_BASE_PATH`, `MINIO_BUCKET`, which could be configured in another
section. The prioioty of the override configuration is `[attachment]` >
`[storage.attachments]` > `default`.
- Add more tests for storages configurations.
- Update the storage documentations.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2 years ago
..
admin Fix all possible setting error related storages and added some tests (#23911) (#25244) 2 years ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Button and color enhancements (#24989) (#25176) 2 years ago
code Use data-tooltip-content for tippy tooltip (#23649) 2 years ago
custom Add footer extra links template (#9576) 5 years ago
devtest Button and color enhancements (#24989) (#25176) 2 years ago
explore Consolidate the two review boxes into one (#24738) 2 years ago
mail Remove incorrect HTML self close tag (#23748) 2 years ago
org Button and color enhancements (#24989) (#25176) 2 years ago
package Consolidate the two review boxes into one (#24738) 2 years ago
projects Merge `new project` templates into one (#24985) 2 years ago
repo Fix strange UI behavior of cancelling dismiss review modal (#25172) 2 years ago
shared Button and color enhancements (#24989) (#25176) 2 years ago
status Fix mobile navbar and misc cleanups (#25134) (#25169) 2 years ago
swagger fix swagger documentation for multiple files API endpoint (#25110) 2 years ago
user Change access token UI to select dropdowns (#25109) (#25230) 2 years ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2 years ago
install.tmpl Unification of registration fields order (#24737) 2 years ago
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) (#25129) 2 years ago