mirror of https://github.com/go-gitea/gitea.git
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.
52fb936773
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.go | 2 years ago | |
actions_test.go | 2 years ago | |
admin.go | 2 years ago | |
api.go | 2 years ago | |
asset_dynamic.go | 2 years ago | |
asset_static.go | 2 years ago | |
attachment.go | 2 years ago | |
attachment_test.go | 2 years ago | |
cache.go | 2 years ago | |
camo.go | 2 years ago | |
config_env.go | 2 years ago | |
config_env_test.go | 2 years ago | |
config_provider.go | 2 years ago | |
config_provider_test.go | 2 years ago | |
cors.go | 2 years ago | |
cron.go | 2 years ago | |
cron_test.go | 2 years ago | |
database.go | 2 years ago | |
database_sqlite.go | 2 years ago | |
database_test.go | 2 years ago | |
federation.go | 2 years ago | |
git.go | 2 years ago | |
git_test.go | 2 years ago | |
highlight.go | 2 years ago | |
i18n.go | 2 years ago | |
incoming_email.go | 2 years ago | |
indexer.go | 2 years ago | |
indexer_test.go | 2 years ago | |
lfs.go | 2 years ago | |
lfs_test.go | 2 years ago | |
log.go | 2 years ago | |
log_test.go | 2 years ago | |
mailer.go | 2 years ago | |
mailer_test.go | 2 years ago | |
markup.go | 2 years ago | |
metrics.go | 2 years ago | |
migrations.go | 2 years ago | |
mime_type_map.go | 2 years ago | |
mirror.go | 2 years ago | |
oauth2.go | 2 years ago | |
other.go | 2 years ago | |
packages.go | 2 years ago | |
packages_test.go | 2 years ago | |
path.go | 2 years ago | |
path_test.go | 2 years ago | |
picture.go | 2 years ago | |
project.go | 2 years ago | |
proxy.go | 2 years ago | |
queue.go | 2 years ago | |
repository.go | 2 years ago | |
repository_archive.go | 2 years ago | |
repository_archive_test.go | 2 years ago | |
security.go | 2 years ago | |
server.go | 2 years ago | |
service.go | 2 years ago | |
service_test.go | 2 years ago | |
session.go | 2 years ago | |
setting.go | 2 years ago | |
setting_test.go | 2 years ago | |
ssh.go | 2 years ago | |
storage.go | 2 years ago | |
storage_test.go | 2 years ago | |
task.go | 2 years ago | |
time.go | 2 years ago | |
ui.go | 2 years ago | |
webhook.go | 2 years ago |