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.
forgejo/templates
Lunny Xiao d6dd6d641b
Fix all possible setting error related storages and added some tests (#23911)
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: wxiaoguang <wxiaoguang@gmail.com>
1 year ago
..
admin Fix all possible setting error related storages and added some tests (#23911) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 1 year ago
base Improve AJAX link and modal confirm dialog (#25210) 1 year ago
code Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Button and color enhancements (#24989) 1 year ago
explore Consolidate the two review boxes into one (#24738) 1 year ago
mail Remove incorrect HTML self close tag (#23748) 1 year ago
org Improve AJAX link and modal confirm dialog (#25210) 1 year ago
package Consolidate the two review boxes into one (#24738) 1 year ago
projects Merge `new project` templates into one (#24985) 1 year ago
repo Improve AJAX link and modal confirm dialog (#25210) 1 year ago
shared Support changing labels of Actions runner without re-registration (#24806) 1 year ago
status Fix mobile navbar and misc cleanups (#25134) 1 year ago
swagger fix swagger documentation for multiple files API endpoint (#25110) 1 year ago
user Improve AJAX link and modal confirm dialog (#25210) 1 year ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 1 year ago
install.tmpl Unification of registration fields order (#24737) 1 year ago
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) 1 year ago