forgejo/services
Lunny Xiao d6dd6d641b
Fix all possible setting error related storages and added some tests ()
Follow up 

Fix  

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>
2023-06-14 11:42:38 +08:00
..
actions Fix compatible for webhook ref type () 2023-06-13 06:05:28 +00:00
agit Use the type RefName for all the needed places and fix pull mirror sync bugs () 2023-05-26 01:04:48 +00:00
asymkey Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
attachment Preserve file size when creating attachments () 2023-03-12 03:48:07 -04:00
auth Use inline SVG for built-in OAuth providers () 2023-06-13 10:51:02 +00:00
automerge Improve queue and logger context () 2023-05-26 07:31:55 +00:00
context Decouple the different contexts from each other () 2023-05-21 09:50:53 +08:00
convert Add the ability to pin Issues () 2023-05-25 15:17:19 +02:00
cron Add Cargo package registry () 2023-02-05 18:12:31 +08:00
externalaccount Implement FSFE REUSE for golang files () 2022-11-27 18:20:29 +00:00
forms Support changing labels of Actions runner without re-registration () 2023-06-13 22:28:31 +08:00
gitdiff Display file mode for new file and file mode changes () 2023-05-29 19:56:08 +02:00
issue Add codeowners feature () 2023-06-08 16:56:05 +08:00
lfs Fix all possible setting error related storages and added some tests () 2023-06-14 11:42:38 +08:00
mailer Improve queue and logger context () 2023-05-26 07:31:55 +00:00
markup Decouple the different contexts from each other () 2023-05-21 09:50:53 +08:00
migrations Update github.com/google/go-github to v53 () 2023-06-09 19:42:51 +00:00
mirror Use the type RefName for all the needed places and fix pull mirror sync bugs () 2023-05-26 01:04:48 +00:00
org Refactor rename user and rename organization () 2023-05-21 23:13:47 +08:00
packages Add CRAN package registry () 2023-05-22 10:57:49 +08:00
pull Add codeowners feature () 2023-06-08 16:56:05 +08:00
release Use the type RefName for all the needed places and fix pull mirror sync bugs () 2023-05-26 01:04:48 +00:00
repository Fix profile render when the README.md size is larger than 1024 bytes () 2023-06-13 09:02:25 +00:00
task Improve queue and logger context () 2023-05-26 07:31:55 +00:00
user Refactor rename user and rename organization () 2023-05-21 23:13:47 +08:00
webhook Fix compatible for webhook ref type () 2023-06-13 06:05:28 +00:00
wiki Improve wiki user title test () 2023-05-06 11:24:18 +00:00