Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxiaoguang
52fb936773
Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" ( #25974 )
...
Replace #25892
Close #21942
Close #25464
Major changes:
1. Serve "robots.txt" and ".well-known/security.txt" in the "public"
custom path
* All files in "public/.well-known" can be served, just like
"public/assets"
3. Add a test for ".well-known/security.txt"
4. Simplify the "FileHandlerFunc" logic, now the paths are consistent so
the code can be simpler
5. Add CORS header for ".well-known" endpoints
6. Add logs to tell users they should move some of their legacy custom
public files
```
2023/07/19 13:00:37 cmd/web.go:178:serveInstalled() [E] Found legacy public asset "img" in CustomPath. Please move it to /work/gitea/custom/public/assets/img
2023/07/19 13:00:37 cmd/web.go:182:serveInstalled() [E] Found legacy public asset "robots.txt" in CustomPath. Please move it to /work/gitea/custom/public/robots.txt
```
This PR is not breaking.
---------
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
2 years ago
..
actions
Fix `ref` for workflows triggered by `pull_request_target` ( #25743 )
2 years ago
activitypub
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
2 years ago
analyze
…
assetfs
Skip unuseful error message in dev mode when watching local filesystem ( #25919 )
2 years ago
auth
…
avatar
Remove nfnt/resize and oliamb/cutter ( #25999 )
2 years ago
base
Replace `interface{}` with `any` ( #25686 )
2 years ago
cache
Upgrade go dependencies ( #25819 )
2 years ago
charset
Replace `interface{}` with `any` ( #25686 )
2 years ago
container
…
context
Use frontend fetch for branch dropdown component ( #25719 )
2 years ago
csv
…
doctor
Upgrade go dependencies ( #25819 )
2 years ago
emoji
Update emoji set to Unicode 15 ( #25595 )
2 years ago
eventsource
Less naked returns ( #25713 )
2 years ago
generate
Bump github.com/golang-jwt/jwt to v5 ( #25975 )
2 years ago
git
Remove `git.FileBlame` ( #25841 )
2 years ago
gitgraph
…
graceful
Replace `interface{}` with `any` ( #25686 )
2 years ago
hcaptcha
…
highlight
Upgrade go dependencies ( #25819 )
2 years ago
hostmatcher
…
html
Replace `interface{}` with `any` ( #25686 )
2 years ago
httpcache
Less naked returns ( #25713 )
2 years ago
httplib
Less naked returns ( #25713 )
2 years ago
indexer
Add open/closed field support for issue index ( #25708 )
2 years ago
issue/ template
Replace `interface{}` with `any` ( #25686 )
2 years ago
json
Replace `interface{}` with `any` ( #25686 )
2 years ago
label
…
lfs
Rewrite logger system ( #24726 )
2 years ago
log
Fix sub-command log level ( #25537 )
2 years ago
markup
Disallow dangerous url schemes ( #25960 )
2 years ago
mcaptcha
…
metrics
Use a separate admin page to show global stats, remove `actions` stat ( #25062 )
2 years ago
migration
Replace `interface{}` with `any` ( #25686 )
2 years ago
mirror
Improve queue and logger context ( #24924 )
2 years ago
nosql
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
2 years ago
notification
Add Adopt repository event and handler ( #25497 )
2 years ago
options
…
packages
Add support for different Maven POM encoding ( #25873 )
2 years ago
paginator
Use more specific test methods ( #24265 )
2 years ago
pprof
…
private
Replace `interface{}` with `any` ( #25686 )
2 years ago
process
Less naked returns ( #25713 )
2 years ago
proxy
…
proxyprotocol
…
public
Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" ( #25974 )
2 years ago
queue
Update tool dependencies, lock govulncheck and actionlint ( #25655 )
2 years ago
recaptcha
…
references
…
regexplru
Upgrade go dependencies ( #25819 )
2 years ago
repository
Support copy protected branch from template repository ( #25889 )
2 years ago
secret
Improve decryption failure message ( #24573 )
2 years ago
session
Replace `interface{}` with `any` ( #25686 )
2 years ago
setting
Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" ( #25974 )
2 years ago
sitemap
…
ssh
Refactor path & config system ( #25330 )
2 years ago
storage
Replace `interface{}` with `any` ( #25686 )
2 years ago
structs
Remove commit status running and warning to align GitHub ( #25839 )
2 years ago
svg
Move public asset files to the proper directory ( #25907 )
2 years ago
sync
…
system
…
templates
Replace `interface{}` with `any` ( #25686 )
2 years ago
test
Replace `interface{}` with `any` ( #25686 )
2 years ago
testlogger
Replace `interface{}` with `any` ( #25686 )
2 years ago
timeutil
Fix incorrect webhook time and use relative-time to display it ( #24477 )
2 years ago
translation
Replace `interface{}` with `any` ( #25686 )
2 years ago
turnstile
…
typesniffer
…
updatechecker
…
upload
…
uri
…
user
…
util
Less naked returns ( #25713 )
2 years ago
validation
Replace `interface{}` with `any` ( #25686 )
2 years ago
web
Remove redundant "RouteMethods" method ( #26024 )
2 years ago
webhook
New webhook trigger for receiving Pull Request review requests ( #24481 )
2 years ago