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/modules
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 Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
activitypub Add Chef package registry (#22554) 2 years ago
analyze
assetfs Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
auth Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
avatar Improve avatar uploading / resizing / compressing, remove Fomantic card module (#24653) 2 years ago
base Use a general Eval function for expressions in templates. (#23927) 2 years ago
cache Update redis library to support redis v7 (#24114) 2 years ago
charset Update go tool dependencies, restructure lint targets (#24239) 2 years ago
container
context Fix open redirect check for more cases (#25143) 2 years ago
csv Refactor locale number (#24134) 2 years ago
doctor Rewrite logger system (#24726) 2 years ago
emoji
eventsource
generate
git Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
gitgraph Add context cache as a request level cache (#22294) 2 years ago
graceful Improve queue and logger context (#24924) 2 years ago
hcaptcha
highlight test_env: hardcode major go version in use (#23464) 2 years ago
hostmatcher
html
httpcache Use standard HTTP library to serve files (#24693) 2 years ago
httplib Use standard HTTP library to serve files (#24693) 2 years ago
indexer Improve queue and logger context (#24924) 2 years ago
issue/template
json
label Make label templates have consistent behavior and priority (#23749) 2 years ago
lfs Rewrite logger system (#24726) 2 years ago
log Improve logger Pause handling (#24946) 2 years ago
markup Fix task list checkbox toggle to work with YAML front matter (#25184) 2 years ago
mcaptcha
metrics Use a separate admin page to show global stats, remove `actions` stat (#25062) 2 years ago
migration Scoped labels (#22585) 2 years ago
mirror Improve queue and logger context (#24924) 2 years ago
nosql Update redis library to support redis v7 (#24114) 2 years ago
notification Rename NotifyPullReviewRequest to NotifyPullRequestReviewRequest (#24988) 2 years ago
options Use a general approach to access custom/static/builtin assets (#24022) 2 years ago
packages Add CRAN package registry (#22331) 2 years ago
paginator Use more specific test methods (#24265) 2 years ago
pprof
private Use the type RefName for all the needed places and fix pull mirror sync bugs (#24634) 2 years ago
process Do not output "Trace" level logs from process manager by default (#24952) 2 years ago
proxy Use proxy for pull mirror (#22771) 2 years ago
proxyprotocol
public Use standard HTTP library to serve files (#24693) 2 years ago
queue Help to recover from corrupted levelqueue (#24912) 2 years ago
recaptcha
references
regexplru
repository Remove stars when repo goes private (#19904) 2 years ago
secret Improve decryption failure message (#24573) 2 years ago
session Update redis library to support redis v7 (#24114) 2 years ago
setting Fix all possible setting error related storages and added some tests (#23911) 2 years ago
sitemap
ssh Rewrite logger system (#24726) 2 years ago
storage Fix all possible setting error related storages and added some tests (#23911) 2 years ago
structs fix swagger documentation for multiple files API endpoint (#25110) 2 years ago
svg Use inline SVG for built-in OAuth providers (#25171) 2 years ago
sync
system
templates Remove the service worker (#25010) 2 years ago
test Fix admin config page error, use tests to cover the admin config and 500 error page (#24965) 2 years ago
testlogger Rewrite logger system (#24726) 2 years ago
timeutil Fix incorrect webhook time and use relative-time to display it (#24477) 2 years ago
translation Refactor INI package (first step) (#25024) 2 years ago
turnstile Add new captcha: cloudflare turnstile (#22369) 2 years ago
typesniffer Do not recognize text files as audio (#23355) 2 years ago
updatechecker
upload
uri
user
util Fix profile render when the README.md size is larger than 1024 bytes (#25131) 2 years ago
validation Map OIDC groups to Orgs/Teams (#21441) 2 years ago
web Fix install page context, make the install page tests really test (#24858) 2 years ago
webhook New webhook trigger for receiving Pull Request review requests (#24481) 2 years ago