Commit Graph

707 Commits

Author SHA1 Message Date
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
Jannis Mattheis 835adeec79 Fix test assertions 2023-07-30 15:39:19 +02:00
Jannis Mattheis bda27946da Update deps 2023-07-30 15:39:15 +02:00
chrispruitt 72bd8c8ba6
Add default message priority for applications
Co-authored-by: Jannis Mattheis <contact@jmattheis.de>
2023-07-19 18:15:01 +00:00
饺子w (Yumechi) aedc3e2ba6
Migrate from packr to go:embed (#581) 2023-07-15 08:32:31 +00:00
Helmut K. C. Tessarek 5cd2d5411f
Add delete application image endpoint 2023-05-28 13:59:49 +00:00
Helmut K. C. Tessarek a37afcebfc
Improve log format (#567) 2023-05-24 16:25:51 +00:00
Helmut K. C. Tessarek 8f51a2c72d
Suppress /health request logging from localhost 2023-05-24 16:03:12 +00:00
Jannis Mattheis 62a1c99841
Merge pull request #561 from Zlendy/master
Add copy app token button in web gui
2023-05-09 21:02:42 +02:00
Zlendy 8cfd827814 Add copy secret button 2023-05-09 20:48:35 +02:00
Jannis Mattheis a18970ea19
Merge pull request #560 from mateuscelio/master
Adds ClientParams strcut to handle creation and update params
2023-04-28 16:22:57 +02:00
mateuscelio f3d121bd61 Adds ClientParams strcut to handle creation and update params 2023-04-28 16:11:40 +02:00
Jannis Mattheis 9d4e37aa87 Fix swagger-ui style 2023-01-10 19:14:41 +01:00
Pander 5852bbb4ac
Unify display of app icon 2023-01-10 17:41:36 +00:00