Commit Graph
17 Commits
Author SHA1 Message Date
wxiaoguang a71742308d Refactor Router Logger (#17308)
Make router logger more friendly, show the related function name/file/line.

[BREAKING]
This PR substantially changes the logging format of the router logger. If you use this logging for monitoring e.g. fail2ban you will need to update this to match the new format.
2022-01-20 19:41:25 +08:00
wxiaoguang 87839792e0 Revert "Prevent possible XSS when using jQuery (#18289)" (#18293)
This reverts commit 661d3d28e97bb49bef075c0314edad5879148aaa.
2022-01-16 11:19:26 +00:00
wxiaoguang 5464f51b37 Fix documents for development and bug report (#18249) 2022-01-13 10:58:46 +08:00
wxiaoguang 1298de1e08 Improve document for developers: Windows CGO, unit test option (#18140) 2021-12-31 22:21:11 +08:00
wxiaoguang d2d95adbc6 Fix documents for Windows development (#18109)
* Fix documents for Windows development
2021-12-26 23:27:18 +08:00
50823c34c7 Refactor install page (db type) (#17919)
* Refactor install page (db type)

* set correct default DB HOST for different DB TYPE
* remove legacy TiDB from documents
* unify the usage of DB TYPE, in code we only use "mysql". "MySQL" is only shown to users for friendly name.

* Gitea can use TiDB via MySQL protocol

Co-authored-by: zeripath <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
2021-12-07 13:44:08 +08:00
wxiaoguang ba33107d0d Improve seek-help documents (#17895)
* Add pprof information to seek-help documents 
* Improve zh-cn and zh-tw documents
2021-12-03 21:04:32 +08:00
wxiaoguang 85958c5ac7 Fix project board bug and improve documents (#17753)
* the project board was broken, this PR fixes it, and refactor the code, and we prevent the uncategorized column from being dragged.
* improve the frontend guideline (as discussed in https://github.com/go-gitea/gitea/pull/17699)
2021-11-22 19:40:17 +08:00
wxiaoguang 3f187b5151 Use hostmatcher to replace matchlist, improve security (#17605)
Use hostmacher to replace matchlist.

And we introduce a better DialContext to do a full host/IP check, otherwise the attackers can still bypass the allow/block list by a 302 redirection.
2021-11-20 17:34:05 +08:00
wxiaoguang 67bfafdb2f Fix some incorrect async functions, improve frontend document. (#17597) 2021-11-12 20:37:45 +08:00
wxiaoguang 2862371b0e Fix documents for ALLOWED_HOST_LIST, its default value differs between 1.15 and 1.16 (#17530)
* fix documents for ALLOWED_HOST_LIST, its default value differs between 1.15 and 1.16
2021-11-08 11:25:41 +08:00
wxiaoguang 2f2718b799 Only allow webhook to send requests to allowed hosts (#17482) 2021-11-01 16:39:52 +08:00
92cf815981 Split index.js to separate files (#17315)
* split `index.js` to separate files

* tune clipboard

* fix promise

* fix document

* remove intermediate empty file

* fix async event listener

* use `export function` instead of `export {}`, add more comments

Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: 6543 <[email protected]>
2021-10-17 01:28:04 +08:00
wxiaoguangandtechknowlogick 1cc5dacdea Update documents for Gitea behind reverse proxy. Fix some small bugs (some URLs are generated without sub-path) (#17320)
* Apache `ProxyPassReverse` only works for Location, Content-Location and URI headers on HTTP redirect responses, it causes more problems than it resolves. Now all URLs generated by Gitee have the correct prefix AppSubURL. We do not need to set `ProxyPassReverse`.

* fix url param

* use AppSubURL instead of AppURL in api/v1

Co-authored-by: techknowlogick <[email protected]>
2021-10-15 23:34:07 -04:00
c829f4430d Frontend refactor: move Vue related code from index.js to components dir, and remove unused codes. (#17301)
* frontend refactor

* Apply suggestions from code review

Co-authored-by: delvh <[email protected]>

* Update templates/base/head.tmpl

Co-authored-by: delvh <[email protected]>

* Update docs/content/doc/developers/guidelines-frontend.md

Co-authored-by: Lunny Xiao <[email protected]>

* fix typo

* fix typo

* refactor PageData to pageData

* Apply suggestions from code review

Co-authored-by: delvh <[email protected]>

* Simply for the visual difference.

Co-authored-by: delvh <[email protected]>

* Revert "Apply suggestions from code review"

This reverts commit 4d78ad9b0e96ca180e0823de17659a2e0814c099.

Co-authored-by: delvh <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: 6543 <[email protected]>
2021-10-15 10:35:26 +08:00
4c275fd2cf doc: Upgrade from an old Gitea (#16918)
* doc: Upgrade from an old Gitea

* update backup steps

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>

* update backup tips

* update table header

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: silverwind <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: silverwind <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: techknowlogick <[email protected]>

* Update docs/content/doc/upgrade/from-gitea.en-us.md

Co-authored-by: techknowlogick <[email protected]>

* Update from-gitea.en-us.md

* Update from-gitea.en-us.md

* Update from-gitea.en-us.md

* Update from-gitea.en-us.md

* Update from-gitea.en-us.md

* Update from-gitea.en-us.md

* Update from-gitea.en-us.md

Co-authored-by: delvh <[email protected]>
Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: silverwind <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
2021-09-09 14:13:21 -04:00
wxiaoguangandzeripath c0661259bb Add GoLand configuration in hacking on gitea (#16843)
Co-authored-by: zeripath <[email protected]>
2021-08-28 23:25:08 -04:00