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/services
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>
2 years ago
..
actions Fix compatible for webhook ref type (#25195) 2 years ago
agit Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
asymkey Add context cache as a request level cache (#22294) 2 years ago
attachment Preserve file size when creating attachments (#23406) 2 years ago
auth Use inline SVG for built-in OAuth providers (#25171) 2 years ago
automerge Improve queue and logger context (#24924) 2 years ago
context Decouple the different contexts from each other (#24786) 2 years ago
convert Add the ability to pin Issues (#24406) 2 years ago
cron Add Cargo package registry (#21888) 2 years ago
externalaccount Implement FSFE REUSE for golang files (#21840) 2 years ago
forms Support changing labels of Actions runner without re-registration (#24806) 2 years ago
gitdiff Display file mode for new file and file mode changes (#24966) 2 years ago
issue Add codeowners feature (#24910) 2 years ago
lfs Fix all possible setting error related storages and added some tests (#23911) 2 years ago
mailer Improve queue and logger context (#24924) 2 years ago
markup Decouple the different contexts from each other (#24786) 2 years ago
migrations Update github.com/google/go-github to v53 (#25157) 2 years ago
mirror Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
org Refactor rename user and rename organization (#24052) 2 years ago
packages Add CRAN package registry (#22331) 2 years ago
pull Add codeowners feature (#24910) 2 years ago
release Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
repository Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
task Improve queue and logger context (#24924) 2 years ago
user Refactor rename user and rename organization (#24052) 2 years ago
webhook Fix compatible for webhook ref type (#25195) 2 years ago
wiki Improve wiki user title test (#24559) 2 years ago