Commit Graph
100 Commits
Author SHA1 Message Date
techknowlogickandGitHub 0b15a729cf rm .sample hooks which aren't used (#19101) 2022-03-16 10:33:07 +00:00
techknowlogickandGitHub ed1d95c55d use go1.18 to build gitea (#19099)
* use go1.18 to build gitea& update min go version to 1.17

* bump in a few more places

* add a few simple tests for isipprivate

* update go.mod

* update URL to https://go.dev/dl/

* golangci-lint

* attempt golangci-lint workaround

* change version

* bump fumpt version

* skip strings.title test

* go mod tidy

* update tests as some aren't private??

* update tests
2022-03-16 00:08:31 -04:00
1546580f9e bump go deps (#19021)
* update gitea.com/go-chi/binding

* update gitea.com/go-chi/cache

* update github.com/42wim/sshsig

* update github.com/PuerkitoBio/goquery

* update github.com/blevesearch/bleve/v2

* update github.com/caddyserver/certmagic

* update github.com/denisenkom/go-mssqldb

* update github.com/duo-labs/webauthn

* update github.com/dustin/go-humanize

* update github.com/editorconfig/editorconfig-core-go/v2

* update github.com/ethantkoenig/rupture

* update github.com/go-chi/chi/v5

* update github.com/go-git/go-git/v5

* update github.com/go-ldap/ldap/v3

* update github.com/go-redis/redis/v8

* update github.com/go-swagger/go-swagger

* update github.com/gogs/chardet

* update github.com/golang-jwt/jwt/v4

* update github.com/hashicorp/go-version

* update github.com/jaytaylor/html2text

* update github.com/klauspost/compress

* update github.com/lib/pq

* update github.com/markbates/goth

* update github.com/mattn/go-sqlite3

* update github.com/mholt/archiver/v3

* update github.com/microcosm-cc/bluemonday

* update github.com/minio/minio-go/v7

* update github.com/msteinert/pam

* update github.com/niklasfasching/go-org

* update github.com/olivere/elastic/v7

* update github.com/prometheus/client_golang

* update github.com/quasoft/websspi

* update github.com/stretchr/testify

* update github.com/unknwon/i18n

* update github.com/unrolled/render

* update github.com/xanzy/go-gitlab

* update github.com/yuin/goldmark

* update github.com/yuin/goldmark-highlighting

* update github.com/yuin/goldmark-meta

* post make vendor

Signed-off-by: Andrew Thornton <art27@cantab.net>

* add make vendor back into update_dependencies.sh

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update update_dependencies.sh

* Update contrib/update_dependencies.sh

Co-authored-by: zeripath <art27@cantab.net>

* update mvdan.cc/xurls/v2

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2022-03-08 19:15:30 +08:00
techknowlogickandGitHub 9c5696e428 update to correct stable version 2022-03-07 02:03:06 -05:00
techknowlogickandGitHub 286355c754 homebrew updates via cron 2022-03-03 15:59:26 -05:00
techknowlogickandGitHub 24d39ee6b7 revert to node14 for snapcraft 2022-02-01 15:10:55 -05:00
techknowlogickandGitHub 70e614b9da build with node16 in snap (#18508) 2022-01-31 17:52:12 -05:00
115e4772cc point to s3 endpoint directly (#18497)
Co-authored-by: 6543 <6543@obermui.de>
2022-01-31 17:39:39 -05:00
techknowlogickandGitHub b2250d2fb3 upload to github & s3 at same time (#18475) 2022-01-30 17:40:44 -05:00
4a6bae59c0 Changelog for 1.16.0-rc1 (#18309)
Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
2022-01-19 18:08:23 +01:00
techknowlogickandGitHub 84145e45c5 Remove golang vendored directory (#18277)
* rm go vendor

* fix drone yaml

* add to gitignore
2022-01-14 18:16:05 -05:00
techknowlogickandGitHub d8ae769dda update docker image to latest go version (#18048) 2021-12-20 22:11:10 -05:00
b24a965b81 no need for docker image mirror (#18031)
Co-authored-by: zeripath <art27@cantab.net>
2021-12-19 16:53:15 -05:00
techknowlogickandGitHub 6255ff8c6b update xgo to use 1.17 (#17915) 2021-12-05 19:48:38 -05:00
techknowlogickandGitHub 2dae5b715c Fix keys test (#17776) 2021-11-23 08:12:02 +00:00
techknowlogickandGitHub 499b05da22 Add user settings key/value DB table (#16834) 2021-11-22 04:47:23 -05:00
techknowlogickandGitHub 3397fee9fa api: integration test for nodeinfo (#17346) 2021-10-18 01:36:56 -04:00
techknowlogickandGitHub db895040dd Use go1.16+ way of installing binaries (#17342) 2021-10-17 18:57:15 -04:00
8edda8b446 Add simple update checker to Gitea (#17212)
* Add simple update checker to Gitea

* update struct and remove comments

* fix lint

* Update custom/conf/app.example.ini

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: delvh <dev.lh@web.de>

* Update custom/conf/app.example.ini

Co-authored-by: delvh <dev.lh@web.de>

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: delvh <dev.lh@web.de>

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: Steven <61625851+justusbunsi@users.noreply.github.com>

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

* Update modules/cron/tasks_extended.go

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

* Update custom/conf/app.example.ini

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>

* take PR feedback into account and display banner on admin dashboard for alerts

* Add more detailed message

* placate lint

* update per feedback

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Steven <61625851+justusbunsi@users.noreply.github.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2021-10-16 02:14:34 -04:00
techknowlogickandGitHub ee73d8409f changelog for 1.15.4 (frontport) (#17273) 2021-10-08 22:51:57 +01:00
f0bd1e9896 Add protection to disable Gitea when run as root (#17168)
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: 6543 <6543@obermui.de>
2021-10-07 10:52:08 +02:00
e9a9c20d52 Create pub/priv keypair for federation (#17071)
* add logic for creating pub/priv keypair for federation

* Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>

* make fmt

* Update modules/activitypub/keypair.go

Co-authored-by: delvh <dev.lh@web.de>

* add tests

* fix revert

* more tests

* Apply suggestions from code review

Co-authored-by: delvh <dev.lh@web.de>

* make fmt

Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: 6543 <6543@obermui.de>
2021-09-28 15:19:22 -04:00
techknowlogickandGitHub babab0bf5e Add nodeinfo endpoint for federation purposes (#16953)
Nodeinfo is a way to expose certain metadata about a server for use of discovery regarding functionality of its federation capabilities.

Two endpoints are required:
1. `/.well-known/nodeinfo` which informs client where it can find the location of the location of its metadata (including which version of the schema is used)
2. the endpoint which exposes the metadata in json format according to schema.

Notes:
* `openRegistrations` is a required field, but I propose to set to false as default in case someone writes a crawler to discover "open" gitea instances
* to limit data leakage I also propose to not include the `usage` field (note it is required so it should be included, but left as empty).

More info:
https://github.com/jhass/nodeinfo
https://github.com/jhass/nodeinfo/tree/main/schemas/2.1
http://nodeinfo.diaspora.software/protocol.html
2021-09-28 01:38:06 +02:00
techknowlogickandGitHub aa631d8cd1 update docs to 1.15.3 2021-09-21 21:38:04 -04:00
techknowlogickandGitHub 22c73278bc update docs to 1.15.2 2021-09-03 13:49:06 -04:00
techknowlogickandGitHub db1e3d02a5 frontport: 1.15.0 changelog (#16772)
* frontport: 1.15.0 changelog

* Update config.yaml
2021-08-22 20:29:51 +01:00
274aeb3a9e build with go1.17 (#16707)
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-08-17 08:31:28 -04:00
techknowlogickandGitHub 37d0d94843 Use github token URL when fetching oauth token (#16709)
Fixes regression from #16544
2021-08-17 09:07:52 +01:00
techknowlogickandGitHub 620c5690ea Add note about build-time flags for PAM support (#16641)
Fix #16639
2021-08-07 01:22:30 -04:00
e0f9635c06 Add Linode as an installation option in docs (#16529)
Add Linode as an installation option in docs

Co-authored-by: zeripath <art27@cantab.net>
2021-07-24 15:08:23 +01:00
techknowlogickandGitHub 5a84908d42 Add snap to docs (#16530) 2021-07-24 14:06:38 +01:00
29a22ade82 switch to maintained lib (#16532)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Andrew Thornton <art27@cantab.net>
2021-07-24 13:00:41 +02:00
7b31aae414 revert to use alpine 3.13 (#16451)
Co-authored-by: zeripath <art27@cantab.net>
2021-07-16 09:54:39 +08:00
techknowlogickandGitHub ff69dfff7a microbadger is no more, rm from readme (#16440)
* microbadger is no more, rm from readme

* Update README_ZH.md
2021-07-15 13:08:20 -04:00
techknowlogickandGitHub 376fc350ee add note about minimum required version of git installed (#16433) 2021-07-14 23:28:49 -04:00
e180456983 Change docker tag logic (#16421)
* Change docker logic

* Apply suggestions from code review

Co-authored-by: Kyle D. <kdumontnu@gmail.com>

* docs

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Kyle D. <kdumontnu@gmail.com>
2021-07-14 18:08:43 +01:00
061a8e7bb9 Alpine 3.14 released (#16170)
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
2021-07-07 15:43:00 -04:00
techknowlogickandGitHub 7613f31c6b Update vendor 20210707 (#16366)
* update gitea.com/go-chi/binding

* update github.com/blevesearch/bleve/v2

* update github.com/caddyserver/certmagic

* update github.com/go-git/go-git/v5

* update github.com/lafriks/xormstore

* update github.com/yuin/goldmark

* Revert "update gitea.com/go-chi/binding"

This reverts commit dea2f292b1.
2021-07-07 15:41:05 -04:00
techknowlogickandGitHub 4f26e0ac0e up current stable version in docs (#16318) 2021-06-30 16:27:09 -04:00
8640717f5f Add docs for windows env vars (#16236)
* Add docs for windows env vars

Fix #16213

* Fix docs/content/doc/developers/hacking-on-gitea.en-us.md

Co-authored-by: John Olheiser <john.olheiser@gmail.com>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2021-06-23 15:57:56 -04:00
techknowlogickandGitHub d4ae87ea32 Run compliance on amd64 infra (#16232)
* Run compliance on amd64 infra

* Update .drone.yml
2021-06-23 01:36:27 -04:00
techknowlogickandGitHub 568fe8c595 follow redirect when fetching theme archive (#15986) 2021-05-26 18:03:39 -04:00
techknowlogickandGitHub ffbd0fef06 change s3 bucket name (#15847) 2021-05-12 15:08:33 -04:00
techknowlogickandGitHub 2dc3e4edc8 point appleboy/drone-git-push to use updated primary branch 2021-05-10 20:27:56 -04:00
techknowlogickandGitHub ab77a24f18 update branch in CI and docs (#15631) 2021-05-04 12:16:23 -04:00
ea40eb749b Resolve panic on failed interface conversion in migration v156 (#15604)
go panics otherwise with `panic: interface conversion: error is git.ErrNotExist, not *git.ErrNotExist`, thanks to Codeberg/Andi for reporting this.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-04-24 11:14:39 +08:00
c29e85228f frontport: 1.14.1 changelog (#15503)
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-04-16 00:06:02 -04:00
024ef3940f add well-known config for OIDC (#15355)
* add well-known config for OIDC

* spacing per feedback

* Update oidc_wellknown.tmpl

* add id_token

* Update oidc_wellknown.tmpl

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-04-15 22:32:00 -04:00
26e16e4ee4 docs: rm deprecated docs regarding environment variable usage in docker image (#15405)
* docs: rm deprecated docs regarding environment variable usage in docker image

* Update docs/content/doc/installation/with-docker.en-us.md

Co-authored-by: silverwind <me@silverwind.io>

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: silverwind <me@silverwind.io>
2021-04-12 15:42:02 -04:00
techknowlogickandGitHub 70d84f9b73 update golang libraries (#15258) 2021-04-03 11:02:27 +08:00
techknowlogickandGitHub 5ad65c8f5d update docs to reference 1.13.6 (#15182) 2021-03-28 11:09:01 +08:00
techknowlogickandGitHub b175791665 build darwin on arm64 platforms (#14951)
fix #14945
2021-03-10 23:59:57 -05:00
techknowlogickandGitHub faf775c552 drone workspace path 2021-02-28 23:57:58 -05:00
techknowlogickandGitHub 1e95b389c0 drone workspace base 2021-02-28 23:25:09 -05:00
techknowlogickandGitHub d801a158c5 use gomod support w/ xgo (#14836) 2021-03-01 11:43:55 +08:00
techknowlogickandGitHub 47f6a4ec3f go1.16 (#14783) 2021-02-28 18:08:33 -05:00
techknowlogickandGitHub 428d0edcb0 Exclude running docker build on cron tasks (#14778) 2021-02-23 04:55:35 +01:00
techknowlogickandGitHub 1f570f2208 build for only available darwin target (#14771) 2021-02-22 08:44:54 -05:00
ce0346448f remove outdated notice in makefile (#14720)
Co-authored-by: 6543 <6543@obermui.de>
2021-02-17 21:48:12 -05:00
a3cc842e15 Show Gitea version in swagger (#14654)
Show Gitea version in swagger

Co-authored-by: 6543 <6543@obermui.de>
2021-02-12 21:51:56 +01:00
techknowlogickandGitHub 9b6ff819d7 update docs to show latest stable version (1.13.2) (#14550) 2021-02-03 08:46:42 +01:00
d2ea21d0d8 Use caddy's certmagic library for extensible/robust ACME handling (#14177)
* use certmagic for more extensible/robust ACME cert handling

* accept TOS based on config option

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-01-25 01:37:35 +02:00
techknowlogickandGitHub 62643d94a3 Update golangci-lint to 1.35.2 (#14418) 2021-01-21 17:14:23 -05:00
techknowlogickandGitHub b708968694 upgrade to alpine 3.13 (#14343) 2021-01-20 05:21:01 +01:00
techknowlogickandGitHub 954aeefb05 Update Link 2021-01-13 10:55:52 -05:00
d1581a4563 Add compliance check for windows to ensure cross platform build (#14260)
* Add compliance check for windows to ensure cross platform build

* no race condition

* woops. meant to change windows, not arm64

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2021-01-05 21:16:37 -05:00
4f2f08bd80 deprecate building for mips (#14174)
Co-authored-by: zeripath <art27@cantab.net>
2021-01-01 23:22:32 +08:00
techknowlogickandGitHub c9b9b462d2 Update owners for 2021 (#14206)
Fix #13801
2021-01-01 01:41:03 +02:00
9164ff7791 frontport 1.13.1 changelog (#14175)
* frontport 1.13.1 changelog

* Update config.yaml

Co-authored-by: zeripath <art27@cantab.net>
2020-12-28 19:38:44 -05:00
e0a84d7880 dep: update crypto. info: https://golangtutorial.dev/news/fix-in-crypto-package/ (#14067)
Co-authored-by: zeripath <art27@cantab.net>
2020-12-20 17:36:07 +02:00
f8a668ab0c Clean up SVG (#13680)
* Clean up SVG

* update per feedback

* fix css style

* Delete gitea.png

* no new line at end of file

* fix newline?

Co-authored-by: 6543 <6543@obermui.de>
2020-12-17 16:33:53 -05:00
88b585c2e0 Store repository data in data path if not previously set (#13991)
* Store repository data in data path if not previously set

* update docs

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: silverwind <me@silverwind.io>

* update docs

Co-authored-by: silverwind <me@silverwind.io>
2020-12-15 16:52:59 -05:00
techknowlogickandGitHub 9b22ada0a7 Self-host cloudron image for docs (#13895)
* Add cloudron image to docs itself

* rm cloudron csp

* Update from-package.en-us.md
2020-12-07 22:20:37 -05:00
techknowlogickandGitHub 9c71c6c4a5 Add link to shop in docs (#13864)
Replaced link to code.gitea.io as that subdomain isn't meant for human consumption, but rather for our vanity go import URLs
Only replaced link for english, open to adding links for other languages if anyone is able/willing to add them
2020-12-05 17:34:29 -05:00
techknowlogickandGitHub fd1c3519c3 frontport 1.13.0 changelog (#13790) 2020-12-02 11:39:22 -05:00
techknowlogickandGitHub 64bd5f4c66 specific version in docker compose (#13644)
* specific version in docker compose

fix #13643

* update latest version
2020-11-19 11:36:48 -05:00
8a7101fdd3 Add note about installation on kubernetes to docs (#13469)
Co-authored-by: zeripath <art27@cantab.net>
2020-11-08 15:50:40 -05:00
c178a36438 use registry mirror for docker-in-docker (#13438)
Co-authored-by: Lauris BH <lauris@nix.lv>
2020-11-06 02:35:10 -05:00
techknowlogickandGitHub 543697e61e Set auto-tag to false on rootless manifest (#13383)
Current overrides rootful container
2020-11-01 11:30:01 +00:00
techknowlogickandGitHub 76ac83402b Clean up mysql service in drone (#13145) 2020-10-14 17:44:18 -04:00
techknowlogickandGitHub e00e8d8ad3 Disable Git Hooks by default (#13064)
* Disable Git Hooks by default

Related #13058

* pass tests
2020-10-07 14:24:14 -04:00
techknowlogickandGitHub 77f3dbed6d latest version is 1.12.5 (#13005) 2020-10-01 15:21:25 -04:00
156f54d6e2 allow U2F with default settings for gitea in subpath (#12990)
* allow U2F with default settings for gitea in subpath

* use trim suffix

Co-authored-by: zeripath <art27@cantab.net>
2020-10-01 20:49:49 +08:00
techknowlogickandGitHub 1c3278c2fa update revive lint to latest commit (#12921)
* update revive lint to latest commit

* make fmt

* change import
2020-09-22 20:02:16 +03:00
techknowlogickandGitHub 33ac0cc125 Set language via AJAX (#12785)
* Set language via AJAX

* fix lint
2020-09-10 09:09:23 +08:00
techknowlogickandGitHub e4b3f35b8d Removing k8s contrib file (#12761)
We now have a helm chart that users should use instead
2020-09-07 23:22:55 -04:00
9a17e2830b refactor repo_stats to use os.pipe (#11726)
* refactor repo_stats to use os.pipe

* woops. missing reader.

* stdout not stderr, woops

* Fix copyright date and ensure that the stderr is collected

Signed-off-by: Andrew Thornton <art27@cantab.net>

Co-authored-by: Andrew Thornton <art27@cantab.net>
2020-09-05 16:12:14 -04:00
techknowlogickandGitHub bab1204db4 Use pre-built hugo binary in release step (#12725)
* Use pre-built hugo binary in release step

* decrease verbosity of tar
2020-09-05 07:24:36 +01:00
techknowlogickandGitHub 144de79c1b Add details re: Kanban (#12721) 2020-09-04 18:46:21 -04:00
482b0e6d47 Bump min required golang to 1.13 (#12717)
* Bump min required golang to 1.13

* Update config.yaml

* Update Makefile

* per silverwind feedback

* per silverwind

Co-authored-by: zeripath <art27@cantab.net>
2020-09-04 14:12:01 -04:00
c5d5d63c9c Macaron 1.5 (#12596)
* update macaron to v1.5 of fork

* update macaron to v1.5 of fork

* test gzip PR

* add push method impl to context_tests

* use proper gzip commit

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2020-08-27 22:47:17 -04:00
techknowlogickandGitHub e90e122b39 update to latest golangci-lint (v1.30.0) (#12597) 2020-08-25 09:24:37 +03:00
019e577d54 Update JWT docs in example config (#12591)
* Update JWT docs in example config

align with way we have `LFS_JWT_SECRET` in config

Fix #12590

* Update custom/conf/app.example.ini

Co-authored-by: John Olheiser <john.olheiser@gmail.com>

Co-authored-by: John Olheiser <john.olheiser@gmail.com>
2020-08-24 17:49:26 -04:00
techknowlogickandGitHub 125ffb87f0 go1.15 on windows (#12589)
* go1.15 on windows

* update xgo to use node14
2020-08-24 17:46:41 -04:00
techknowlogickandGitHub 1ca652c826 Add security policy to repo (#12536) 2020-08-19 17:15:55 +01:00
techknowlogickandGitHub eb60a5d054 Build windows using golang 1.14 (#12489) 2020-08-13 22:29:00 -04:00
techknowlogickandGitHub 8a0049bb03 go-sqlite3 gomod version (#12490) 2020-08-14 09:54:46 +08:00
techknowlogickandGitHub b37c7dd384 Build windows using golang 1.14 (#12489) 2020-08-13 21:18:04 -04:00
techknowlogickandGitHub c9d1e40dfc UI: Update commit signature view (#12473) 2020-08-13 10:54:54 -04:00
bd7d6a3d73 go1.15 (#12475)
* go1.15

* update makefile xgo version

* fix vet issue

* update docs to version of go in use

* add TODO for asyncpreemptoff

Co-authored-by: Lauris BH <lauris@nix.lv>
2020-08-13 10:11:24 -04:00