Commit Graph

10 Commits (ae446b13f938948c3f9305635621f3af11a5c04c)

Author SHA1 Message Date
6543 54e9ee37a7
format with gofumpt ()
* gofumpt -w -l .

* gofumpt -w -l -extra .

* Add linter

* manual fix

* change make fmt
Gusted 1d98d205f5
Enable deprecation error for v1.17.0 ()
Co-authored-by: Andrew Thornton <art27@cantab.net>
Lunny Xiao e3c626834b
Let package git depend on setting but not opposite ()
* Let package git depend on setting but not opposite

* private some package variables
KN4CK3R 29695cd6d5
Add asymmetric JWT signing ()
* Added asymmetric token signing.

* Load signing key from settings.

* Added optional kid parameter.

* Updated documentation.

* Add "kid" to token header.
KN4CK3R efe77eec85
Unified custom config creation ()
* Unified custom config creation.

* Fixed log message.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
zeripath 742e21aeba
Handle and propagate errors when checking if paths are Dirs, Files or Exist ()
* Ensure errors from IsDir propagate

* Handle errors when checking IsFile

* Handle and propagate errors from IsExist

* Update modules/templates/static.go

* Update modules/templates/static.go

* Return after ctx.ServerError

* Apply suggestions from code review

* Fix tests

The previous merge managed to break repo_form.go

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

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
zeripath de6e427a01
go-version constraints ignore pre-releases ()
Go-version constraints ignore pre-releases.

Rather than change the library further this PR simply changes
the git version comparison to use simple version compare ignoring the
issue of pre-releases.

Signed-off-by: Andrew Thornton <art27@cantab.net>
zeripath 6b1266b6b3
Provide self-registering storage system ()
* Provide self-registering storage system

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

* More simplification

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

* Remove old strings from setting

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

* oops attachments not attachment

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

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Lunny Xiao 3878e985b6
Add default storage configurations ()
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
Lunny Xiao 7a5465fc56
LFS support to be stored on minio ()
* LFS support to be stored on minio

* Fix test

* Fix lint

* Fix lint

* Fix check

* Fix test

* Update documents and add migration for LFS

* Fix some bugs