mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-15 12:33:45 +09:00
Compare commits
148 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8ceb78caad | ||
|
|
4dccac3dbf | ||
|
|
73e70f3c44 | ||
|
|
499257d81e | ||
|
|
84fa30e3d5 | ||
|
|
f1a0b64109 | ||
|
|
bfdbc626cb | ||
|
|
3abbf5fc21 | ||
|
|
d9d3f5234e | ||
|
|
7d7ba76c08 | ||
|
|
e76b3f72b2 | ||
|
|
4bc6bfb476 | ||
|
|
5999349ce7 | ||
|
|
e301e26d7a | ||
|
|
d2efd2bf73 | ||
|
|
89297c9355 | ||
|
|
d2328c4051 | ||
|
|
af5d66b341 | ||
|
|
912a418920 | ||
|
|
cc7a4f17e0 | ||
|
|
5f82011b7c | ||
|
|
1bbbeb24ef | ||
|
|
1254a8271e | ||
|
|
ef3e3afc05 | ||
|
|
b1094ff28c | ||
|
|
8044d87c18 | ||
|
|
1b8e36587e | ||
|
|
a2f52f3561 | ||
|
|
65de747b13 | ||
|
|
7e86dffc35 | ||
|
|
7297cceda7 | ||
|
|
077160b838 | ||
|
|
da4448421e | ||
|
|
5ccb626cda | ||
|
|
b00f7c3c54 | ||
|
|
51fd730147 | ||
|
|
7117355169 | ||
|
|
d5f2c9d74d | ||
|
|
95c2cb4b79 | ||
|
|
7d717e22a8 | ||
|
|
dc66ceadac | ||
|
|
8cd5483e8a | ||
|
|
2e6e5bc9c9 | ||
|
|
f134229bf2 | ||
|
|
3d3c740636 | ||
|
|
c4f569b9a5 | ||
|
|
03b6e7900b | ||
|
|
463e144d97 | ||
|
|
2b32f8b95f | ||
|
|
94fbd44bac | ||
|
|
494e373292 | ||
|
|
10f93995e9 | ||
|
|
67a73dd05f | ||
|
|
893c97dd71 | ||
|
|
447fa6715c | ||
|
|
2398a23562 | ||
|
|
93c7611c32 | ||
|
|
607801ec41 | ||
|
|
16d2cf05ab | ||
|
|
d562b419b6 | ||
|
|
5482602ba8 | ||
|
|
37d3e0ec33 | ||
|
|
29724f31c5 | ||
|
|
580da8f353 | ||
|
|
8644993699 | ||
|
|
f55fe989a4 | ||
|
|
27dbe97542 | ||
|
|
abf0386e2e | ||
|
|
2b10eebed8 | ||
|
|
695738fb31 | ||
|
|
cfde557e23 | ||
|
|
3dbc63777f | ||
|
|
4aabd8e823 | ||
|
|
6a5b8eb7b6 | ||
|
|
a00e473341 | ||
|
|
4019a6d4b2 | ||
|
|
0487e39f82 | ||
|
|
3a7cb1a83b | ||
|
|
f317186aa6 | ||
|
|
5b7df68555 | ||
|
|
833a4b1775 | ||
|
|
1b8ecd179b | ||
|
|
085b56302c | ||
|
|
5066b208de | ||
|
|
ac658bb92c | ||
|
|
001d3fb820 | ||
|
|
8092251133 | ||
|
|
55239cbab7 | ||
|
|
df74ee0376 | ||
|
|
8d88f148d7 | ||
|
|
7bfab90a8f | ||
|
|
1a8da2e08f | ||
|
|
7c180ff8eb | ||
|
|
c34f7cdb1a | ||
|
|
fd0baf637d | ||
|
|
dff3ce089d | ||
|
|
9836b7db7b | ||
|
|
d752f0d7d0 | ||
|
|
669c76c0fd | ||
|
|
ac57ec5c47 | ||
|
|
f6dab64412 | ||
|
|
847f0bb9f3 | ||
|
|
1886bd6a01 | ||
|
|
7e07f5c4dc | ||
|
|
799536db46 | ||
|
|
c68650a7fb | ||
|
|
fe7caa05cc | ||
|
|
026167f854 | ||
|
|
8abfbe2165 | ||
|
|
16bfe983c2 | ||
|
|
503af4b807 | ||
|
|
8b3dd7de5d | ||
|
|
a04535e212 | ||
|
|
a1460333dc | ||
|
|
d15f20b2d2 | ||
|
|
863da7d5a1 | ||
|
|
1cad923b36 | ||
|
|
edb6ba28f1 | ||
|
|
494721cc90 | ||
|
|
d27e693ecf | ||
|
|
81a995cd84 | ||
|
|
d977e7ec10 | ||
|
|
b73d1ac1eb | ||
|
|
428d26d4a8 | ||
|
|
a254c26df9 | ||
|
|
1fed0e1adc | ||
|
|
88a652fa92 | ||
|
|
35039b8563 | ||
|
|
62afc0a727 | ||
|
|
b6a2323981 | ||
|
|
f23b587fe7 | ||
|
|
305cac291d | ||
|
|
6705b215db | ||
|
|
a9b4aa4cc4 | ||
|
|
1faa39b44c | ||
|
|
780f71c4ca | ||
|
|
484cb22f14 | ||
|
|
2a70473af7 | ||
|
|
a28863bff7 | ||
|
|
162f2841d0 | ||
|
|
e7a5429d7a | ||
|
|
622d21691c | ||
|
|
774b37b9f8 | ||
|
|
9dfdfe2389 | ||
|
|
4439a68911 | ||
|
|
782c376c8b | ||
|
|
a3b917151c | ||
|
|
0732ba32ee |
16
.drone.yml
16
.drone.yml
@@ -1162,7 +1162,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: dev-linux-amd64
|
tags: nightly-linux-amd64
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@@ -1184,7 +1184,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: dev-linux-amd64-rootless
|
tags: nightly-linux-amd64-rootless
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@@ -1233,7 +1233,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64
|
tags: ${DRONE_BRANCH##release/v}-nightly-linux-amd64
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@@ -1255,7 +1255,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-amd64-rootless
|
tags: ${DRONE_BRANCH##release/v}-nightlf-linux-amd64-rootless
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@@ -1487,7 +1487,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: dev-linux-arm64
|
tags: nightly-linux-arm64
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@@ -1509,7 +1509,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: dev-linux-arm64-rootless
|
tags: nightly-linux-arm64-rootless
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@@ -1558,7 +1558,7 @@ steps:
|
|||||||
pull: always
|
pull: always
|
||||||
settings:
|
settings:
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64
|
tags: ${DRONE_BRANCH##release/v}-nightly-linux-arm64
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
@@ -1580,7 +1580,7 @@ steps:
|
|||||||
settings:
|
settings:
|
||||||
dockerfile: Dockerfile.rootless
|
dockerfile: Dockerfile.rootless
|
||||||
auto_tag: false
|
auto_tag: false
|
||||||
tags: ${DRONE_BRANCH##release/v}-dev-linux-arm64-rootless
|
tags: ${DRONE_BRANCH##release/v}-nightly-linux-arm64-rootless
|
||||||
repo: gitea/gitea
|
repo: gitea/gitea
|
||||||
build_args:
|
build_args:
|
||||||
- GOPROXY=https://goproxy.io
|
- GOPROXY=https://goproxy.io
|
||||||
|
|||||||
151
CHANGELOG.md
151
CHANGELOG.md
@@ -4,7 +4,156 @@ This changelog goes through all the changes that have been made in each release
|
|||||||
without substantial changes to our git log; to see the highlights of what has
|
without substantial changes to our git log; to see the highlights of what has
|
||||||
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
been added to each release, please refer to the [blog](https://blog.gitea.io).
|
||||||
|
|
||||||
## [1.19.0](https://github.com/go-gitea/gitea/releases/tag/1.19.0) - 2023-03-19
|
## [1.19.3](https://github.com/go-gitea/gitea/releases/tag/1.19.3) - 2023-05-03
|
||||||
|
|
||||||
|
* SECURITY
|
||||||
|
* Use golang 1.20.4 to fix CVE-2023-24539, CVE-2023-24540, and CVE-2023-29400
|
||||||
|
* ENHANCEMENTS
|
||||||
|
* Enable whitespace rendering on selection in Monaco (#24444) (#24485)
|
||||||
|
* Improve milestone filter on issues page (#22423) (#24440)
|
||||||
|
* BUGFIXES
|
||||||
|
* Fix api error message if fork exists (#24487) (#24493)
|
||||||
|
* Fix user-cards format (#24428) (#24431)
|
||||||
|
* Fix incorrect CurrentUser check for docker rootless (#24435)
|
||||||
|
* Getting the tag list does not require being signed in (#24413) (#24416)
|
||||||
|
|
||||||
|
## [1.19.2](https://github.com/go-gitea/gitea/releases/tag/1.19.2) - 2023-04-26
|
||||||
|
|
||||||
|
* SECURITY
|
||||||
|
* Require repo scope for PATs for private repos and basic authentication (#24362) (#24364)
|
||||||
|
* Only delete secrets belonging to its owner (#24284) (#24286)
|
||||||
|
* API
|
||||||
|
* Fix typo in API route (#24310) (#24332)
|
||||||
|
* Fix access token issue on some public endpoints (#24194) (#24259)
|
||||||
|
* ENHANCEMENTS
|
||||||
|
* Fix broken clone script on an empty archived repo (#24339) (#24348)
|
||||||
|
* Fix Monaco IOS keyboard button (#24341) (#24347)
|
||||||
|
* Don't set meta `theme-color` by default (#24340) (#24346)
|
||||||
|
* Wrap too long push mirror addresses (#21120) (#24334)
|
||||||
|
* Add --font-weight-bold and set previous bold to 601 (#24307) (#24331)
|
||||||
|
* Unify nightly naming across binaries and docker images (#24116) (#24308)
|
||||||
|
* Fix footer display (#24251) (#24269)
|
||||||
|
* Fix label color, fix divider in dropdown (#24215) (#24244)
|
||||||
|
* Vertical widths of containers removed (#24184) (#24211)
|
||||||
|
* Use correct locale key for forks page (#24172) (#24175)
|
||||||
|
* Sort repo topic labels by name (#24123) (#24153)
|
||||||
|
* Highlight selected file in the PR file tree (#23947) (#24126)
|
||||||
|
* BUGFIXES
|
||||||
|
* Fix auth check bug (#24382) (#24387)
|
||||||
|
* Add tags list for repos whose release setting is disabled (#23465) (#24369)
|
||||||
|
* Fix wrong error info in RepoRefForAPI (#24344) (#24351)
|
||||||
|
* Fix no edit/close/delete button in org repo project view page (#24349)
|
||||||
|
* Respect the REGISTER_MANUAL_CONFIRM setting when registering via OIDC (#24035) (#24333)
|
||||||
|
* Remove org users who belong to no teams (#24247) (#24313)
|
||||||
|
* Fix bug when deleting wiki with no code write permission (#24274) (#24295)
|
||||||
|
* Handle canceled workflow as a warning instead of a fail (#24282) (#24292)
|
||||||
|
* Load reviewer for comments when dismissing a review (#24281) (#24288)
|
||||||
|
* Show commit history for closed/merged PRs (#24238) (#24261)
|
||||||
|
* Fix owner team access mode value in team_unit table (#24224)
|
||||||
|
* Fix issue attachment handling (#24202) (#24221)
|
||||||
|
* Fix incorrect CORS default values (#24206) (#24217)
|
||||||
|
* Fix template error in pull request with deleted head repo (#24192) (#24216)
|
||||||
|
* Don't list root repository on compare page if pulls not allowed (#24183) (#24210)
|
||||||
|
* Fix calReleaseNumCommitsBehind (#24148) (#24197)
|
||||||
|
* Fix Org edit page bugs: renaming detection, maxlength (#24161) (#24171)
|
||||||
|
* Update redis library to support redis v7 (#24114) (#24156)
|
||||||
|
* Use 1.18's aria role for dropdown menus (#24144) (#24155)
|
||||||
|
* Fix 2-dot direct compare to use the right base commit (#24133) (#24150)
|
||||||
|
* Fix incorrect server error content in RunnersList (#24118) (#24121)
|
||||||
|
* Fix mismatch between hook events and github event types (#24048) (#24091)
|
||||||
|
* BUILD
|
||||||
|
* Support converting varchar to nvarchar for mssql database (#24105) (#24168)
|
||||||
|
|
||||||
|
## [1.19.1](https://github.com/go-gitea/gitea/releases/tag/v1.19.1) - 2023-04-12
|
||||||
|
|
||||||
|
* BREAKING
|
||||||
|
* Rename actions unit to `repo.actions` and add docs for it (#23733) (#23881)
|
||||||
|
* ENHANCEMENTS
|
||||||
|
* Add card type to org/user level project on creation, edit and view (#24043) (#24066)
|
||||||
|
* Refactor commit status for Actions jobs (#23786) (#24060)
|
||||||
|
* Show errors for KaTeX and mermaid on the preview tab (#24009) (#24019)
|
||||||
|
* Show protected branch rule names again (#23907) (#24018)
|
||||||
|
* Adjust sticky PR header to cover background (#23956) (#23999)
|
||||||
|
* Discolor pull request tab labels (#23950) (#23987)
|
||||||
|
* Treat PRs with agit flow as fork PRs when triggering actions. (#23884) (#23967)
|
||||||
|
* Left-align review comments (#23937)
|
||||||
|
* Fix image border-radius (#23886) (#23930)
|
||||||
|
* Scroll collapsed file into view (#23702) (#23929)
|
||||||
|
* Fix code view (diff) broken layout (#23096) (#23918)
|
||||||
|
* Org pages style fixes (#23901) (#23914)
|
||||||
|
* Fix user profile description rendering (#23882) (#23902)
|
||||||
|
* Fix review box viewport overflow issue (#23800) (#23898)
|
||||||
|
* Prefill input values in OAuth settings as intended (#23829) (#23871)
|
||||||
|
* CSS color tweaks (#23828) (#23842)
|
||||||
|
* Fix incorrect visibility dropdown list in add/edit user page (#23804) (#23833)
|
||||||
|
* Add CSS rules for basic colored labels (#23774) (#23777)
|
||||||
|
* Add creation time in tag list page (#23693) (#23773)
|
||||||
|
* Fix br display for packages curls (#23737) (#23764)
|
||||||
|
* Fix issue due date edit toggle bug (#23723) (#23758)
|
||||||
|
* Improve commit graph page UI alignment (#23751) (#23754)
|
||||||
|
* Use GitHub Actions compatible globbing for `branches`, `tag`, `path` filter (#22804) (#23740)
|
||||||
|
* Redirect to project again after editing it (#23326) (#23739)
|
||||||
|
* Remove row clicking from notification table (#22695) (#23706)
|
||||||
|
* Remove conflicting CSS rules on notifications, improve notifications table (#23565) (#23621)
|
||||||
|
* Fix diff tree height and adjust target file style (#23616)
|
||||||
|
* BUGFIXES
|
||||||
|
* Improve error logging for LFS (#24072) (#24082)
|
||||||
|
* Fix custom mailer template on Windows platform (#24081)
|
||||||
|
* Update the value of `diffEnd` when clicking the `Show More` button in the DiffFileTree (#24069) (#24078)
|
||||||
|
* Make label templates have consistent behavior and priority (#23749)
|
||||||
|
* Fix accidental overwriting of LDAP team memberships (#24050) (#24065)
|
||||||
|
* Fix branch protection priority (#24045) (#24061)
|
||||||
|
* Use actions job link as commit status URL instead of run link (#24023) (#24032)
|
||||||
|
* Add actions support to package auth verification (#23729) (#24028)
|
||||||
|
* Fix protected branch for API (#24013) (#24027)
|
||||||
|
* Do not escape space between PyPI repository URL and package name… (#23981) (#24008)
|
||||||
|
* Fix redirect bug when creating issue from a project (#23971) (#23997)
|
||||||
|
* Set `ref` to fully-formed of the tag when trigger event is `release` (#23944) (#23989)
|
||||||
|
* Use Get/Set instead of Rename when regenerating session ID (#23975) (#23983)
|
||||||
|
* Ensure RSS icon is present on all repo tabs (#23904) (#23973)
|
||||||
|
* Remove `Repository.getFilesChanged` to fix Actions `paths` and `paths-ignore` filter (#23920) (#23969)
|
||||||
|
* Delete deleted release attachments immediately from storage (#23913) (#23958)
|
||||||
|
* Use ghost user if package creator does not exist (#23822) (#23915)
|
||||||
|
* User/Org Feed render description as per web (#23887) (#23906)
|
||||||
|
* Fix `cases.Title` crash for concurrency (#23885) (#23903)
|
||||||
|
* Convert .Source.SkipVerify to $cfg.SkipVerify (#23839) (#23899)
|
||||||
|
* Support "." char as user name for User/Orgs in RSS/ATOM/GPG/KEYS path ... (#23874) (#23878)
|
||||||
|
* Fix JS error when changing PR's target branch (#23862) (#23864)
|
||||||
|
* Fix 500 error if there is a name conflict when editing authentication source (#23832) (#23852)
|
||||||
|
* Fix closed PR also triggers Webhooks and actions (#23782) (#23834)
|
||||||
|
* Fix checks for `needs` in Actions (#23789) (#23831)
|
||||||
|
* Fix "Updating branch by merge" bug in "update_branch_by_merge.tmpl" (#23790) (#23825)
|
||||||
|
* Fix cancel button in the page of project edit not work (#23655) (#23813)
|
||||||
|
* Don't apply the group filter when listing LDAP group membership if it is empty (#23745) (#23788)
|
||||||
|
* Fix profile page email display, respect settings (#23747) (#23756)
|
||||||
|
* Fix project card preview select and template select (#23684) (#23731)
|
||||||
|
* Check LFS/Packages settings in dump and doctor command (#23631) (#23730)
|
||||||
|
* Add git dashes separator to some "log" and "diff" commands (#23606) (#23720)
|
||||||
|
* Create commit status when event is `pull_request_sync` (#23683) (#23691)
|
||||||
|
* Fix incorrect `HookEventType` of pull request review comments (#23650) (#23678)
|
||||||
|
* Fix incorrect `show-modal` and `show-panel` class (#23660) (#23663)
|
||||||
|
* Improve workflow event triggers (#23613) (#23648)
|
||||||
|
* Introduce path Clean/Join helper functions, partially backport&refactor (#23495) (#23607)
|
||||||
|
* Fix pagination on `/notifications/watching` (#23564) (#23603)
|
||||||
|
* Fix submodule is nil panic (#23588) (#23601)
|
||||||
|
* Polyfill the window.customElements (#23592) (#23595)
|
||||||
|
* Avoid too long names for actions (#23162) (#23190)
|
||||||
|
* TRANSLATION
|
||||||
|
* Backport locales (with manual fixes) (#23808, #23634, #24083)
|
||||||
|
* BUILD
|
||||||
|
* Hardcode the path to docker images (#23955) (#23968)
|
||||||
|
* DOCS
|
||||||
|
* Update documentation to explain which projects allow Gitea to host static pages (#23993) (#24058)
|
||||||
|
* Merge `push to create`, `open PR from push`, and `push options` docs articles into one (#23744) (#23959)
|
||||||
|
* Fix code blocks in the cheat sheet (#23664) (#23669)
|
||||||
|
* MISC
|
||||||
|
* Do not crash when parsing an invalid workflow file (#23972) (#23976)
|
||||||
|
* Remove assertion debug code for show/hide refactoring (#23576) (#23868)
|
||||||
|
* Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) (#23791)
|
||||||
|
* Make minio package support legacy MD5 checksum (#23768) (#23770)
|
||||||
|
* Improve template error reporting (#23396) (#23600)
|
||||||
|
|
||||||
|
## [1.19.0](https://github.com/go-gitea/gitea/releases/tag/v1.19.0) - 2023-03-19
|
||||||
|
|
||||||
* BREAKING
|
* BREAKING
|
||||||
* Add loading yaml label template files (#22976) (#23232)
|
* Add loading yaml label template files (#22976) (#23232)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#Build stage
|
#Build stage
|
||||||
FROM golang:1.20-alpine3.17 AS build-env
|
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
|
||||||
|
|
||||||
ARG GOPROXY
|
ARG GOPROXY
|
||||||
ENV GOPROXY ${GOPROXY:-direct}
|
ENV GOPROXY ${GOPROXY:-direct}
|
||||||
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
|||||||
# Begin env-to-ini build
|
# Begin env-to-ini build
|
||||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||||
|
|
||||||
FROM alpine:3.17
|
FROM docker.io/library/alpine:3.17
|
||||||
LABEL maintainer="maintainers@gitea.io"
|
LABEL maintainer="maintainers@gitea.io"
|
||||||
|
|
||||||
EXPOSE 22 3000
|
EXPOSE 22 3000
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#Build stage
|
#Build stage
|
||||||
FROM golang:1.20-alpine3.17 AS build-env
|
FROM docker.io/library/golang:1.20-alpine3.17 AS build-env
|
||||||
|
|
||||||
ARG GOPROXY
|
ARG GOPROXY
|
||||||
ENV GOPROXY ${GOPROXY:-direct}
|
ENV GOPROXY ${GOPROXY:-direct}
|
||||||
@@ -23,7 +23,7 @@ RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
|||||||
# Begin env-to-ini build
|
# Begin env-to-ini build
|
||||||
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
RUN go build contrib/environment-to-ini/environment-to-ini.go
|
||||||
|
|
||||||
FROM alpine:3.17
|
FROM docker.io/library/alpine:3.17
|
||||||
LABEL maintainer="maintainers@gitea.io"
|
LABEL maintainer="maintainers@gitea.io"
|
||||||
|
|
||||||
EXPOSE 2222 3000
|
EXPOSE 2222 3000
|
||||||
|
|||||||
8
Makefile
8
Makefile
@@ -77,6 +77,7 @@ ifeq ($(RACE_ENABLED),true)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
STORED_VERSION_FILE := VERSION
|
STORED_VERSION_FILE := VERSION
|
||||||
|
HUGO_VERSION ?= 0.111.3
|
||||||
|
|
||||||
ifneq ($(DRONE_TAG),)
|
ifneq ($(DRONE_TAG),)
|
||||||
VERSION ?= $(subst v,,$(DRONE_TAG))
|
VERSION ?= $(subst v,,$(DRONE_TAG))
|
||||||
@@ -96,6 +97,11 @@ else
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# if version = "main" then update version to "nightly"
|
||||||
|
ifeq ($(VERSION),main)
|
||||||
|
VERSION := main-nightly
|
||||||
|
endif
|
||||||
|
|
||||||
LDFLAGS := $(LDFLAGS) -X "main.MakeVersion=$(MAKE_VERSION)" -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
|
LDFLAGS := $(LDFLAGS) -X "main.MakeVersion=$(MAKE_VERSION)" -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
|
||||||
|
|
||||||
LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
|
LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
|
||||||
@@ -816,7 +822,7 @@ release-docs: | $(DIST_DIRS) docs
|
|||||||
.PHONY: docs
|
.PHONY: docs
|
||||||
docs:
|
docs:
|
||||||
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
|
||||||
curl -sL https://github.com/gohugoio/hugo/releases/download/v0.74.3/hugo_0.74.3_Linux-64bit.tar.gz | tar zxf - -C /tmp && mv /tmp/hugo /usr/bin/hugo && chmod +x /usr/bin/hugo; \
|
curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mv /tmp/hugo /usr/bin/hugo && chmod +x /usr/bin/hugo; \
|
||||||
fi
|
fi
|
||||||
cd docs; make trans-copy clean build-offline;
|
cd docs; make trans-copy clean build-offline;
|
||||||
|
|
||||||
|
|||||||
10
assets/go-licenses.json
generated
10
assets/go-licenses.json
generated
File diff suppressed because one or more lines are too long
1
build.go
1
build.go
@@ -1,7 +1,6 @@
|
|||||||
// Copyright 2020 The Gitea Authors. All rights reserved.
|
// Copyright 2020 The Gitea Authors. All rights reserved.
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
|
||||||
//go:build vendor
|
//go:build vendor
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import (
|
|||||||
var CmdConvert = cli.Command{
|
var CmdConvert = cli.Command{
|
||||||
Name: "convert",
|
Name: "convert",
|
||||||
Usage: "Convert the database",
|
Usage: "Convert the database",
|
||||||
Description: "A command to convert an existing MySQL database from utf8 to utf8mb4",
|
Description: "A command to convert an existing MySQL database from utf8 to utf8mb4 or MSSQL database from varchar to nvarchar",
|
||||||
Action: runConvert,
|
Action: runConvert,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,17 +35,22 @@ func runConvert(ctx *cli.Context) error {
|
|||||||
log.Info("Log path: %s", setting.Log.RootPath)
|
log.Info("Log path: %s", setting.Log.RootPath)
|
||||||
log.Info("Configuration file: %s", setting.CustomConf)
|
log.Info("Configuration file: %s", setting.CustomConf)
|
||||||
|
|
||||||
if !setting.Database.Type.IsMySQL() {
|
switch {
|
||||||
fmt.Println("This command can only be used with a MySQL database")
|
case setting.Database.Type.IsMySQL():
|
||||||
return nil
|
if err := db.ConvertUtf8ToUtf8mb4(); err != nil {
|
||||||
|
log.Fatal("Failed to convert database from utf8 to utf8mb4: %v", err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fmt.Println("Converted successfully, please confirm your database's character set is now utf8mb4")
|
||||||
|
case setting.Database.Type.IsMSSQL():
|
||||||
|
if err := db.ConvertVarcharToNVarchar(); err != nil {
|
||||||
|
log.Fatal("Failed to convert database from varchar to nvarchar: %v", err)
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
fmt.Println("Converted successfully, please confirm your database's all columns character is NVARCHAR now")
|
||||||
|
default:
|
||||||
|
fmt.Println("This command can only be used with a MySQL or MSSQL database")
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := db.ConvertUtf8ToUtf8mb4(); err != nil {
|
|
||||||
log.Fatal("Failed to convert database from utf8 to utf8mb4: %v", err)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
fmt.Println("Converted successfully, please confirm your database's character set is now utf8mb4")
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -250,6 +250,8 @@ func runDump(ctx *cli.Context) error {
|
|||||||
|
|
||||||
if ctx.IsSet("skip-lfs-data") && ctx.Bool("skip-lfs-data") {
|
if ctx.IsSet("skip-lfs-data") && ctx.Bool("skip-lfs-data") {
|
||||||
log.Info("Skip dumping LFS data")
|
log.Info("Skip dumping LFS data")
|
||||||
|
} else if !setting.LFS.StartServer {
|
||||||
|
log.Info("LFS isn't enabled. Skip dumping LFS data")
|
||||||
} else if err := storage.LFS.IterateObjects(func(objPath string, object storage.Object) error {
|
} else if err := storage.LFS.IterateObjects(func(objPath string, object storage.Object) error {
|
||||||
info, err := object.Stat()
|
info, err := object.Stat()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -364,6 +366,8 @@ func runDump(ctx *cli.Context) error {
|
|||||||
|
|
||||||
if ctx.IsSet("skip-package-data") && ctx.Bool("skip-package-data") {
|
if ctx.IsSet("skip-package-data") && ctx.Bool("skip-package-data") {
|
||||||
log.Info("Skip dumping package data")
|
log.Info("Skip dumping package data")
|
||||||
|
} else if !setting.Packages.Enabled {
|
||||||
|
log.Info("Packages isn't enabled. Skip dumping package data")
|
||||||
} else if err := storage.Packages.IterateObjects(func(objPath string, object storage.Object) error {
|
} else if err := storage.Packages.IterateObjects(func(objPath string, object storage.Object) error {
|
||||||
info, err := object.Stat()
|
info, err := object.Stat()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -72,12 +72,21 @@ var CmdMigrateStorage = cli.Command{
|
|||||||
cli.StringFlag{
|
cli.StringFlag{
|
||||||
Name: "minio-base-path",
|
Name: "minio-base-path",
|
||||||
Value: "",
|
Value: "",
|
||||||
Usage: "Minio storage basepath on the bucket",
|
Usage: "Minio storage base path on the bucket",
|
||||||
},
|
},
|
||||||
cli.BoolFlag{
|
cli.BoolFlag{
|
||||||
Name: "minio-use-ssl",
|
Name: "minio-use-ssl",
|
||||||
Usage: "Enable SSL for minio",
|
Usage: "Enable SSL for minio",
|
||||||
},
|
},
|
||||||
|
cli.BoolFlag{
|
||||||
|
Name: "minio-insecure-skip-verify",
|
||||||
|
Usage: "Skip SSL verification",
|
||||||
|
},
|
||||||
|
cli.StringFlag{
|
||||||
|
Name: "minio-checksum-algorithm",
|
||||||
|
Value: "",
|
||||||
|
Usage: "Minio checksum algorithm (default/md5)",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,13 +177,15 @@ func runMigrateStorage(ctx *cli.Context) error {
|
|||||||
dstStorage, err = storage.NewMinioStorage(
|
dstStorage, err = storage.NewMinioStorage(
|
||||||
stdCtx,
|
stdCtx,
|
||||||
storage.MinioStorageConfig{
|
storage.MinioStorageConfig{
|
||||||
Endpoint: ctx.String("minio-endpoint"),
|
Endpoint: ctx.String("minio-endpoint"),
|
||||||
AccessKeyID: ctx.String("minio-access-key-id"),
|
AccessKeyID: ctx.String("minio-access-key-id"),
|
||||||
SecretAccessKey: ctx.String("minio-secret-access-key"),
|
SecretAccessKey: ctx.String("minio-secret-access-key"),
|
||||||
Bucket: ctx.String("minio-bucket"),
|
Bucket: ctx.String("minio-bucket"),
|
||||||
Location: ctx.String("minio-location"),
|
Location: ctx.String("minio-location"),
|
||||||
BasePath: ctx.String("minio-base-path"),
|
BasePath: ctx.String("minio-base-path"),
|
||||||
UseSSL: ctx.Bool("minio-use-ssl"),
|
UseSSL: ctx.Bool("minio-use-ssl"),
|
||||||
|
InsecureSkipVerify: ctx.Bool("minio-insecure-skip-verify"),
|
||||||
|
ChecksumAlgorithm: ctx.String("minio-checksum-algorithm"),
|
||||||
})
|
})
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("unsupported storage type: %s", ctx.String("storage"))
|
return fmt.Errorf("unsupported storage type: %s", ctx.String("storage"))
|
||||||
|
|||||||
@@ -931,10 +931,10 @@ ROUTER = console
|
|||||||
;USE_COMPAT_SSH_URI = false
|
;USE_COMPAT_SSH_URI = false
|
||||||
;;
|
;;
|
||||||
;; Close issues as long as a commit on any branch marks it as fixed
|
;; Close issues as long as a commit on any branch marks it as fixed
|
||||||
;; Comma separated list of globally disabled repo units. Allowed values: repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects, repo.packages
|
;; Comma separated list of globally disabled repo units. Allowed values: repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects, repo.packages, repo.actions.
|
||||||
;DISABLED_REPO_UNITS =
|
;DISABLED_REPO_UNITS =
|
||||||
;;
|
;;
|
||||||
;; Comma separated list of default new repo units. Allowed values: repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects, repo.packages.
|
;; Comma separated list of default new repo units. Allowed values: repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects, repo.packages, repo.actions.
|
||||||
;; Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility.
|
;; Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility.
|
||||||
;; External wiki and issue tracker can't be enabled by default as it requires additional settings.
|
;; External wiki and issue tracker can't be enabled by default as it requires additional settings.
|
||||||
;; Disabled repo units will not be added to new repositories regardless if it is in the default list.
|
;; Disabled repo units will not be added to new repositories regardless if it is in the default list.
|
||||||
@@ -1191,10 +1191,9 @@ ROUTER = console
|
|||||||
;; Number of line of codes shown for a code comment
|
;; Number of line of codes shown for a code comment
|
||||||
;CODE_COMMENT_LINES = 4
|
;CODE_COMMENT_LINES = 4
|
||||||
;;
|
;;
|
||||||
;; Value of `theme-color` meta tag, used by Android >= 5.0
|
;; Value of `theme-color` meta tag, used by some mobile browers for chrome and
|
||||||
;; An invalid color like "none" or "disable" will have the default style
|
;; out-of-viewport areas. Default is unset which uses body color.
|
||||||
;; More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
|
;THEME_COLOR_META_TAG =
|
||||||
;THEME_COLOR_META_TAG = `#6cc644`
|
|
||||||
;;
|
;;
|
||||||
;; Max size of files to be displayed (default is 8MiB)
|
;; Max size of files to be displayed (default is 8MiB)
|
||||||
;MAX_DISPLAY_FILE_SIZE = 8388608
|
;MAX_DISPLAY_FILE_SIZE = 8388608
|
||||||
@@ -1226,6 +1225,10 @@ ROUTER = console
|
|||||||
;;
|
;;
|
||||||
;; Whether to enable a Service Worker to cache frontend assets
|
;; Whether to enable a Service Worker to cache frontend assets
|
||||||
;USE_SERVICE_WORKER = false
|
;USE_SERVICE_WORKER = false
|
||||||
|
;;
|
||||||
|
;; Whether to only show relevant repos on the explore page when no keyword is specified and default sorting is used.
|
||||||
|
;; A repo is considered irrelevant if it's a fork or if it has no metadata (no description, no icon, no topic).
|
||||||
|
;ONLY_SHOW_RELEVANT_REPOS = false
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
@@ -1874,6 +1877,9 @@ ROUTER = console
|
|||||||
;;
|
;;
|
||||||
;; Minio skip SSL verification available when STORAGE_TYPE is `minio`
|
;; Minio skip SSL verification available when STORAGE_TYPE is `minio`
|
||||||
;MINIO_INSECURE_SKIP_VERIFY = false
|
;MINIO_INSECURE_SKIP_VERIFY = false
|
||||||
|
;;
|
||||||
|
;; Minio checksum algorithm: default (for MinIO or AWS S3) or md5 (for Cloudflare or Backblaze)
|
||||||
|
;MINIO_CHECKSUM_ALGORITHM = default
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-rootless
|
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}nightly{{/if}}-rootless
|
||||||
{{#if build.tags}}
|
{{#if build.tags}}
|
||||||
{{#unless (contains "-rc" build.tag)}}
|
{{#unless (contains "-rc" build.tag)}}
|
||||||
tags:
|
tags:
|
||||||
@@ -10,12 +10,12 @@ tags:
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
manifests:
|
manifests:
|
||||||
-
|
-
|
||||||
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-linux-amd64-rootless
|
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}nightly{{/if}}-linux-amd64-rootless
|
||||||
platform:
|
platform:
|
||||||
architecture: amd64
|
architecture: amd64
|
||||||
os: linux
|
os: linux
|
||||||
-
|
-
|
||||||
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-linux-arm64-rootless
|
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}nightly{{/if}}-linux-arm64-rootless
|
||||||
platform:
|
platform:
|
||||||
architecture: arm64
|
architecture: arm64
|
||||||
os: linux
|
os: linux
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}
|
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}nightly{{/if}}
|
||||||
{{#if build.tags}}
|
{{#if build.tags}}
|
||||||
{{#unless (contains "-rc" build.tag)}}
|
{{#unless (contains "-rc" build.tag)}}
|
||||||
tags:
|
tags:
|
||||||
@@ -10,12 +10,12 @@ tags:
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
manifests:
|
manifests:
|
||||||
-
|
-
|
||||||
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-linux-amd64
|
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}nightly{{/if}}-linux-amd64
|
||||||
platform:
|
platform:
|
||||||
architecture: amd64
|
architecture: amd64
|
||||||
os: linux
|
os: linux
|
||||||
-
|
-
|
||||||
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}dev{{/if}}-linux-arm64
|
image: gitea/gitea:{{#if build.tag}}{{trimPrefix "v" build.tag}}{{else}}{{#if (hasPrefix "refs/heads/release/v" build.ref)}}{{trimPrefix "refs/heads/release/v" build.ref}}-{{/if}}nightly{{/if}}-linux-arm64
|
||||||
platform:
|
platform:
|
||||||
architecture: arm64
|
architecture: arm64
|
||||||
os: linux
|
os: linux
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ THEME := themes/gitea
|
|||||||
PUBLIC := public
|
PUBLIC := public
|
||||||
ARCHIVE := https://dl.gitea.com/theme/main.tar.gz
|
ARCHIVE := https://dl.gitea.com/theme/main.tar.gz
|
||||||
|
|
||||||
HUGO_PACKAGE := github.com/gohugoio/hugo@v0.82.0
|
HUGO_PACKAGE := github.com/gohugoio/hugo@v0.111.3
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: build
|
all: build
|
||||||
|
|||||||
@@ -26,6 +26,11 @@ params:
|
|||||||
repo: "https://github.com/go-gitea/gitea"
|
repo: "https://github.com/go-gitea/gitea"
|
||||||
docContentPath: "docs/content"
|
docContentPath: "docs/content"
|
||||||
|
|
||||||
|
markup:
|
||||||
|
tableOfContents:
|
||||||
|
startLevel: 1
|
||||||
|
endLevel: 9
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
home:
|
home:
|
||||||
- HTML
|
- HTML
|
||||||
|
|||||||
14
docs/content/doc/administration.en-us.md
Normal file
14
docs/content/doc/administration.en-us.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
|
title: "Administration"
|
||||||
|
slug: "administration"
|
||||||
|
weight: 30
|
||||||
|
toc: false
|
||||||
|
draft: false
|
||||||
|
menu:
|
||||||
|
sidebar:
|
||||||
|
name: "Administration"
|
||||||
|
weight: 20
|
||||||
|
collapse: true
|
||||||
|
identifier: "administration"
|
||||||
|
---
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
date: "2017-08-23T09:00:00+02:00"
|
date: "2017-08-23T09:00:00+02:00"
|
||||||
title: "Avancé"
|
title: "Avancé"
|
||||||
slug: "advanced"
|
slug: "administration"
|
||||||
weight: 30
|
weight: 30
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "Avancé"
|
name: "Avancé"
|
||||||
weight: 40
|
weight: 20
|
||||||
identifier: "advanced"
|
identifier: "administration"
|
||||||
---
|
---
|
||||||
13
docs/content/doc/administration.zh-cn.md
Normal file
13
docs/content/doc/administration.zh-cn.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
|
title: "运维"
|
||||||
|
slug: "administration"
|
||||||
|
weight: 30
|
||||||
|
toc: false
|
||||||
|
draft: false
|
||||||
|
menu:
|
||||||
|
sidebar:
|
||||||
|
name: "运维"
|
||||||
|
weight: 20
|
||||||
|
identifier: "administration"
|
||||||
|
---
|
||||||
13
docs/content/doc/administration.zh-tw.md
Normal file
13
docs/content/doc/administration.zh-tw.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
|
title: "運維"
|
||||||
|
slug: "administration"
|
||||||
|
weight: 30
|
||||||
|
toc: false
|
||||||
|
draft: false
|
||||||
|
menu:
|
||||||
|
sidebar:
|
||||||
|
name: "運維"
|
||||||
|
weight: 20
|
||||||
|
identifier: "administration"
|
||||||
|
---
|
||||||
@@ -2,15 +2,15 @@
|
|||||||
date: "2019-12-28"
|
date: "2019-12-28"
|
||||||
title: "Adding Legal Pages"
|
title: "Adding Legal Pages"
|
||||||
slug: adding-legal-pages
|
slug: adding-legal-pages
|
||||||
weight: 9
|
weight: 110
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Adding Legal Pages"
|
name: "Adding Legal Pages"
|
||||||
identifier: "adding-legal-pages"
|
identifier: "adding-legal-pages"
|
||||||
weight: 9
|
weight: 110
|
||||||
---
|
---
|
||||||
|
|
||||||
Some jurisdictions (such as EU), requires certain legal pages (e.g. Privacy Policy) to be added to website. Follow these steps to add them to your Gitea instance.
|
Some jurisdictions (such as EU), requires certain legal pages (e.g. Privacy Policy) to be added to website. Follow these steps to add them to your Gitea instance.
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "Backup and Restore"
|
name: "Backup and Restore"
|
||||||
weight: 11
|
weight: 11
|
||||||
identifier: "backup-and-restore"
|
identifier: "backup-and-restore"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "备份与恢复"
|
name: "备份与恢复"
|
||||||
weight: 11
|
weight: 11
|
||||||
identifier: "backup-and-restore"
|
identifier: "backup-and-restore"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "備份與還原"
|
name: "備份與還原"
|
||||||
weight: 11
|
weight: 11
|
||||||
identifier: "backup-and-restore"
|
identifier: "backup-and-restore"
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2020-01-25T21:00:00-03:00"
|
date: "2020-01-25T21:00:00-03:00"
|
||||||
title: "Embedded data extraction tool"
|
title: "Embedded data extraction tool"
|
||||||
slug: "cmd-embedded"
|
slug: "cmd-embedded"
|
||||||
weight: 40
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Embedded data extraction tool"
|
name: "Embedded data extraction tool"
|
||||||
weight: 40
|
weight: 20
|
||||||
identifier: "cmd-embedded"
|
identifier: "cmd-embedded"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -21,7 +21,7 @@ menu:
|
|||||||
|
|
||||||
Gitea's executable contains all the resources required to run: templates, images, style-sheets
|
Gitea's executable contains all the resources required to run: templates, images, style-sheets
|
||||||
and translations. Any of them can be overridden by placing a replacement in a matching path
|
and translations. Any of them can be overridden by placing a replacement in a matching path
|
||||||
inside the `custom` directory (see [Customizing Gitea]({{< relref "doc/advanced/customizing-gitea.en-us.md" >}})).
|
inside the `custom` directory (see [Customizing Gitea]({{< relref "doc/administration/customizing-gitea.en-us.md" >}})).
|
||||||
|
|
||||||
To obtain a copy of the embedded resources ready for editing, the `embedded` command from the CLI
|
To obtain a copy of the embedded resources ready for editing, the `embedded` command from the CLI
|
||||||
can be used from the OS shell interface.
|
can be used from the OS shell interface.
|
||||||
@@ -85,7 +85,7 @@ The default is the current directory.
|
|||||||
The `--custom` flag tells Gitea to extract the files directly into the `custom` directory.
|
The `--custom` flag tells Gitea to extract the files directly into the `custom` directory.
|
||||||
For this to work, the command needs to know the location of the `app.ini` configuration
|
For this to work, the command needs to know the location of the `app.ini` configuration
|
||||||
file (`--config`) and, depending of the configuration, be ran from the directory where
|
file (`--config`) and, depending of the configuration, be ran from the directory where
|
||||||
Gitea normally starts. See [Customizing Gitea]({{< relref "doc/advanced/customizing-gitea.en-us.md" >}}) for details.
|
Gitea normally starts. See [Customizing Gitea]({{< relref "doc/administration/customizing-gitea.en-us.md" >}}) for details.
|
||||||
|
|
||||||
The `--overwrite` flag allows any existing files in the destination directory to be overwritten.
|
The `--overwrite` flag allows any existing files in the destination directory to be overwritten.
|
||||||
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2017-01-01T16:00:00+02:00"
|
date: "2017-01-01T16:00:00+02:00"
|
||||||
title: "Usage: Command Line"
|
title: "Usage: Command Line"
|
||||||
slug: "command-line"
|
slug: "command-line"
|
||||||
weight: 10
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "Command Line"
|
name: "Command Line"
|
||||||
weight: 10
|
weight: 1
|
||||||
identifier: "command-line"
|
identifier: "command-line"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2016-12-26T16:00:00+02:00"
|
date: "2016-12-26T16:00:00+02:00"
|
||||||
title: "Config Cheat Sheet"
|
title: "Config Cheat Sheet"
|
||||||
slug: "config-cheat-sheet"
|
slug: "config-cheat-sheet"
|
||||||
weight: 20
|
weight: 30
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Config Cheat Sheet"
|
name: "Config Cheat Sheet"
|
||||||
weight: 20
|
weight: 30
|
||||||
identifier: "config-cheat-sheet"
|
identifier: "config-cheat-sheet"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -103,8 +103,8 @@ In addition there is _`StaticRootPath`_ which can be set as a built-in at build
|
|||||||
- `DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH`: **false**: Close an issue if a commit on a non default branch marks it as closed.
|
- `DEFAULT_CLOSE_ISSUES_VIA_COMMITS_IN_ANY_BRANCH`: **false**: Close an issue if a commit on a non default branch marks it as closed.
|
||||||
- `ENABLE_PUSH_CREATE_USER`: **false**: Allow users to push local repositories to Gitea and have them automatically created for a user.
|
- `ENABLE_PUSH_CREATE_USER`: **false**: Allow users to push local repositories to Gitea and have them automatically created for a user.
|
||||||
- `ENABLE_PUSH_CREATE_ORG`: **false**: Allow users to push local repositories to Gitea and have them automatically created for an org.
|
- `ENABLE_PUSH_CREATE_ORG`: **false**: Allow users to push local repositories to Gitea and have them automatically created for an org.
|
||||||
- `DISABLED_REPO_UNITS`: **_empty_**: Comma separated list of globally disabled repo units. Allowed values: \[repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects\]
|
- `DISABLED_REPO_UNITS`: **_empty_**: Comma separated list of globally disabled repo units. Allowed values: \[repo.issues, repo.ext_issues, repo.pulls, repo.wiki, repo.ext_wiki, repo.projects, repo.packages, repo.actions\]
|
||||||
- `DEFAULT_REPO_UNITS`: **repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages**: Comma separated list of default new repo units. Allowed values: \[repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects\]. Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility. External wiki and issue tracker can't be enabled by default as it requires additional settings. Disabled repo units will not be added to new repositories regardless if it is in the default list.
|
- `DEFAULT_REPO_UNITS`: **repo.code,repo.releases,repo.issues,repo.pulls,repo.wiki,repo.projects,repo.packages**: Comma separated list of default new repo units. Allowed values: \[repo.code, repo.releases, repo.issues, repo.pulls, repo.wiki, repo.projects, repo.packages, repo.actions\]. Note: Code and Releases can currently not be deactivated. If you specify default repo units you should still list them for future compatibility. External wiki and issue tracker can't be enabled by default as it requires additional settings. Disabled repo units will not be added to new repositories regardless if it is in the default list.
|
||||||
- `DEFAULT_FORK_REPO_UNITS`: **repo.code,repo.pulls**: Comma separated list of default forked repo units. The set of allowed values and rules is the same as `DEFAULT_REPO_UNITS`.
|
- `DEFAULT_FORK_REPO_UNITS`: **repo.code,repo.pulls**: Comma separated list of default forked repo units. The set of allowed values and rules is the same as `DEFAULT_REPO_UNITS`.
|
||||||
- `PREFIX_ARCHIVE_FILES`: **true**: Prefix archive files by placing them in a directory named after the repository.
|
- `PREFIX_ARCHIVE_FILES`: **true**: Prefix archive files by placing them in a directory named after the repository.
|
||||||
- `DISABLE_MIGRATIONS`: **false**: Disable migrating feature.
|
- `DISABLE_MIGRATIONS`: **false**: Disable migrating feature.
|
||||||
@@ -220,17 +220,19 @@ The following configuration set `Content-Type: application/vnd.android.package-a
|
|||||||
- `SHOW_USER_EMAIL`: **true**: Whether the email of the user should be shown in the Explore Users page.
|
- `SHOW_USER_EMAIL`: **true**: Whether the email of the user should be shown in the Explore Users page.
|
||||||
- `THEMES`: **auto,gitea,arc-green**: All available themes. Allow users select personalized themes.
|
- `THEMES`: **auto,gitea,arc-green**: All available themes. Allow users select personalized themes.
|
||||||
regardless of the value of `DEFAULT_THEME`.
|
regardless of the value of `DEFAULT_THEME`.
|
||||||
- `THEME_COLOR_META_TAG`: **#6cc644**: Value of `theme-color` meta tag, used by Android >= 5.0. An invalid color like "none" or "disable" will have the default style. More info: https://developers.google.com/web/updates/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
|
- `THEME_COLOR_META_TAG`: **\<empty\>**: Value of `theme-color` meta tag, used by some mobile browers for chrome and out-of-viewport areas. Default is unset which uses body color.
|
||||||
- `MAX_DISPLAY_FILE_SIZE`: **8388608**: Max size of files to be displayed (default is 8MiB)
|
- `MAX_DISPLAY_FILE_SIZE`: **8388608**: Max size of files to be displayed (default is 8MiB)
|
||||||
- `REACTIONS`: All available reactions users can choose on issues/prs and comments
|
- `REACTIONS`: All available reactions users can choose on issues/prs and comments
|
||||||
Values can be emoji alias (:smile:) or a unicode emoji.
|
Values can be emoji alias (:smile:) or a unicode emoji.
|
||||||
For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
|
For custom reactions, add a tightly cropped square image to public/img/emoji/reaction_name.png
|
||||||
- `CUSTOM_EMOJIS`: **gitea, codeberg, gitlab, git, github, gogs**: Additional Emojis not defined in the utf8 standard.
|
- `CUSTOM_EMOJIS`: **gitea, codeberg, gitlab, git, github, gogs**: Additional Emojis not defined in the utf8 standard.
|
||||||
By default we support Gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and
|
By default, we support Gitea (:gitea:), to add more copy them to public/img/emoji/emoji_name.png and
|
||||||
add it to this config.
|
add it to this config.
|
||||||
- `DEFAULT_SHOW_FULL_NAME`: **false**: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
|
- `DEFAULT_SHOW_FULL_NAME`: **false**: Whether the full name of the users should be shown where possible. If the full name isn't set, the username will be used.
|
||||||
- `SEARCH_REPO_DESCRIPTION`: **true**: Whether to search within description at repository search on explore page.
|
- `SEARCH_REPO_DESCRIPTION`: **true**: Whether to search within description at repository search on explore page.
|
||||||
- `USE_SERVICE_WORKER`: **false**: Whether to enable a Service Worker to cache frontend assets.
|
- `USE_SERVICE_WORKER`: **false**: Whether to enable a Service Worker to cache frontend assets.
|
||||||
|
- `ONLY_SHOW_RELEVANT_REPOS`: **false** Whether to only show relevant repos on the explore page when no keyword is specified and default sorting is used.
|
||||||
|
A repo is considered irrelevant if it's a fork or if it has no metadata (no description, no icon, no topic).
|
||||||
|
|
||||||
### UI - Admin (`ui.admin`)
|
### UI - Admin (`ui.admin`)
|
||||||
|
|
||||||
@@ -753,7 +755,7 @@ and
|
|||||||
- `FORCE_TRUST_SERVER_CERT`: **false**: If set to `true`, completely ignores server certificate validation errors. This option is unsafe. Consider adding the certificate to the system trust store instead.
|
- `FORCE_TRUST_SERVER_CERT`: **false**: If set to `true`, completely ignores server certificate validation errors. This option is unsafe. Consider adding the certificate to the system trust store instead.
|
||||||
- `USER`: **\<empty\>**: Username of mailing user (usually the sender's e-mail address).
|
- `USER`: **\<empty\>**: Username of mailing user (usually the sender's e-mail address).
|
||||||
- `PASSWD`: **\<empty\>**: Password of mailing user. Use \`your password\` for quoting if you use special characters in the password.
|
- `PASSWD`: **\<empty\>**: Password of mailing user. Use \`your password\` for quoting if you use special characters in the password.
|
||||||
- Please note: authentication is only supported when the SMTP server communication is encrypted with TLS (this can be via `STARTTLS`) or SMTP host is localhost. See [Email Setup]({{< relref "doc/usage/email-setup.en-us.md" >}}) for more information.
|
- Please note: authentication is only supported when the SMTP server communication is encrypted with TLS (this can be via `STARTTLS`) or SMTP host is localhost. See [Email Setup]({{< relref "doc/administration/email-setup.en-us.md" >}}) for more information.
|
||||||
- `ENABLE_HELO`: **true**: Enable HELO operation.
|
- `ENABLE_HELO`: **true**: Enable HELO operation.
|
||||||
- `HELO_HOSTNAME`: **(retrieved from system)**: HELO hostname.
|
- `HELO_HOSTNAME`: **(retrieved from system)**: HELO hostname.
|
||||||
- `FROM`: **\<empty\>**: Mail from address, RFC 5322. This can be just an email address, or the "Name" \<email@example.com\> format.
|
- `FROM`: **\<empty\>**: Mail from address, RFC 5322. This can be just an email address, or the "Name" \<email@example.com\> format.
|
||||||
@@ -855,6 +857,7 @@ Default templates for project boards:
|
|||||||
- `MINIO_BASE_PATH`: **attachments/**: Minio base path on the bucket only available when STORAGE_TYPE is `minio`
|
- `MINIO_BASE_PATH`: **attachments/**: Minio base path on the bucket only available when STORAGE_TYPE is `minio`
|
||||||
- `MINIO_USE_SSL`: **false**: Minio enabled ssl only available when STORAGE_TYPE is `minio`
|
- `MINIO_USE_SSL`: **false**: Minio enabled ssl only available when STORAGE_TYPE is `minio`
|
||||||
- `MINIO_INSECURE_SKIP_VERIFY`: **false**: Minio skip SSL verification available when STORAGE_TYPE is `minio`
|
- `MINIO_INSECURE_SKIP_VERIFY`: **false**: Minio skip SSL verification available when STORAGE_TYPE is `minio`
|
||||||
|
- `MINIO_CHECKSUM_ALGORITHM`: **default**: Minio checksum algorithm: `default` (for MinIO or AWS S3) or `md5` (for Cloudflare or Backblaze)
|
||||||
|
|
||||||
## Log (`log`)
|
## Log (`log`)
|
||||||
|
|
||||||
@@ -988,7 +991,7 @@ Default templates for project boards:
|
|||||||
|
|
||||||
### Extended cron tasks (not enabled by default)
|
### Extended cron tasks (not enabled by default)
|
||||||
|
|
||||||
#### Cron - Garbage collect all repositories ('cron.git_gc_repos')
|
#### Cron - Garbage collect all repositories (`cron.git_gc_repos`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
@@ -997,42 +1000,42 @@ Default templates for project boards:
|
|||||||
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
||||||
- `ARGS`: **\<empty\>**: Arguments for command `git gc`, e.g. `--aggressive --auto`. The default value is same with [git] -> GC_ARGS
|
- `ARGS`: **\<empty\>**: Arguments for command `git gc`, e.g. `--aggressive --auto`. The default value is same with [git] -> GC_ARGS
|
||||||
|
|
||||||
#### Cron - Update the '.ssh/authorized_keys' file with Gitea SSH keys ('cron.resync_all_sshkeys')
|
#### Cron - Update the '.ssh/authorized_keys' file with Gitea SSH keys (`cron.resync_all_sshkeys`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
||||||
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
||||||
|
|
||||||
#### Cron - Resynchronize pre-receive, update and post-receive hooks of all repositories ('cron.resync_all_hooks')
|
#### Cron - Resynchronize pre-receive, update and post-receive hooks of all repositories (`cron.resync_all_hooks`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
||||||
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
||||||
|
|
||||||
#### Cron - Reinitialize all missing Git repositories for which records exist ('cron.reinit_missing_repos')
|
#### Cron - Reinitialize all missing Git repositories for which records exist (`cron.reinit_missing_repos`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
||||||
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
||||||
|
|
||||||
#### Cron - Delete all repositories missing their Git files ('cron.delete_missing_repos')
|
#### Cron - Delete all repositories missing their Git files (`cron.delete_missing_repos`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
||||||
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
||||||
|
|
||||||
#### Cron - Delete generated repository avatars ('cron.delete_generated_repository_avatars')
|
#### Cron - Delete generated repository avatars (`cron.delete_generated_repository_avatars`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
- `NOTICE_ON_SUCCESS`: **false**: Set to true to switch on success notices.
|
||||||
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
- `SCHEDULE`: **@every 72h**: Cron syntax for scheduling repository archive cleanup, e.g. `@every 1h`.
|
||||||
|
|
||||||
#### Cron - Delete all old actions from database ('cron.delete_old_actions')
|
#### Cron - Delete all old actions from database (`cron.delete_old_actions`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
@@ -1040,7 +1043,7 @@ Default templates for project boards:
|
|||||||
- `SCHEDULE`: **@every 168h**: Cron syntax to set how often to check.
|
- `SCHEDULE`: **@every 168h**: Cron syntax to set how often to check.
|
||||||
- `OLDER_THAN`: **@every 8760h**: any action older than this expression will be deleted from database, suggest using `8760h` (1 year) because that's the max length of heatmap.
|
- `OLDER_THAN`: **@every 8760h**: any action older than this expression will be deleted from database, suggest using `8760h` (1 year) because that's the max length of heatmap.
|
||||||
|
|
||||||
#### Cron - Check for new Gitea versions ('cron.update_checker')
|
#### Cron - Check for new Gitea versions (`cron.update_checker`)
|
||||||
|
|
||||||
- `ENABLED`: **true**: Enable service.
|
- `ENABLED`: **true**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
@@ -1048,7 +1051,7 @@ Default templates for project boards:
|
|||||||
- `SCHEDULE`: **@every 168h**: Cron syntax for scheduling a work, e.g. `@every 168h`.
|
- `SCHEDULE`: **@every 168h**: Cron syntax for scheduling a work, e.g. `@every 168h`.
|
||||||
- `HTTP_ENDPOINT`: **https://dl.gitea.io/gitea/version.json**: the endpoint that Gitea will check for newer versions
|
- `HTTP_ENDPOINT`: **https://dl.gitea.io/gitea/version.json**: the endpoint that Gitea will check for newer versions
|
||||||
|
|
||||||
#### Cron - Delete all old system notices from database ('cron.delete_old_system_notices')
|
#### Cron - Delete all old system notices from database (`cron.delete_old_system_notices`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
@@ -1056,7 +1059,7 @@ Default templates for project boards:
|
|||||||
- `SCHEDULE`: **@every 168h**: Cron syntax to set how often to check.
|
- `SCHEDULE`: **@every 168h**: Cron syntax to set how often to check.
|
||||||
- `OLDER_THAN`: **@every 8760h**: any system notice older than this expression will be deleted from database.
|
- `OLDER_THAN`: **@every 8760h**: any system notice older than this expression will be deleted from database.
|
||||||
|
|
||||||
#### Cron - Garbage collect LFS pointers in repositories ('cron.gc_lfs')
|
#### Cron - Garbage collect LFS pointers in repositories (`cron.gc_lfs`)
|
||||||
|
|
||||||
- `ENABLED`: **false**: Enable service.
|
- `ENABLED`: **false**: Enable service.
|
||||||
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
- `RUN_AT_START`: **false**: Run tasks at start up time (if ENABLED).
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2016-12-26T16:00:00+02:00"
|
date: "2016-12-26T16:00:00+02:00"
|
||||||
title: "配置说明"
|
title: "配置说明"
|
||||||
slug: "config-cheat-sheet"
|
slug: "config-cheat-sheet"
|
||||||
weight: 20
|
weight: 30
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "配置说明"
|
name: "配置说明"
|
||||||
weight: 20
|
weight: 30
|
||||||
identifier: "config-cheat-sheet"
|
identifier: "config-cheat-sheet"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -2,15 +2,15 @@
|
|||||||
date: "2017-04-15T14:56:00+02:00"
|
date: "2017-04-15T14:56:00+02:00"
|
||||||
title: "Customizing Gitea"
|
title: "Customizing Gitea"
|
||||||
slug: "customizing-gitea"
|
slug: "customizing-gitea"
|
||||||
weight: 9
|
weight: 100
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Customizing Gitea"
|
name: "Customizing Gitea"
|
||||||
identifier: "customizing-gitea"
|
identifier: "customizing-gitea"
|
||||||
weight: 9
|
weight: 100
|
||||||
---
|
---
|
||||||
|
|
||||||
# Customizing Gitea
|
# Customizing Gitea
|
||||||
@@ -84,7 +84,7 @@ directory at the top of this document).
|
|||||||
Every single page of Gitea can be changed. Dynamic content is generated using [go templates](https://golang.org/pkg/html/template/),
|
Every single page of Gitea can be changed. Dynamic content is generated using [go templates](https://golang.org/pkg/html/template/),
|
||||||
which can be modified by placing replacements below the `$GITEA_CUSTOM/templates` directory.
|
which can be modified by placing replacements below the `$GITEA_CUSTOM/templates` directory.
|
||||||
|
|
||||||
To obtain any embedded file (including templates), the [`gitea embedded` tool]({{< relref "doc/advanced/cmd-embedded.en-us.md" >}}) can be used. Alternatively, they can be found in the [`templates`](https://github.com/go-gitea/gitea/tree/main/templates) directory of Gitea source (Note: the example link is from the `main` branch. Make sure to use templates compatible with the release you are using).
|
To obtain any embedded file (including templates), the [`gitea embedded` tool]({{< relref "doc/administration/cmd-embedded.en-us.md" >}}) can be used. Alternatively, they can be found in the [`templates`](https://github.com/go-gitea/gitea/tree/main/templates) directory of Gitea source (Note: the example link is from the `main` branch. Make sure to use templates compatible with the release you are using).
|
||||||
|
|
||||||
Be aware that any statement contained inside `{{` and `}}` are Gitea's template syntax and
|
Be aware that any statement contained inside `{{` and `}}` are Gitea's template syntax and
|
||||||
shouldn't be touched without fully understanding these components.
|
shouldn't be touched without fully understanding these components.
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2017-04-15T14:56:00+02:00"
|
date: "2017-04-15T14:56:00+02:00"
|
||||||
title: "自定义 Gitea 配置"
|
title: "自定义 Gitea 配置"
|
||||||
slug: "customizing-gitea"
|
slug: "customizing-gitea"
|
||||||
weight: 9
|
weight: 100
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "自定义 Gitea 配置"
|
name: "自定义 Gitea 配置"
|
||||||
weight: 9
|
weight: 100
|
||||||
identifier: "customizing-gitea"
|
identifier: "customizing-gitea"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "Email setup"
|
name: "Email setup"
|
||||||
weight: 12
|
weight: 12
|
||||||
identifier: "email-setup"
|
identifier: "email-setup"
|
||||||
@@ -58,7 +58,7 @@ Restart Gitea for the configuration changes to take effect.
|
|||||||
|
|
||||||
To send a test email to validate the settings, go to Gitea > Site Administration > Configuration > SMTP Mailer Configuration.
|
To send a test email to validate the settings, go to Gitea > Site Administration > Configuration > SMTP Mailer Configuration.
|
||||||
|
|
||||||
For the full list of options check the [Config Cheat Sheet]({{< relref "doc/advanced/config-cheat-sheet.en-us.md" >}})
|
For the full list of options check the [Config Cheat Sheet]({{< relref "doc/administration/config-cheat-sheet.en-us.md" >}})
|
||||||
|
|
||||||
Please note: authentication is only supported when the SMTP server communication is encrypted with TLS or `HOST=localhost`. TLS encryption can be through:
|
Please note: authentication is only supported when the SMTP server communication is encrypted with TLS or `HOST=localhost`. TLS encryption can be through:
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ SMTP_ADDR = smtp.gmail.com
|
|||||||
SMTP_PORT = 465
|
SMTP_PORT = 465
|
||||||
FROM = example.user@gmail.com
|
FROM = example.user@gmail.com
|
||||||
USER = example.user
|
USER = example.user
|
||||||
PASSWD = ***
|
PASSWD = `***`
|
||||||
MAILER_TYPE = smtp
|
MAILER_TYPE = smtp
|
||||||
IS_TLS_ENABLED = true
|
IS_TLS_ENABLED = true
|
||||||
```
|
```
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2017-04-08T11:34:00+02:00"
|
date: "2017-04-08T11:34:00+02:00"
|
||||||
title: "Environment variables"
|
title: "Environment variables"
|
||||||
slug: "environment-variables"
|
slug: "environment-variables"
|
||||||
weight: 20
|
weight: 10
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Environment variables"
|
name: "Environment variables"
|
||||||
weight: 20
|
weight: 10
|
||||||
identifier: "environment-variables"
|
identifier: "environment-variables"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2017-04-08T11:34:00+02:00"
|
date: "2017-04-08T11:34:00+02:00"
|
||||||
title: "环境变量清单"
|
title: "环境变量清单"
|
||||||
slug: "environment-variables"
|
slug: "environment-variables"
|
||||||
weight: 20
|
weight: 10
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "环境变量清单"
|
name: "环境变量清单"
|
||||||
weight: 20
|
weight: 10
|
||||||
identifier: "environment-variables"
|
identifier: "environment-variables"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2018-11-23:00:00+02:00"
|
date: "2018-11-23:00:00+02:00"
|
||||||
title: "External renderers"
|
title: "External renderers"
|
||||||
slug: "external-renderers"
|
slug: "external-renderers"
|
||||||
weight: 40
|
weight: 60
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "External renderers"
|
name: "External renderers"
|
||||||
weight: 40
|
weight: 60
|
||||||
identifier: "external-renderers"
|
identifier: "external-renderers"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "Fail2ban setup"
|
name: "Fail2ban setup"
|
||||||
weight: 16
|
weight: 16
|
||||||
identifier: "fail2ban-setup"
|
identifier: "fail2ban-setup"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "设置 Fail2ban"
|
name: "设置 Fail2ban"
|
||||||
weight: 16
|
weight: 16
|
||||||
identifier: "fail2ban-setup"
|
identifier: "fail2ban-setup"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "Git LFS setup"
|
name: "Git LFS setup"
|
||||||
weight: 12
|
weight: 12
|
||||||
identifier: "git-lfs-setup"
|
identifier: "git-lfs-setup"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "HTTPS setup"
|
name: "HTTPS setup"
|
||||||
weight: 12
|
weight: 12
|
||||||
identifier: "https-setup"
|
identifier: "https-setup"
|
||||||
@@ -24,7 +24,7 @@ menu:
|
|||||||
Before you enable HTTPS, make sure that you have valid SSL/TLS certificates.
|
Before you enable HTTPS, make sure that you have valid SSL/TLS certificates.
|
||||||
You could use self-generated certificates for evaluation and testing. Please run `gitea cert --host [HOST]` to generate a self signed certificate.
|
You could use self-generated certificates for evaluation and testing. Please run `gitea cert --host [HOST]` to generate a self signed certificate.
|
||||||
|
|
||||||
If you are using Apache or nginx on the server, it's recommended to check the [reverse proxy guide]({{< relref "doc/usage/reverse-proxies.en-us.md" >}}).
|
If you are using Apache or nginx on the server, it's recommended to check the [reverse proxy guide]({{< relref "doc/administration/reverse-proxies.en-us.md" >}}).
|
||||||
|
|
||||||
To use Gitea's built-in HTTPS support, you must change your `app.ini` file:
|
To use Gitea's built-in HTTPS support, you must change your `app.ini` file:
|
||||||
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2019-04-02T17:06:00+01:00"
|
date: "2019-04-02T17:06:00+01:00"
|
||||||
title: "Advanced: Logging Configuration"
|
title: "Advanced: Logging Configuration"
|
||||||
slug: "logging-configuration"
|
slug: "logging-configuration"
|
||||||
weight: 55
|
weight: 40
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Logging Configuration"
|
name: "Logging Configuration"
|
||||||
weight: 55
|
weight: 40
|
||||||
identifier: "logging-configuration"
|
identifier: "logging-configuration"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Mail templates"
|
name: "Mail templates"
|
||||||
weight: 45
|
weight: 45
|
||||||
identifier: "mail-templates"
|
identifier: "mail-templates"
|
||||||
@@ -39,7 +39,7 @@ Currently, the following notification events make use of templates:
|
|||||||
| `approve` | The head comment of a approving review for a pull request. |
|
| `approve` | The head comment of a approving review for a pull request. |
|
||||||
| `reject` | The head comment of a review requesting changes for a pull request. |
|
| `reject` | The head comment of a review requesting changes for a pull request. |
|
||||||
| `code` | A single comment on the code of a pull request. |
|
| `code` | A single comment on the code of a pull request. |
|
||||||
| `assigned` | Used was assigned to an issue or pull request. |
|
| `assigned` | User was assigned to an issue or pull request. |
|
||||||
| `default` | Any action not included in the above categories, or when the corresponding category template is not present. |
|
| `default` | Any action not included in the above categories, or when the corresponding category template is not present. |
|
||||||
|
|
||||||
The path for the template of a particular message type is:
|
The path for the template of a particular message type is:
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Repository indexer"
|
name: "Repository indexer"
|
||||||
weight: 45
|
weight: 45
|
||||||
identifier: "repo-indexer"
|
identifier: "repo-indexer"
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2018-05-22T11:00:00+00:00"
|
date: "2018-05-22T11:00:00+00:00"
|
||||||
title: "Usage: Reverse Proxies"
|
title: "Usage: Reverse Proxies"
|
||||||
slug: "reverse-proxies"
|
slug: "reverse-proxies"
|
||||||
weight: 17
|
weight: 16
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "Reverse Proxies"
|
name: "Reverse Proxies"
|
||||||
weight: 16
|
weight: 16
|
||||||
identifier: "reverse-proxies"
|
identifier: "reverse-proxies"
|
||||||
@@ -48,7 +48,7 @@ server {
|
|||||||
server_name git.example.com;
|
server_name git.example.com;
|
||||||
|
|
||||||
# Note: Trailing slash
|
# Note: Trailing slash
|
||||||
location /git/ {
|
location /git/ {
|
||||||
# Note: Trailing slash
|
# Note: Trailing slash
|
||||||
proxy_pass http://localhost:3000/;
|
proxy_pass http://localhost:3000/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2018-05-22T11:00:00+00:00"
|
date: "2018-05-22T11:00:00+00:00"
|
||||||
title: "使用:反向代理"
|
title: "使用:反向代理"
|
||||||
slug: "reverse-proxies"
|
slug: "reverse-proxies"
|
||||||
weight: 17
|
weight: 16
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "usage"
|
parent: "administration"
|
||||||
name: "反向代理"
|
name: "反向代理"
|
||||||
weight: 16
|
weight: 16
|
||||||
identifier: "reverse-proxies"
|
identifier: "reverse-proxies"
|
||||||
@@ -48,7 +48,7 @@ server {
|
|||||||
server_name git.example.com;
|
server_name git.example.com;
|
||||||
|
|
||||||
# 注意: /git/ 最后需要有一个路径符号
|
# 注意: /git/ 最后需要有一个路径符号
|
||||||
location /git/ {
|
location /git/ {
|
||||||
# 注意: 反向代理后端 URL 的最后需要有一个路径符号
|
# 注意: 反向代理后端 URL 的最后需要有一个路径符号
|
||||||
proxy_pass http://localhost:3000/;
|
proxy_pass http://localhost:3000/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2019-12-31T13:55:00+05:00"
|
date: "2019-12-31T13:55:00+05:00"
|
||||||
title: "Advanced: Search Engines Indexation"
|
title: "Advanced: Search Engines Indexation"
|
||||||
slug: "search-engines-indexation"
|
slug: "search-engines-indexation"
|
||||||
weight: 30
|
weight: 60
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "Search Engines Indexation"
|
name: "Search Engines Indexation"
|
||||||
weight: 60
|
weight: 60
|
||||||
identifier: "search-engines-indexation"
|
identifier: "search-engines-indexation"
|
||||||
@@ -21,7 +21,7 @@ If you don't want your repository to be visible for search engines read further.
|
|||||||
## Block search engines indexation using robots.txt
|
## Block search engines indexation using robots.txt
|
||||||
|
|
||||||
To make Gitea serve a custom `robots.txt` (default: empty 404) for top level installations,
|
To make Gitea serve a custom `robots.txt` (default: empty 404) for top level installations,
|
||||||
create a file called `robots.txt` in the [`custom` folder or `CustomPath`]({{< relref "doc/advanced/customizing-gitea.en-us.md" >}})
|
create a file called `robots.txt` in the [`custom` folder or `CustomPath`]({{< relref "doc/administration/customizing-gitea.en-us.md" >}})
|
||||||
|
|
||||||
Examples on how to configure the `robots.txt` can be found at [https://moz.com/learn/seo/robotstxt](https://moz.com/learn/seo/robotstxt).
|
Examples on how to configure the `robots.txt` can be found at [https://moz.com/learn/seo/robotstxt](https://moz.com/learn/seo/robotstxt).
|
||||||
|
|
||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2019-08-17T10:20:00+01:00"
|
date: "2019-08-17T10:20:00+01:00"
|
||||||
title: "GPG Commit Signatures"
|
title: "GPG Commit Signatures"
|
||||||
slug: "signing"
|
slug: "signing"
|
||||||
weight: 20
|
weight: 50
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "advanced"
|
parent: "administration"
|
||||||
name: "GPG Commit Signatures"
|
name: "GPG Commit Signatures"
|
||||||
weight: 20
|
weight: 50
|
||||||
identifier: "signing"
|
identifier: "signing"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
|
||||||
title: "進階"
|
|
||||||
slug: "advanced"
|
|
||||||
weight: 30
|
|
||||||
toc: false
|
|
||||||
draft: false
|
|
||||||
menu:
|
|
||||||
sidebar:
|
|
||||||
name: "進階"
|
|
||||||
weight: 40
|
|
||||||
identifier: "advanced"
|
|
||||||
---
|
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
date: "2021-01-22T00:00:00+02:00"
|
date: "2021-01-22T00:00:00+02:00"
|
||||||
title: "Translation"
|
title: "Contributing"
|
||||||
slug: "translation"
|
slug: "contributing"
|
||||||
weight: 35
|
weight: 35
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "Translation"
|
name: "Contributing"
|
||||||
weight: 50
|
weight: 50
|
||||||
identifier: "translation"
|
identifier: "contributing"
|
||||||
---
|
---
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
date: "2021-01-22T00:00:00+02:00"
|
date: "2021-01-22T00:00:00+02:00"
|
||||||
title: "Übersetzung"
|
title: "Übersetzung"
|
||||||
slug: "translation"
|
slug: "contributing"
|
||||||
weight: 35
|
weight: 35
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
@@ -9,5 +9,5 @@ menu:
|
|||||||
sidebar:
|
sidebar:
|
||||||
name: "Übersetzung"
|
name: "Übersetzung"
|
||||||
weight: 50
|
weight: 50
|
||||||
identifier: "translation"
|
identifier: "contributing"
|
||||||
---
|
---
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
date: "2021-01-22T00:00:00+02:00"
|
date: "2021-01-22T00:00:00+02:00"
|
||||||
title: "翻譯"
|
title: "貢獻"
|
||||||
slug: "translation"
|
slug: "contributing"
|
||||||
weight: 35
|
weight: 35
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "翻譯"
|
name: "貢獻"
|
||||||
weight: 50
|
weight: 50
|
||||||
identifier: "translation"
|
identifier: "contributing"
|
||||||
---
|
---
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "contributing"
|
||||||
name: "Guidelines for Backend"
|
name: "Guidelines for Backend"
|
||||||
weight: 20
|
weight: 20
|
||||||
identifier: "guidelines-backend"
|
identifier: "guidelines-backend"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "contributing"
|
||||||
name: "Guidelines for Frontend"
|
name: "Guidelines for Frontend"
|
||||||
weight: 20
|
weight: 20
|
||||||
identifier: "guidelines-frontend"
|
identifier: "guidelines-frontend"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "contributing"
|
||||||
name: "Guidelines for Refactoring"
|
name: "Guidelines for Refactoring"
|
||||||
weight: 20
|
weight: 20
|
||||||
identifier: "guidelines-refactoring"
|
identifier: "guidelines-refactoring"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "features"
|
parent: "contributing"
|
||||||
name: "Localization"
|
name: "Localization"
|
||||||
weight: 20
|
weight: 20
|
||||||
identifier: "localization"
|
identifier: "localization"
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "本地化"
|
title: "本地化"
|
||||||
slug: "localization"
|
slug: "localization"
|
||||||
weight: 10
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "features"
|
parent: "contributing"
|
||||||
name: "本地化"
|
name: "本地化"
|
||||||
weight: 20
|
weight: 20
|
||||||
identifier: "localization"
|
identifier: "localization"
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "在地化"
|
title: "在地化"
|
||||||
slug: "localization"
|
slug: "localization"
|
||||||
weight: 10
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "features"
|
parent: "contributing"
|
||||||
name: "在地化"
|
name: "在地化"
|
||||||
weight: 20
|
weight: 20
|
||||||
identifier: "localization"
|
identifier: "localization"
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
date: "2021-01-22T00:00:00+02:00"
|
date: "2021-01-22T00:00:00+02:00"
|
||||||
title: "Übersetzungs Richtlinien"
|
title: "Übersetzungs Richtlinien"
|
||||||
weight: 10
|
weight: 70
|
||||||
toc: true
|
toc: true
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "translation"
|
parent: "contributing"
|
||||||
name: "Übersetzungsrichtlinien"
|
name: "Übersetzungsrichtlinien"
|
||||||
weight: 70
|
weight: 70
|
||||||
identifier: "translation-guidelines"
|
identifier: "translation-guidelines"
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
---
|
---
|
||||||
date: "2021-01-22T00:00:00+02:00"
|
date: "2021-01-22T00:00:00+02:00"
|
||||||
title: "Translation Guidelines"
|
title: "Translation Guidelines"
|
||||||
weight: 10
|
weight: 70
|
||||||
toc: true
|
toc: true
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "translation"
|
parent: "contributing"
|
||||||
name: "Translation Guidelines"
|
name: "Translation Guidelines"
|
||||||
weight: 70
|
weight: 70
|
||||||
identifier: "translation-guidelines"
|
identifier: "translation-guidelines"
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
|
||||||
title: "Developers"
|
|
||||||
slug: "developers"
|
|
||||||
weight: 40
|
|
||||||
toc: false
|
|
||||||
draft: false
|
|
||||||
menu:
|
|
||||||
sidebar:
|
|
||||||
name: "Developers"
|
|
||||||
weight: 55
|
|
||||||
identifier: "developers"
|
|
||||||
---
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
|
||||||
title: "开发者"
|
|
||||||
slug: "developers"
|
|
||||||
weight: 40
|
|
||||||
toc: false
|
|
||||||
draft: false
|
|
||||||
menu:
|
|
||||||
sidebar:
|
|
||||||
name: "开发者"
|
|
||||||
weight: 55
|
|
||||||
identifier: "developers"
|
|
||||||
---
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
|
||||||
title: "開發人員"
|
|
||||||
slug: "developers"
|
|
||||||
weight: 40
|
|
||||||
toc: false
|
|
||||||
draft: false
|
|
||||||
menu:
|
|
||||||
sidebar:
|
|
||||||
name: "開發人員"
|
|
||||||
weight: 55
|
|
||||||
identifier: "developers"
|
|
||||||
---
|
|
||||||
13
docs/content/doc/development.en-us.md
Normal file
13
docs/content/doc/development.en-us.md
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
---
|
||||||
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
|
title: "Development"
|
||||||
|
slug: "development"
|
||||||
|
weight: 40
|
||||||
|
toc: false
|
||||||
|
draft: false
|
||||||
|
menu:
|
||||||
|
sidebar:
|
||||||
|
name: "Development"
|
||||||
|
weight: 40
|
||||||
|
identifier: "development"
|
||||||
|
---
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "Advanced"
|
title: "开发"
|
||||||
slug: "advanced"
|
slug: "development"
|
||||||
weight: 30
|
weight: 40
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "Advanced"
|
name: "开发"
|
||||||
weight: 40
|
weight: 40
|
||||||
identifier: "advanced"
|
identifier: "development"
|
||||||
---
|
---
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
---
|
---
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "进阶"
|
title: "開發"
|
||||||
slug: "advanced"
|
slug: "development"
|
||||||
weight: 30
|
weight: 40
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "进阶"
|
name: "開發"
|
||||||
weight: 40
|
weight: 40
|
||||||
identifier: "advanced"
|
identifier: "development"
|
||||||
---
|
---
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "API Usage"
|
name: "API Usage"
|
||||||
weight: 40
|
weight: 40
|
||||||
identifier: "api-usage"
|
identifier: "api-usage"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "API 使用指南"
|
name: "API 使用指南"
|
||||||
weight: 40
|
weight: 40
|
||||||
identifier: "api-usage"
|
identifier: "api-usage"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "Hacking on Gitea"
|
name: "Hacking on Gitea"
|
||||||
weight: 10
|
weight: 10
|
||||||
identifier: "hacking-on-gitea"
|
identifier: "hacking-on-gitea"
|
||||||
@@ -177,7 +177,7 @@ server as mentioned above.
|
|||||||
|
|
||||||
### Working on JS and CSS
|
### Working on JS and CSS
|
||||||
|
|
||||||
Frontend development should follow [Guidelines for Frontend Development]({{< relref "doc/developers/guidelines-frontend.en-us.md" >}})
|
Frontend development should follow [Guidelines for Frontend Development]({{< relref "doc/contributing/guidelines-frontend.en-us.md" >}})
|
||||||
|
|
||||||
To build with frontend resources, either use the `watch-frontend` target mentioned above or just build once:
|
To build with frontend resources, either use the `watch-frontend` target mentioned above or just build once:
|
||||||
|
|
||||||
@@ -264,8 +264,8 @@ OpenAPI 3 documentation.
|
|||||||
When creating new configuration options, it is not enough to add them to the
|
When creating new configuration options, it is not enough to add them to the
|
||||||
`modules/setting` files. You should add information to `custom/conf/app.ini`
|
`modules/setting` files. You should add information to `custom/conf/app.ini`
|
||||||
and to the
|
and to the
|
||||||
<a href='{{< relref "doc/advanced/config-cheat-sheet.en-us.md" >}}'>configuration cheat sheet</a>
|
<a href='{{< relref "doc/administration/config-cheat-sheet.en-us.md" >}}'>configuration cheat sheet</a>
|
||||||
found in `docs/content/doc/advanced/config-cheat-sheet.en-us.md`
|
found in `docs/content/doc/administer/config-cheat-sheet.en-us.md`
|
||||||
|
|
||||||
### Changing the logo
|
### Changing the logo
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "玩转 Gitea"
|
name: "玩转 Gitea"
|
||||||
weight: 10
|
weight: 10
|
||||||
identifier: "hacking-on-gitea"
|
identifier: "hacking-on-gitea"
|
||||||
@@ -166,7 +166,7 @@ make lint-backend
|
|||||||
|
|
||||||
### 处理 JS 和 CSS
|
### 处理 JS 和 CSS
|
||||||
|
|
||||||
前端开发应遵循 [Guidelines for Frontend Development]({{ < 相关参考 "doc/developers/guidelines-frontend.en-us.md" > }})
|
前端开发应遵循 [Guidelines for Frontend Development]({{ < 相关参考 "doc/development/guidelines-frontend.en-us.md" > }})
|
||||||
|
|
||||||
要使用前端资源构建,请使用上面提到的“watch-frontend”目标或只构建一次:
|
要使用前端资源构建,请使用上面提到的“watch-frontend”目标或只构建一次:
|
||||||
|
|
||||||
@@ -247,7 +247,7 @@ make swagger-check
|
|||||||
### 创建新的配置选项
|
### 创建新的配置选项
|
||||||
|
|
||||||
创建新的配置选项时,将它们添加到 `modules/setting` 的对应文件。您应该将信息添加到 `custom/conf/app.ini`
|
创建新的配置选项时,将它们添加到 `modules/setting` 的对应文件。您应该将信息添加到 `custom/conf/app.ini`
|
||||||
并到 <a href = '{{ < relref "doc/advanced/config-cheat-sheet.en-us.md" > }}'>配置备忘单</a>
|
并到 <a href = '{{ < relref "doc/administration/config-cheat-sheet.en-us.md" > }}'>配置备忘单</a>
|
||||||
在 `docs/content/doc/advanced/config-cheat-sheet.en-us.md` 中找到
|
在 `docs/content/doc/advanced/config-cheat-sheet.en-us.md` 中找到
|
||||||
|
|
||||||
### 更改Logo
|
### 更改Logo
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2019-04-15T17:29:00+08:00"
|
date: "2019-04-15T17:29:00+08:00"
|
||||||
title: "Integrations"
|
title: "Integrations"
|
||||||
slug: "integrations"
|
slug: "integrations"
|
||||||
weight: 40
|
weight: 65
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "Integrations"
|
name: "Integrations"
|
||||||
weight: 65
|
weight: 65
|
||||||
identifier: "integrations"
|
identifier: "integrations"
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2019-04-15T17:29:00+08:00"
|
date: "2019-04-15T17:29:00+08:00"
|
||||||
title: "整合"
|
title: "整合"
|
||||||
slug: "integrations"
|
slug: "integrations"
|
||||||
weight: 40
|
weight: 65
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "整合"
|
name: "整合"
|
||||||
weight: 65
|
weight: 65
|
||||||
identifier: "integrations"
|
identifier: "integrations"
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2019-04-15T17:29:00+08:00"
|
date: "2019-04-15T17:29:00+08:00"
|
||||||
title: "Migrations Interfaces"
|
title: "Migrations Interfaces"
|
||||||
slug: "migrations-interfaces"
|
slug: "migrations-interfaces"
|
||||||
weight: 30
|
weight: 55
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "Migrations Interfaces"
|
name: "Migrations Interfaces"
|
||||||
weight: 55
|
weight: 55
|
||||||
identifier: "migrations-interfaces"
|
identifier: "migrations-interfaces"
|
||||||
@@ -2,12 +2,12 @@
|
|||||||
date: "2019-04-15T17:29:00+08:00"
|
date: "2019-04-15T17:29:00+08:00"
|
||||||
title: "遷移介面"
|
title: "遷移介面"
|
||||||
slug: "migrations-interfaces"
|
slug: "migrations-interfaces"
|
||||||
weight: 30
|
weight: 55
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "遷移介面"
|
name: "遷移介面"
|
||||||
weight: 55
|
weight: 55
|
||||||
identifier: "migrations-interfaces"
|
identifier: "migrations-interfaces"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "OAuth2 Provider"
|
name: "OAuth2 Provider"
|
||||||
weight: 41
|
weight: 41
|
||||||
identifier: "oauth2-provider"
|
identifier: "oauth2-provider"
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "developers"
|
parent: "development"
|
||||||
name: "OAuth2 提供者"
|
name: "OAuth2 提供者"
|
||||||
weight: 41
|
weight: 41
|
||||||
identifier: "oauth2-provider"
|
identifier: "oauth2-provider"
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
|
||||||
title: "Features"
|
|
||||||
slug: "features"
|
|
||||||
weight: 20
|
|
||||||
toc: false
|
|
||||||
draft: false
|
|
||||||
menu:
|
|
||||||
sidebar:
|
|
||||||
name: "Features"
|
|
||||||
weight: 30
|
|
||||||
identifier: "features"
|
|
||||||
---
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
|
||||||
title: "特性"
|
|
||||||
slug: "features"
|
|
||||||
weight: 20
|
|
||||||
toc: false
|
|
||||||
draft: false
|
|
||||||
menu:
|
|
||||||
sidebar:
|
|
||||||
name: "特性"
|
|
||||||
weight: 30
|
|
||||||
identifier: "features"
|
|
||||||
---
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
date: "2016-12-01T16:00:00+02:00"
|
|
||||||
title: "功能"
|
|
||||||
slug: "features"
|
|
||||||
weight: 20
|
|
||||||
toc: false
|
|
||||||
draft: false
|
|
||||||
menu:
|
|
||||||
sidebar:
|
|
||||||
name: "功能"
|
|
||||||
weight: 30
|
|
||||||
identifier: "features"
|
|
||||||
---
|
|
||||||
@@ -8,6 +8,6 @@ draft: false
|
|||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "Help"
|
name: "Help"
|
||||||
weight: 5
|
weight: 100
|
||||||
identifier: "help"
|
identifier: "help"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ draft: false
|
|||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "Aide"
|
name: "Aide"
|
||||||
weight: 5
|
weight: 100
|
||||||
identifier: "help"
|
identifier: "help"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ draft: false
|
|||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "帮助"
|
name: "帮助"
|
||||||
weight: 5
|
weight: 100
|
||||||
identifier: "help"
|
identifier: "help"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -8,6 +8,6 @@ draft: false
|
|||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
name: "幫助"
|
name: "幫助"
|
||||||
weight: 5
|
weight: 100
|
||||||
identifier: "help"
|
identifier: "help"
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ On the other hand, 1.x.x downloads should never change.
|
|||||||
|
|
||||||
To migrate from Gogs to Gitea:
|
To migrate from Gogs to Gitea:
|
||||||
|
|
||||||
- [Gogs version 0.9.146 or less]({{< relref "doc/upgrade/from-gogs.en-us.md" >}})
|
- [Gogs version 0.9.146 or less]({{< relref "doc/installation/upgrade-from-gogs.en-us.md" >}})
|
||||||
- [Gogs version 0.11.46.0418](https://github.com/go-gitea/gitea/issues/4286)
|
- [Gogs version 0.11.46.0418](https://github.com/go-gitea/gitea/issues/4286)
|
||||||
|
|
||||||
To migrate from GitHub to Gitea, you can use Gitea's built-in migration form.
|
To migrate from GitHub to Gitea, you can use Gitea's built-in migration form.
|
||||||
@@ -90,7 +90,7 @@ https://github.com/loganinak/MigrateGitlabToGogs
|
|||||||
|
|
||||||
There are a few places that could make this show incorrectly.
|
There are a few places that could make this show incorrectly.
|
||||||
|
|
||||||
1. If using a reverse proxy, make sure you have followed the correction directions in the [reverse proxy guide]({{< relref "doc/usage/reverse-proxies.en-us.md" >}})
|
1. If using a reverse proxy, make sure you have followed the correction directions in the [reverse proxy guide]({{< relref "doc/administration/reverse-proxies.en-us.md" >}})
|
||||||
2. Make sure you have correctly set `ROOT_URL` in the `server` section of your `app.ini`
|
2. Make sure you have correctly set `ROOT_URL` in the `server` section of your `app.ini`
|
||||||
|
|
||||||
If certain clone options aren't showing up (HTTP/S or SSH), the following options can be checked in your `app.ini`
|
If certain clone options aren't showing up (HTTP/S or SSH), the following options can be checked in your `app.ini`
|
||||||
@@ -103,7 +103,7 @@ If certain clone options aren't showing up (HTTP/S or SSH), the following option
|
|||||||
|
|
||||||
This error occurs when the reverse proxy limits the file upload size.
|
This error occurs when the reverse proxy limits the file upload size.
|
||||||
|
|
||||||
See the [reverse proxy guide]({{< relref "doc/usage/reverse-proxies.en-us.md" >}}) for a solution with nginx.
|
See the [reverse proxy guide]({{< relref "doc/administration/reverse-proxies.en-us.md" >}}) for a solution with nginx.
|
||||||
|
|
||||||
## Custom Templates not loading or working incorrectly
|
## Custom Templates not loading or working incorrectly
|
||||||
|
|
||||||
@@ -116,7 +116,15 @@ The correct path for the template(s) will be relative to the `CustomPath`
|
|||||||
If that doesn't exist, you can try `echo $GITEA_CUSTOM`
|
If that doesn't exist, you can try `echo $GITEA_CUSTOM`
|
||||||
|
|
||||||
2. If you are still unable to find a path, the default can be [calculated above](#where-does-gitea-store-what-file)
|
2. If you are still unable to find a path, the default can be [calculated above](#where-does-gitea-store-what-file)
|
||||||
3. Once you have figured out the correct custom path, you can refer to the [customizing Gitea]({{< relref "doc/advanced/customizing-gitea.en-us.md" >}}) page to add your template to the correct location.
|
3. Once you have figured out the correct custom path, you can refer to the [customizing Gitea]({{< relref "doc/administration/customizing-gitea.en-us.md" >}}) page to add your template to the correct location.
|
||||||
|
|
||||||
|
## Does Gitea have a "GitHub/GitLab pages" feature?
|
||||||
|
|
||||||
|
Gitea doesn't provide a built-in Pages server. You need a dedicated domain to serve static pages to avoid CSRF security risks.
|
||||||
|
|
||||||
|
For simple usage, you can use a reverse proxy to rewrite & serve static contents from Gitea's raw file URLs.
|
||||||
|
|
||||||
|
And there are already available third-party services, like a standalone [pages server](https://codeberg.org/Codeberg/pages-server) or a [caddy plugin](https://github.com/42wim/caddy-gitea), that can provide the required functionality.
|
||||||
|
|
||||||
## Active user vs login prohibited user
|
## Active user vs login prohibited user
|
||||||
|
|
||||||
@@ -126,7 +134,7 @@ A "login prohibited" user is a user that is not allowed to log in to Gitea anymo
|
|||||||
|
|
||||||
## Setting up logging
|
## Setting up logging
|
||||||
|
|
||||||
- [Official Docs]({{< relref "doc/advanced/logging-documentation.en-us.md" >}})
|
- [Official Docs]({{< relref "doc/administration/logging-documentation.en-us.md" >}})
|
||||||
|
|
||||||
## What is Swagger?
|
## What is Swagger?
|
||||||
|
|
||||||
@@ -134,7 +142,7 @@ A "login prohibited" user is a user that is not allowed to log in to Gitea anymo
|
|||||||
|
|
||||||
All Gitea instances have the built-in API and there is no way to disable it completely.
|
All Gitea instances have the built-in API and there is no way to disable it completely.
|
||||||
You can, however, disable showing its documentation by setting `ENABLE_SWAGGER` to `false` in the `api` section of your `app.ini`.
|
You can, however, disable showing its documentation by setting `ENABLE_SWAGGER` to `false` in the `api` section of your `app.ini`.
|
||||||
For more information, refer to Gitea's [API docs]({{< relref "doc/developers/api-usage.en-us.md" >}}).
|
For more information, refer to Gitea's [API docs]({{< relref "doc/development/api-usage.en-us.md" >}}).
|
||||||
|
|
||||||
You can see the latest API (for example) on <https://try.gitea.io/api/swagger>.
|
You can see the latest API (for example) on <https://try.gitea.io/api/swagger>.
|
||||||
|
|
||||||
@@ -149,7 +157,7 @@ There are multiple things you can combine to prevent spammers.
|
|||||||
1. By whitelisting or blocklisting certain email domains
|
1. By whitelisting or blocklisting certain email domains
|
||||||
2. By only whitelisting certain domains with OpenID (see below)
|
2. By only whitelisting certain domains with OpenID (see below)
|
||||||
3. Setting `ENABLE_CAPTCHA` to `true` in your `app.ini` and properly configuring `RECAPTCHA_SECRET` and `RECAPTCHA_SITEKEY`
|
3. Setting `ENABLE_CAPTCHA` to `true` in your `app.ini` and properly configuring `RECAPTCHA_SECRET` and `RECAPTCHA_SITEKEY`
|
||||||
4. Settings `DISABLE_REGISTRATION` to `true` and creating new users via the [CLI]({{< relref "doc/usage/command-line.en-us.md" >}}), [API]({{< relref "doc/developers/api-usage.en-us.md" >}}), or Gitea's Admin UI
|
4. Settings `DISABLE_REGISTRATION` to `true` and creating new users via the [CLI]({{< relref "doc/administration/command-line.en-us.md" >}}), [API]({{< relref "doc/development/api-usage.en-us.md" >}}), or Gitea's Admin UI
|
||||||
|
|
||||||
### Only allow/block certain email domains
|
### Only allow/block certain email domains
|
||||||
|
|
||||||
@@ -175,7 +183,7 @@ At some point, a customer or third party needs access to a specific repo and onl
|
|||||||
|
|
||||||
### Enable Fail2ban
|
### Enable Fail2ban
|
||||||
|
|
||||||
Use [Fail2Ban]({{< relref "doc/usage/fail2ban-setup.en-us.md" >}}) to monitor and stop automated login attempts or other malicious behavior based on log patterns
|
Use [Fail2Ban]({{< relref "doc/administration/fail2ban-setup.en-us.md" >}}) to monitor and stop automated login attempts or other malicious behavior based on log patterns
|
||||||
|
|
||||||
## How to add/use custom themes
|
## How to add/use custom themes
|
||||||
|
|
||||||
@@ -328,24 +336,24 @@ You may want to set this value to `60m` or `120m`.
|
|||||||
|
|
||||||
## How can I create users before starting Gitea
|
## How can I create users before starting Gitea
|
||||||
|
|
||||||
Gitea provides a sub-command `gitea migrate` to initialize the database, after which you can use the [admin CLI commands]({{< relref "doc/usage/command-line.en-us.md#admin" >}}) to add users like normal.
|
Gitea provides a sub-command `gitea migrate` to initialize the database, after which you can use the [admin CLI commands]({{< relref "doc/administration/command-line.en-us.md#admin" >}}) to add users like normal.
|
||||||
|
|
||||||
## How can I enable password reset
|
## How can I enable password reset
|
||||||
|
|
||||||
There is no setting for password resets. It is enabled when a [mail service]({{< relref "doc/usage/email-setup.en-us.md" >}}) is configured, and disabled otherwise.
|
There is no setting for password resets. It is enabled when a [mail service]({{< relref "doc/administration/email-setup.en-us.md" >}}) is configured, and disabled otherwise.
|
||||||
|
|
||||||
## How can a user's password be changed
|
## How can a user's password be changed
|
||||||
|
|
||||||
- As an **admin**, you can change any user's password (and optionally force them to change it on next login)...
|
- As an **admin**, you can change any user's password (and optionally force them to change it on next login)...
|
||||||
- By navigating to your `Site Administration -> User Accounts` page and editing a user.
|
- By navigating to your `Site Administration -> User Accounts` page and editing a user.
|
||||||
- By using the [admin CLI commands]({{< relref "doc/usage/command-line.en-us.md#admin" >}}).
|
- By using the [admin CLI commands]({{< relref "doc/administration/command-line.en-us.md#admin" >}}).
|
||||||
|
|
||||||
Keep in mind most commands will also need a [global flag]({{< relref "doc/usage/command-line.en-us.md#global-options" >}}) to point the CLI at the correct configuration.
|
Keep in mind most commands will also need a [global flag]({{< relref "doc/administration/command-line.en-us.md#global-options" >}}) to point the CLI at the correct configuration.
|
||||||
- As a **user** you can change it...
|
- As a **user** you can change it...
|
||||||
- In your account `Settings -> Account` page (this method **requires** you to know your current password).
|
- In your account `Settings -> Account` page (this method **requires** you to know your current password).
|
||||||
- By using the `Forgot Password` link.
|
- By using the `Forgot Password` link.
|
||||||
|
|
||||||
If the `Forgot Password/Account Recovery` page is disabled, please contact your administrator to configure a [mail service]({{< relref "doc/usage/email-setup.en-us.md" >}}).
|
If the `Forgot Password/Account Recovery` page is disabled, please contact your administrator to configure a [mail service]({{< relref "doc/administration/email-setup.en-us.md" >}}).
|
||||||
|
|
||||||
## Why is my markdown broken
|
## Why is my markdown broken
|
||||||
|
|
||||||
@@ -457,6 +465,6 @@ If you are using Cloudflare, turn off the auto-minify option in the dashboard.
|
|||||||
- You can also check `<ROOT_URL>/admin/config` for the repository root path.
|
- You can also check `<ROOT_URL>/admin/config` for the repository root path.
|
||||||
- Ensure that the user/org exists that you want to adopt repositories for.
|
- Ensure that the user/org exists that you want to adopt repositories for.
|
||||||
- As an admin, go to `<ROOT_URL>/admin/repos/unadopted` and search.
|
- As an admin, go to `<ROOT_URL>/admin/repos/unadopted` and search.
|
||||||
- Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}).
|
- Users can also be given similar permissions via config [`ALLOW_ADOPTION_OF_UNADOPTED_REPOSITORIES`]({{< relref "doc/administration/config-cheat-sheet.en-us.md#repository" >}}).
|
||||||
- If the above steps are done correctly, you should be able to select repositories to adopt.
|
- If the above steps are done correctly, you should be able to select repositories to adopt.
|
||||||
- If no repositories are found, enable [debug logging]({{< relref "doc/advanced/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors.
|
- If no repositories are found, enable [debug logging]({{< relref "doc/administration/config-cheat-sheet.en-us.md#repository" >}}) to check for any specific errors.
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
date: "2019-11-12T16:00:00+02:00"
|
date: "2019-11-12T16:00:00+02:00"
|
||||||
title: "Search"
|
title: "Search"
|
||||||
slug: "search"
|
slug: "search"
|
||||||
weight: 4
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
date: "2019-11-12T16:00:00+02:00"
|
date: "2019-11-12T16:00:00+02:00"
|
||||||
title: "Search"
|
title: "Search"
|
||||||
slug: "search"
|
slug: "search"
|
||||||
weight: 4
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
date: "2019-11-12T16:00:00+02:00"
|
date: "2019-11-12T16:00:00+02:00"
|
||||||
title: "Chercher"
|
title: "Chercher"
|
||||||
slug: "search"
|
slug: "search"
|
||||||
weight: 4
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
date: "2019-11-12T16:00:00+02:00"
|
date: "2019-11-12T16:00:00+02:00"
|
||||||
title: "Search"
|
title: "Search"
|
||||||
slug: "search"
|
slug: "search"
|
||||||
weight: 4
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
date: "2019-11-12T16:00:00+02:00"
|
date: "2019-11-12T16:00:00+02:00"
|
||||||
title: "Search"
|
title: "Search"
|
||||||
slug: "search"
|
slug: "search"
|
||||||
weight: 4
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
date: "2019-11-12T16:00:00+02:00"
|
date: "2019-11-12T16:00:00+02:00"
|
||||||
title: "搜索"
|
title: "搜索"
|
||||||
slug: "search"
|
slug: "search"
|
||||||
weight: 4
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
date: "2019-11-12T16:00:00+02:00"
|
date: "2019-11-12T16:00:00+02:00"
|
||||||
title: "搜尋"
|
title: "搜尋"
|
||||||
slug: "search"
|
slug: "search"
|
||||||
weight: 4
|
weight: 1
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
sitemap:
|
sitemap:
|
||||||
priority : 0.1
|
priority : 1
|
||||||
layout: "search"
|
layout: "search"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
date: "2018-05-21T15:00:00+00:00"
|
date: "2018-05-21T15:00:00+00:00"
|
||||||
title: "Support Options"
|
title: "Support Options"
|
||||||
slug: "seek-help"
|
slug: "seek-help"
|
||||||
weight: 10
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
date: "2017-01-20T15:00:00+08:00"
|
date: "2017-01-20T15:00:00+08:00"
|
||||||
title: "需要帮助"
|
title: "需要帮助"
|
||||||
slug: "seek-help"
|
slug: "seek-help"
|
||||||
weight: 10
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
date: "2018-05-21T15:00:00+00:00"
|
date: "2018-05-21T15:00:00+00:00"
|
||||||
title: "取得協助"
|
title: "取得協助"
|
||||||
slug: "seek-help"
|
slug: "seek-help"
|
||||||
weight: 10
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "features"
|
|
||||||
name: "Comparison"
|
name: "Comparison"
|
||||||
weight: 5
|
weight: 5
|
||||||
|
parent: installation
|
||||||
identifier: "comparison"
|
identifier: "comparison"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -31,6 +31,8 @@ _Symbols used in table:_
|
|||||||
|
|
||||||
- _✘ - unsupported_
|
- _✘ - unsupported_
|
||||||
|
|
||||||
|
- _⚙️ - supported through third-party software_
|
||||||
|
|
||||||
## General Features
|
## General Features
|
||||||
|
|
||||||
| Feature | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
|
| Feature | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
|
||||||
@@ -51,7 +53,7 @@ _Symbols used in table:_
|
|||||||
| Custom Theme Support | ✓ | ✓ | ✘ | ✘ | ✘ | ✓ | ✘ |
|
| Custom Theme Support | ✓ | ✓ | ✘ | ✘ | ✘ | ✓ | ✘ |
|
||||||
| Markdown support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| Markdown support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
| CSV support | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
|
| CSV support | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
|
||||||
| 'GitHub / GitLab pages' | [✘](https://github.com/go-gitea/gitea/issues/302) | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
| 'GitHub / GitLab pages' | [⚙️][gitea-pages-server], [⚙️][gitea-caddy-plugin] | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
||||||
| Repo-specific wiki (as a repo itself) | ✓ | ✓ | ✓ | ✓ | ✓ | / | ✘ |
|
| Repo-specific wiki (as a repo itself) | ✓ | ✓ | ✓ | ✓ | ✓ | / | ✘ |
|
||||||
| Deploy Tokens | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| Deploy Tokens | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
| Repository Tokens with write rights | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| Repository Tokens with write rights | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
@@ -141,3 +143,6 @@ _Symbols used in table:_
|
|||||||
| Two factor authentication (2FA) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
| Two factor authentication (2FA) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
||||||
| Integration with the most common services | ✓ | / | ⁄ | ✓ | ✓ | ⁄ | ✓ |
|
| Integration with the most common services | ✓ | / | ⁄ | ✓ | ✓ | ⁄ | ✓ |
|
||||||
| Incorporate external CI/CD | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| Incorporate external CI/CD | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
|
|
||||||
|
[gitea-caddy-plugin]: https://github.com/42wim/caddy-gitea
|
||||||
|
[gitea-pages-server]: https://codeberg.org/Codeberg/pages-server
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "features"
|
parent: "installation"
|
||||||
name: "横向对比"
|
name: "横向对比"
|
||||||
weight: 5
|
weight: 5
|
||||||
identifier: "comparison"
|
identifier: "comparison"
|
||||||
@@ -29,6 +29,8 @@ _表格中的符号含义:_
|
|||||||
|
|
||||||
* _? - 不确定_
|
* _? - 不确定_
|
||||||
|
|
||||||
|
* _⚙️ - 由第三方服务或插件支持_
|
||||||
|
|
||||||
#### 主要特性
|
#### 主要特性
|
||||||
|
|
||||||
| 特性 | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
|
| 特性 | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
|
||||||
@@ -42,7 +44,7 @@ _表格中的符号含义:_
|
|||||||
| 支持 Orgmode | ✓ | ✘ | ✓ | ✘ | ✘ | ✘ | ? |
|
| 支持 Orgmode | ✓ | ✘ | ✓ | ✘ | ✘ | ✘ | ? |
|
||||||
| 支持 CSV | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
|
| 支持 CSV | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
|
||||||
| 支持第三方渲染工具 | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ | ? |
|
| 支持第三方渲染工具 | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ | ? |
|
||||||
| Git 驱动的静态 pages | [✘](https://github.com/go-gitea/gitea/issues/302) | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
| Git 驱动的静态 pages | [⚙️][gitea-pages-server], [⚙️][gitea-caddy-plugin] | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
||||||
| Git 驱动的集成化 wiki | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ (cloud only) | ✘ |
|
| Git 驱动的集成化 wiki | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ (cloud only) | ✘ |
|
||||||
| 部署令牌 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| 部署令牌 | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
| 仓库写权限令牌 | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| 仓库写权限令牌 | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
@@ -129,3 +131,6 @@ _表格中的符号含义:_
|
|||||||
| 集成 Discord | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
| 集成 Discord | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
||||||
| 集成 Microsoft Teams | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
| 集成 Microsoft Teams | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
||||||
| 显示外部 CI/CD 的状态 | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| 显示外部 CI/CD 的状态 | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
|
|
||||||
|
[gitea-caddy-plugin]: https://github.com/42wim/caddy-gitea
|
||||||
|
[gitea-pages-server]: https://codeberg.org/Codeberg/pages-server
|
||||||
@@ -7,7 +7,7 @@ toc: false
|
|||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "features"
|
parent: "installation"
|
||||||
name: "比較"
|
name: "比較"
|
||||||
weight: 5
|
weight: 5
|
||||||
identifier: "comparison"
|
identifier: "comparison"
|
||||||
@@ -31,6 +31,8 @@ menu:
|
|||||||
|
|
||||||
- ✘ - 不支援
|
- ✘ - 不支援
|
||||||
|
|
||||||
|
- _⚙️ - 由第三方服務或外掛程式支援_
|
||||||
|
|
||||||
## 一般功能
|
## 一般功能
|
||||||
|
|
||||||
| 功能 | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
|
| 功能 | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
|
||||||
@@ -44,7 +46,7 @@ menu:
|
|||||||
| 支援 Orgmode | ✓ | ✘ | ✓ | ✘ | ✘ | ✘ | ? |
|
| 支援 Orgmode | ✓ | ✘ | ✓ | ✘ | ✘ | ✘ | ? |
|
||||||
| 支援 CSV | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
|
| 支援 CSV | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
|
||||||
| 支援第三方渲染工具 | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ | ? |
|
| 支援第三方渲染工具 | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ | ? |
|
||||||
| Git 驅動的靜態頁面 | [✘](https://github.com/go-gitea/gitea/issues/302) | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
| Git 驅動的靜態頁面 | [⚙️][gitea-pages-server], [⚙️][gitea-caddy-plugin] | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
||||||
| Git 驅動的整合 wiki | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
| Git 驅動的整合 wiki | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
||||||
| 部署 Token | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| 部署 Token | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
| 有寫入權限的儲存庫 Token | ✓ | ✘ | ✓ | ✓ | ✓ | ✘ | ✓ |
|
| 有寫入權限的儲存庫 Token | ✓ | ✘ | ✓ | ✓ | ✓ | ✘ | ✓ |
|
||||||
@@ -130,3 +132,6 @@ menu:
|
|||||||
| 整合 Discord | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
| 整合 Discord | ✓ | ✓ | ✓ | ✓ | ✓ | ✘ | ✘ |
|
||||||
| 整合 Microsoft Teams | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
| 整合 Microsoft Teams | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✘ |
|
||||||
| 顯示外部 CI/CD 狀態 | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
| 顯示外部 CI/CD 狀態 | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
||||||
|
|
||||||
|
[gitea-caddy-plugin]: https://github.com/42wim/caddy-gitea
|
||||||
|
[gitea-pages-server]: https://codeberg.org/Codeberg/pages-server
|
||||||
@@ -9,7 +9,7 @@ menu:
|
|||||||
sidebar:
|
sidebar:
|
||||||
parent: "installation"
|
parent: "installation"
|
||||||
name: "Database preparation"
|
name: "Database preparation"
|
||||||
weight: 20
|
weight: 10
|
||||||
identifier: "database-prep"
|
identifier: "database-prep"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2017-06-19T12:00:00+02:00"
|
date: "2017-06-19T12:00:00+02:00"
|
||||||
title: "Installation from binary"
|
title: "Installation from binary"
|
||||||
slug: "install-from-binary"
|
slug: "install-from-binary"
|
||||||
weight: 10
|
weight: 15
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "installation"
|
parent: "installation"
|
||||||
name: "From binary"
|
name: "From binary"
|
||||||
weight: 20
|
weight: 15
|
||||||
identifier: "install-from-binary"
|
identifier: "install-from-binary"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ despite warnings like `This key is not certified with a trusted signature!`.
|
|||||||
|
|
||||||
## Recommended server configuration
|
## Recommended server configuration
|
||||||
|
|
||||||
**NOTE:** Many of the following directories can be configured using [Environment Variables]({{< relref "doc/advanced/environment-variables.en-us.md" >}}) as well!
|
**NOTE:** Many of the following directories can be configured using [Environment Variables]({{< relref "doc/administration/environment-variables.en-us.md" >}}) as well!
|
||||||
Of note, configuring `GITEA_WORK_DIR` will tell Gitea where to base its working directory, as well as ease installation.
|
Of note, configuring `GITEA_WORK_DIR` will tell Gitea where to base its working directory, as well as ease installation.
|
||||||
|
|
||||||
### Prepare environment
|
### Prepare environment
|
||||||
@@ -113,7 +113,7 @@ If you don't want the web installer to be able to write to the config file, it i
|
|||||||
* Ensure that the `SECRET_KEY` and `INTERNAL_TOKEN` values are set. (You may want to use the `gitea generate secret` to generate these secret keys.)
|
* Ensure that the `SECRET_KEY` and `INTERNAL_TOKEN` values are set. (You may want to use the `gitea generate secret` to generate these secret keys.)
|
||||||
* Ensure that any other secret keys you need are set.
|
* Ensure that any other secret keys you need are set.
|
||||||
|
|
||||||
See the [command line documentation]({{< relref "doc/usage/command-line.en-us.md" >}}) for information on using `gitea generate secret`.
|
See the [command line documentation]({{< relref "doc/administration/command-line.en-us.md" >}}) for information on using `gitea generate secret`.
|
||||||
|
|
||||||
### Configure Gitea's working directory
|
### Configure Gitea's working directory
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini
|
|||||||
You can update to a new version of Gitea by stopping Gitea, replacing the binary at `/usr/local/bin/gitea` and restarting the instance.
|
You can update to a new version of Gitea by stopping Gitea, replacing the binary at `/usr/local/bin/gitea` and restarting the instance.
|
||||||
The binary file name should not be changed during the update to avoid problems in existing repositories.
|
The binary file name should not be changed during the update to avoid problems in existing repositories.
|
||||||
|
|
||||||
It is recommended that you make a [backup]({{< relref "doc/usage/backup-and-restore.en-us.md" >}}) before updating your installation.
|
It is recommended that you make a [backup]({{< relref "doc/administration/backup-and-restore.en-us.md" >}}) before updating your installation.
|
||||||
|
|
||||||
If you have carried out the installation steps as described above, the binary should
|
If you have carried out the installation steps as described above, the binary should
|
||||||
have the generic name `gitea`. Do not change this, i.e. to include the version number.
|
have the generic name `gitea`. Do not change this, i.e. to include the version number.
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2017-08-23T09:00:00+02:00"
|
date: "2017-08-23T09:00:00+02:00"
|
||||||
title: "Installation avec le binaire pré-compilé"
|
title: "Installation avec le binaire pré-compilé"
|
||||||
slug: "install-from-binary"
|
slug: "install-from-binary"
|
||||||
weight: 10
|
weight: 15
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "installation"
|
parent: "installation"
|
||||||
name: "Binaire pré-compilé"
|
name: "Binaire pré-compilé"
|
||||||
weight: 20
|
weight: 15
|
||||||
identifier: "install-from-binary"
|
identifier: "install-from-binary"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "从二进制安装"
|
title: "从二进制安装"
|
||||||
slug: "install-from-binary"
|
slug: "install-from-binary"
|
||||||
weight: 10
|
weight: 15
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "installation"
|
parent: "installation"
|
||||||
name: "从二进制安装"
|
name: "从二进制安装"
|
||||||
weight: 20
|
weight: 15
|
||||||
identifier: "install-from-binary"
|
identifier: "install-from-binary"
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -59,7 +59,7 @@ gpg --verify gitea-{{< version >}}-linux-amd64.asc gitea-{{< version >}}-linux-a
|
|||||||
|
|
||||||
## 服务器设置
|
## 服务器设置
|
||||||
|
|
||||||
**提示:** `GITEA_WORK_DIR` 表示 Gitea 工作的路径。以下路径可以通过 [环境变量]({{< relref "doc/advanced/environment-variables.zh-cn.md" >}}) 初始化。
|
**提示:** `GITEA_WORK_DIR` 表示 Gitea 工作的路径。以下路径可以通过 [环境变量]({{< relref "doc/administration/environment-variables.zh-cn.md" >}}) 初始化。
|
||||||
|
|
||||||
### 准备环境
|
### 准备环境
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ GITEA_WORK_DIR=/var/lib/gitea/ /usr/local/bin/gitea web -c /etc/gitea/app.ini
|
|||||||
|
|
||||||
您可以通过停止程序,替换 `/usr/local/bin/gitea` 并重启来更新到新版本。直接替换可执行程序时不要更改或使用新的文件名称,以避免数据出错。
|
您可以通过停止程序,替换 `/usr/local/bin/gitea` 并重启来更新到新版本。直接替换可执行程序时不要更改或使用新的文件名称,以避免数据出错。
|
||||||
|
|
||||||
建议您在更新之前进行[备份]({{< relref "doc/usage/backup-and-restore.zh-cn.md" >}})。
|
建议您在更新之前进行[备份]({{< relref "doc/administration/backup-and-restore.zh-cn.md" >}})。
|
||||||
|
|
||||||
### 1. 使用 systemd 重新启动 Gitea(推荐)
|
### 1. 使用 systemd 重新启动 Gitea(推荐)
|
||||||
|
|
||||||
|
|||||||
@@ -2,14 +2,14 @@
|
|||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "執行檔安裝"
|
title: "執行檔安裝"
|
||||||
slug: "install-from-binary"
|
slug: "install-from-binary"
|
||||||
weight: 10
|
weight: 15
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
sidebar:
|
sidebar:
|
||||||
parent: "installation"
|
parent: "installation"
|
||||||
name: "執行檔"
|
name: "執行檔"
|
||||||
weight: 20
|
weight: 15
|
||||||
identifier: "install-from-binary"
|
identifier: "install-from-binary"
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "Installation depuis le gestionnaire de paquets"
|
title: "Installation depuis le gestionnaire de paquets"
|
||||||
slug: "install-from-package"
|
slug: "install-from-package"
|
||||||
weight: 10
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
date: "2016-12-01T16:00:00+02:00"
|
date: "2016-12-01T16:00:00+02:00"
|
||||||
title: "使用包管理器安装"
|
title: "使用包管理器安装"
|
||||||
slug: "install-from-package"
|
slug: "install-from-package"
|
||||||
weight: 10
|
weight: 20
|
||||||
toc: false
|
toc: false
|
||||||
draft: false
|
draft: false
|
||||||
menu:
|
menu:
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user