Commit Graph

620 Commits

Author SHA1 Message Date
饺子w (Yumechi) bb2403989e
run go mod tidy after renovate update (#729)
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-08 09:31:35 -06:00
renovate[bot] a894427947
chore(deps): update docker.io/gotify/build docker tag to v1.23.3 (#726)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-07 17:42:28 -06:00
renovate[bot] 60bafd2b98
chore(deps): update module gopkg.in/yaml.v2 to v3 (#719)
* chore(deps): update module gopkg.in/yaml.v2 to v3

* fixup! chore(deps): update module gopkg.in/yaml.v2 to v3

---------

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-07 17:34:22 -06:00
饺子w (Yumechi) 2d6601747b
Switch to upstream jinzhu/configor (#727)
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-07 14:36:11 -06:00
Jannis Mattheis 7c9d7706eb
Merge pull request #723 from david-kalmakoff/issue-721
bug: fixed router navigating to homepage on page loads
2024-11-06 18:27:10 +01:00
Jannis Mattheis ad6fc49515 fix: loading plugin detail view by url 2024-11-06 18:13:15 +01:00
David Kalmakoff 13d59eb04d bug: fixed router navigating to homepage on page loads 2024-11-06 18:13:15 +01:00
David Kalmakoff b08b5ae82c
fix: table overflow and word wrapping (#720)
- applications (table)
- clients (table)
- plugins (table, info card word wrapping, and card padding)

Co-authored-by: David Kalmakoff <david@localhost.localdomain>
2024-11-05 11:06:33 +00:00
renovate[bot] 3f29dedd24
chore(deps): update docker.io/gotify/build docker tag to v1.23.2 (#713)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-04 16:12:08 -06:00
饺子w (Yumechi) 81564025b4
test: Wait for some time for the client list to update (#722)
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-03 04:22:54 -06:00
renovate[bot] 7db86af41a
chore(deps): update docker/setup-qemu-action action to v3 (#717)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-02 20:08:17 -05:00
renovate[bot] 443d4b43ec
chore(deps): update bump go dependencies (#712)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-02 07:50:03 -05:00
renovate[bot] a328be1951
chore(deps): update golangci/golangci-lint-action action to v6 (#718)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-02 02:20:03 -05:00
renovate[bot] 212aee3373
chore: Configure Renovate (#706)
---------

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-01 17:10:51 -05:00
饺子w (Yumechi) ec02350587
Docker multiarch image (#703)
fixes #257 .
fixes #350

---------

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-10-22 16:14:59 -05:00
Moin Ahmad 58084c8dea
implement HEAD /health (#688)
Co-authored-by: 饺子w (Yumechi) <yume@yumechi.jp>
2024-09-22 12:02:48 -05:00
饺子w (Yumechi) a58b0be362
bug: fixed a race condition in database test (#690)
* bug: fixed a race condition in database test and plugin integration test

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>

---------

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-09-20 05:00:17 -05:00
Jannis Mattheis a8a4fefd86
Merge pull request #665 from gotify/fix-ui-config
fix(ui): serving /index.html
2024-07-02 22:30:09 +02:00
Jannis Mattheis 7a27e64d0f fix(ui): serving /index.html 2024-07-02 21:23:34 +02:00
Jannis Mattheis 69c939ed94
Merge pull request #661 from gotify/update-backend
Update backend dependencies
2024-06-23 14:42:49 +02:00
Jannis Mattheis 51417366ee ci: update go-swagger 2024-06-23 13:03:19 +02:00
Jannis Mattheis 1ef87bf54f ci: update actions 2024-06-23 13:03:19 +02:00
Jannis Mattheis daf17443ce ci: update go1.22.2 2024-06-23 13:03:19 +02:00
Jannis Mattheis d37584c158 update backend deps 2024-06-23 13:03:19 +02:00
Leon Schmidt 12c7164f2e
Loading animations instead of "no messages" (#660) 2024-06-22 19:31:50 +00:00
bcurran3 a4c19c3a98
docs: fix typo 2024-04-28 10:28:30 +00:00
Jannis Mattheis 13cbcccc19
Merge pull request #637 from iarp/refresh-disabled-removal
change: removal of disabled flag from messages Refresh button
2024-03-12 18:53:20 +01:00
iarp 02c9613ac1 change: removal of disabled flag from messages Refresh button 2024-03-11 15:14:39 -04:00
Jannis Mattheis 46281d6a51
Merge pull request #624 from LaurenceJJones/trusted-proxies
feat: Trusted Proxies
2024-02-10 19:17:48 +01:00
Jannis Mattheis 2953d75824 fix: only use x-forwarded-for 2024-02-04 10:39:19 +01:00
Jannis Mattheis 949e5df17e fix: always override default proxies
Gin trusts all proxies by default. This is a security problem.
2024-02-04 10:39:19 +01:00
Laurence c68b2b5a72 Add trusted proxies property and find a solution to unix sockets 2024-02-04 10:33:25 +01:00
Jannis Mattheis d32d131d08
Merge pull request #621 from LaurenceJJones/master
Unix socket implementation
2024-01-20 10:40:00 +01:00
Jannis Mattheis 8bd514a84e ci: update golangci-lint 2024-01-20 10:17:51 +01:00
Laurence d0b3271880 feat: listen on unix sockets
With this you can configure a unix socket in server.listenaddr and
server.ssl.listenaddr by prefixing the socket path with unix:

Co-authored-by: Jannis Mattheis <contact@jmattheis.de>
2024-01-20 10:17:51 +01:00
Eng Zer Jun 0bfa5ca4d9
perf: avoid allocations with `(*regexp.Regexp).MatchString` (#604)
We should use `(*regexp.Regexp).MatchString` instead of
`(*regexp.Regexp).Match([]byte(...))` when matching string to avoid
unnecessary `[]byte` conversions and reduce allocations.

Example benchmark:

var allowedOrigin = regexp.MustCompile(".*.example.com")

func BenchmarkMatch(b *testing.B) {
	for i := 0; i < b.N; i++ {
		if match := allowedOrigin.Match([]byte("www.example.com")); !match {
			b.Fail()
		}
	}
}

func BenchmarkMatchString(b *testing.B) {
	for i := 0; i < b.N; i++ {
		if match := allowedOrigin.MatchString("wwww.example.com"); !match {
			b.Fail()
		}
	}
}

goos: linux
goarch: amd64
pkg: github.com/gotify/server/v2/api/stream
cpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics
BenchmarkMatch-16          	 2076819	       647.7 ns/op	      16 B/op	       1 allocs/op
BenchmarkMatchString-16    	 2536326	       442.0 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	github.com/gotify/server/v2/api/stream	3.552s

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-23 15:57:15 +00:00
mateuscelio 92916f0117
Add applications icons in sidebar (#602) 2023-10-22 09:24:53 +00:00
Jannis Mattheis 97f180b650
Merge pull request #592 from gotify/build
Build
2023-09-17 09:43:04 +02:00
Jannis Mattheis 101c542186 fix: update go deps 2023-09-17 09:05:15 +02:00
Jannis Mattheis a2b2f856e0 test: don't run tests twice 2023-09-17 09:05:15 +02:00
Jannis Mattheis e0f86b6ba1 build: update golangci-lint 2023-09-16 21:06:54 +02:00
Jannis Mattheis dec762f9ed fix: remove unused code 2023-09-16 21:06:54 +02:00
Jannis Mattheis f1ac16640f build: remove deprecated linters 2023-09-16 21:06:54 +02:00
Jannis Mattheis 1adfaa6448 build: disable depguard 2023-09-16 21:06:54 +02:00
Jannis Mattheis 9592cc95c9 fix: update go-swagger 2023-09-16 21:06:54 +02:00
Jannis Mattheis 4728e995bc fix: update build deps 2023-09-16 21:06:54 +02:00
Jannis Mattheis 8c0f7a9499
Merge pull request #582 from eternal-flame-AD/lastping
add last seen field to client (fixes #400)
2023-08-06 12:43:26 +02:00
Jannis Mattheis a3ce298729 Fix stream_test flakiness 2023-08-06 12:30:22 +02:00
eternal-flame-AD 7bf80ee6f1 Add last used to client & application 2023-08-06 12:30:22 +02:00
Jannis Mattheis a44418265a
Merge pull request #584 from gotify/update-deps
Update deps
2023-07-30 18:58:49 +02:00