Git with a cup of tea, painless self-hosted git service
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
..
administration
Serve pre-defined files in "public", add "security.txt", add CORS header for ".well-known" ( #25974 )
2 years ago
contributing
Change branch name from master to main in some documents' links ( #25126 )
3 years ago
development
Move public asset files to the proper directory ( #25907 )
2 years ago
help
Update path related documents ( #25417 )
2 years ago
installation
Correctly refer to dev tags as nightly in the docker docs ( #26004 )
2 years ago
usage
RPM Registry: Show zypper commands for SUSE based distros as well ( #25981 )
2 years ago
actions.en-us.md
Docs for Gitea Actions ( #24405 )
3 years ago
administration.en-us.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
administration.fr-fr.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
administration.zh-cn.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
administration.zh-tw.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
contributing.en-us.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
contributing.fr-fr.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
contributing.zh-tw.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
development.en-us.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
development.zh-cn.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
development.zh-tw.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
help.en-us.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
help.fr-fr.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
help.zh-cn.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
help.zh-tw.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
installation.en-us.md
…
installation.fr-fr.md
…
installation.zh-cn.md
…
installation.zh-tw.md
…
packages.en-us.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
search.de-de.md
Refactor docs ( #23752 )
3 years ago
search.en-us.md
Refactor docs ( #23752 )
3 years ago
search.fr-fr.md
Refactor docs ( #23752 )
3 years ago
search.nl-nl.md
Refactor docs ( #23752 )
3 years ago
search.pt-br.md
Refactor docs ( #23752 )
3 years ago
search.zh-cn.md
Refactor docs ( #23752 )
3 years ago
search.zh-tw.md
Refactor docs ( #23752 )
3 years ago
usage.en-us.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
usage.zh-cn.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago
usage.zh-tw.md
Restructure documentation. Now the documentation has installation, administration, usage, development, contributing the 5 main parts ( #23629 )
3 years ago