转到文件
Giteabot 7eaf7907d7
Fix HEAD method for robots.txt (#30603) (#30605)
Backport #30603 by @wxiaoguang

Fix #30601


```
~$ curl --head localhost:3000/robots.txt
HTTP/1.1 200 OK
Accept-Ranges: bytes
Cache-Control: max-age=0, private, must-revalidate
Content-Length: 5
Content-Type: text/plain; charset=utf-8
Last-Modified: Wed, 19 Jul 2023 04:56:12 GMT
X-Gitea-Debug: RUN_MODE=dev
Date: Fri, 19 Apr 2024 12:59:44 GMT
```

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2024-04-19 22:32:49 +02:00
.devcontainer Switch to the maintained vitest extension (#29914) 2024-03-20 00:08:42 +01:00
.gitea Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
.github Enable npm cache on `setup-node` action (#30577) (#30586) 2024-04-19 09:16:42 +02:00
assets Upgrade Go 1.22 and upgrade dependency (#29869) 2024-03-17 15:40:05 +00:00
build move some scripts from 'build' to 'tools' directory, misc refactors (#29844) 2024-03-17 23:12:36 +01:00
cmd Improve "must-change-password" logic and document (#30472) (#30478) 2024-04-14 17:49:16 +00:00
contrib gitea.service: Remove syslog.target (#29550) 2024-03-02 18:44:43 -05:00
custom/conf Fixup app.example.ini for task section, which is now queue.task (#30555) (#30563) 2024-04-18 15:16:01 +02:00
docker Dockerfile small refactor (#27757) 2023-10-29 09:44:06 +08:00
docs Fixup app.example.ini for task section, which is now queue.task (#30555) (#30563) 2024-04-18 15:16:01 +02:00
models Improve "must-change-password" logic and document (#30472) (#30478) 2024-04-14 17:49:16 +00:00
modules Avoid importing `modules/web/middleware` in `modules/session` (#30584) (#30589) 2024-04-19 07:44:24 +00:00
options Render embedded code preview by permlink in markdown (#30234) (#30249) 2024-04-03 02:20:16 +08:00
public Update various logos and unify their filenames (#29637) 2024-03-06 22:20:05 +00:00
routers Fix HEAD method for robots.txt (#30603) (#30605) 2024-04-19 22:32:49 +02:00
services Fix branch_protection api shows users/teams who has no readAccess (#30291) (#30544) 2024-04-17 13:50:49 +00:00
snap bump to use go 1.22 (#29119) 2024-02-14 18:19:57 +00:00
templates Improve "Reference in new issue" modal (#30547) (#30574) 2024-04-18 19:58:37 +00:00
tests Run `go generate` and `go vet` on all packages (#30529) (#30541) 2024-04-17 13:34:30 +02:00
tools Add svg linter and fix incorrect svgs (#30086) 2024-03-26 11:19:15 +00:00
web_src Improve "Reference in new issue" modal (#30547) (#30574) 2024-04-18 19:58:37 +00:00
.air.toml Exclude `routers/private/tests` from air (#29949) 2024-03-21 02:17:59 +00:00
.changelog.yml Adapt `.changelog.yml` to new labeling system (#27701) 2023-10-20 00:22:00 +02:00
.dockerignore Adjust VS Code debug filename match in .gitignore (#30158) 2024-03-28 11:24:30 -04:00
.editorconfig Add markdownlint (#20512) 2022-07-28 09:22:47 +08:00
.eslintrc.yaml Rewrite and restyle reaction selector and enable no-sizzle eslint rule (#30453) (#30473) 2024-04-14 11:58:48 +00:00
.gitattributes Move public asset files to the proper directory (#25907) 2023-07-18 18:06:43 +02:00
.gitignore move some scripts from 'build' to 'tools' directory, misc refactors (#29844) 2024-03-17 23:12:36 +01:00
.gitpod.yml Switch to the maintained vitest extension (#29914) 2024-03-20 00:08:42 +01:00
.golangci.yml Remove go versions from .golangci.yml (#27953) 2023-11-07 22:03:27 +01:00
.ignore Add `/public/assets` to `.ignore` (#26232) 2023-07-30 12:34:20 +02:00
.markdownlint.yaml Enable markdownlint `no-trailing-punctuation` and `no-blanks-blockquote` (#29214) 2024-02-17 13:18:05 +00:00
.npmrc Upgrade to npm lockfile v3 and explicitely set it (#23561) 2023-03-18 19:38:10 +01:00
.spectral.yaml Add spectral linter for Swagger (#20321) 2022-07-11 18:07:16 -05:00
.stylelintrc.yaml Enable a few stylelint rules (#30038) 2024-03-24 08:14:48 +01:00
.yamllint.yaml fully replace drone with actions (#27556) 2023-10-11 06:39:32 +00:00
BSDmakefile Fix build errors on BSD (in BSDMakefile) (#27594) 2023-10-13 15:38:27 +00:00
CHANGELOG.md Adjust changelog for v1.21.6 to move prs to correct labels (#29339) (#29343) 2024-02-23 12:09:18 +01:00
CODE_OF_CONDUCT.md Add Gitea Community Code of Conduct (#23188) 2023-03-09 10:49:34 +08:00
CONTRIBUTING.md Document that all unmerged feature PRs will be moved to next milestone when the feature freeze time comes (#29578) 2024-03-04 13:51:12 +00:00
DCO Remove address from DCO (#22595) 2023-01-24 18:52:38 +00:00
Dockerfile bump to use go 1.22 (#29119) 2024-02-14 18:19:57 +00:00
Dockerfile.rootless bump to use go 1.22 (#29119) 2024-02-14 18:19:57 +00:00
LICENSE Fix typo 2016-11-08 08:42:05 +01:00
MAINTAINERS Apply to become a maintainer (#30151) 2024-03-28 02:47:05 +00:00
Makefile Run `go generate` and `go vet` on all packages (#30529) (#30541) 2024-04-17 13:34:30 +02:00
README.md Remove codecov badge (#29950) 2024-03-21 10:08:06 +08:00
README_ZH.md Remove codecov badge (#29950) 2024-03-21 10:08:06 +08:00
SECURITY.md fix wording in SECURITY.md (#27463) 2023-10-06 05:17:29 +08:00
build.go User/Org Feed render description as per web (#23887) 2023-04-04 04:39:47 +01:00
go.mod Upgrade `golang.org/x/net` to v0.24.0 (#30283) (#30286) 2024-04-05 05:31:04 +02:00
go.sum Upgrade `golang.org/x/net` to v0.24.0 (#30283) (#30286) 2024-04-05 05:31:04 +02:00
main.go Fix incorrect CLI exit code and duplicate error message (#26346) 2023-08-05 23:36:45 +08:00
package-lock.json Bump `@github/relative-time-element` to v4.4.0 (#30154) 2024-03-28 10:42:08 +01:00
package.json Bump `@github/relative-time-element` to v4.4.0 (#30154) 2024-03-28 10:42:08 +01:00
playwright.config.js Enforce trailing comma in JS on multiline (#30002) 2024-03-22 14:06:53 +00:00
poetry.lock Update JS any PY dependencies, remove workarounds (#30085) 2024-03-26 09:41:40 +00:00
poetry.toml Clean up pyproject.toml and package.json, fix poetry options (#25327) 2023-06-18 18:13:08 +00:00
pyproject.toml Update js and py dependencies, bump python (#29561) 2024-03-03 17:23:14 +01:00
tailwind.config.js Migrate font-family to tailwind (#30118) 2024-03-28 08:31:07 +00:00
updates.config.js Configure pinned JS dependencies via updates.config.js (#29696) 2024-03-13 08:43:58 +00:00
vitest.config.js Switch to happy-dom for testing (#29948) 2024-03-21 14:05:24 +00:00
webpack.config.js Update JS any PY dependencies, remove workarounds (#30085) 2024-03-26 09:41:40 +00:00

README_ZH.md

Gitea

Contribute with Gitpod

View this document in English

目标

Gitea 的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用 Go 作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了 x86,amd64,还包括 ARM 和 PowerPC。

如果你想试用在线演示,请访问 try.gitea.io

如果你想使用免费的 Gitea 服务(有仓库数量限制),请访问 gitea.com

如果你想在 Gitea Cloud 上快速部署你自己独享的 Gitea 实例,请访问 cloud.gitea.com 开始免费试用。

提示

  1. 开始贡献代码之前请确保你已经看过了 贡献者向导(英文).
  2. 所有的安全问题,请私下发送邮件给 security@gitea.io。谢谢!
  3. 如果你要使用API,请参见 API 文档.

文档

关于如何安装请访问我们的 文档站,如果没有找到对应的文档,你也可以通过 Discord - 英文 和 QQ群 328432459 来和我们交流。

贡献流程

Fork -> Patch -> Push -> Pull Request

翻译

多语言翻译是基于Crowdin进行的. Crowdin

作者

授权许可

本项目采用 MIT 开源授权许可证,完整的授权说明已放置在 LICENSE 文件中。

截图

Dashboard User Profile Global Issues
Branches Web Editor Activity
New Migration Migrating Pull Request View
Pull Request Dark Diff Review Dark Diff Dark