饺子w (Yumechi)
c44c4ef980
Cleaner chain of authority for golang update (gotify/build -> go.mod -> GO_VERSION) ( #780 )
...
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2025-03-12 23:37:23 +00:00
renovate[bot]
fbf0f6cfc9
chore(deps): update dependency node to v22 ( #778 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-12 02:24:49 +00:00
renovate[bot]
30003571c8
chore(deps): update dependency go to 1.24.x ( #777 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-11 17:52:44 -05:00
renovate[bot]
0cd03980ce
chore(deps): Update Go to 1.24 and bump dependencies ( #758 )
...
* chore(deps): update bump go dependencies
* Update golangci-lint for Go1.24
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* Update build target tot Go 1.24
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* Restore previous behavior of coverage reporting
See 50455385b0
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
---------
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>
2025-02-13 18:54:02 +00:00
renovate[bot]
a0bad7bd5a
chore(deps): update bump go dependencies ( #751 )
...
* chore(deps): update bump go dependencies
* Update golangci-lint
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* Update golangci config to reflect new format
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
* remove deprecated ioutil package
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
---------
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>
2025-01-17 05:51:08 +00:00
renovate[bot]
63cfc1f045
chore(deps): update bump go dependencies ( #736 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-24 15:07:44 +00:00
饺子w (Yumechi)
c81a9a2c88
Set umask=0 when creating unix sockets ( #743 )
...
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
2024-11-22 18:03:58 +00:00
Jannis Mattheis
cc7da2ace3
Merge pull request #734 from gotify/panic-bool
...
fix: panic when setting bool via envvar
2024-11-16 09:31:15 +01:00
Jannis Mattheis
6b3ff77651
fix: panic when setting bool via envvar
...
$ docker run -e GOTIFY_SERVER_SSL_ENABLED=true --rm gotify/server:2.6.0
Starting Gotify version 2.6.0@2024-11-15-19:19:19
panic: reflect.Set: value of type bool is not assignable to type *bool
goroutine 1 [running]:
reflect.Value.assignTo({0xf5e000?, 0x1c375a8?, 0x19?}, {0x108809b, 0xb}, 0xf42960, 0x0)
/usr/local/go/src/reflect/value.go:3358 +0x299
reflect.Value.Set({0xf42960?, 0xc0000cd200?, 0x4?}, {0xf5e000?, 0x1c375a8?, 0xf42960?})
/usr/local/go/src/reflect/value.go:2313 +0xe6
github.com/jinzhu/configor.(*Configor).processTags(0xc0002f0270, {0xc0002eecc0?, 0xc0000cd200?}, {0xc0002ef0c0, 0x3, 0x4})
/go/pkg/mod/github.com/jinzhu/configor@v1.2.2/utils.go:307 +0xc11
github.com/jinzhu/configor.(*Configor).processTags(0xc0002f0270, {0xc0002eec80?, 0xc0000cd1e0?}, {0xc0002ad880, 0x2, 0x2})
/go/pkg/mod/github.com/jinzhu/configor@v1.2.2/utils.go:330 +0xe79
github.com/jinzhu/configor.(*Configor).processTags(0xc0002f0270, {0xf41420?, 0xc0000cd1e0?}, {0xc0002f0610, 0x1, 0x1})
/go/pkg/mod/github.com/jinzhu/configor@v1.2.2/utils.go:330 +0xe79
github.com/jinzhu/configor.(*Configor).load(0xc0002f0270, {0xf41420, 0xc0000cd1e0}, 0x0, {0xc0002ad7a0?, 0x1c7c000?, 0xc0002ad7a0?})
/go/pkg/mod/github.com/jinzhu/configor@v1.2.2/utils.go:415 +0x3f8
github.com/jinzhu/configor.(*Configor).Load(0xc0002f0270, {0xf41420, 0xc0000cd1e0}, {0xc0002ad7a0, 0x2, 0x2})
/go/pkg/mod/github.com/jinzhu/configor@v1.2.2/configor.go:92 +0x13c
github.com/gotify/server/v2/config.Get()
/src/gotify/config/config.go:69 +0xf3
main.main()
/src/gotify/app.go:34 +0x1e5
2024-11-15 22:53:41 +01:00
Jannis Mattheis
8639316ead
Merge pull request #733 from gotify/silent
...
fix: enable silent mode
2024-11-15 19:16:17 +01:00
Jannis Mattheis
5395112667
fix: enable silent mode
...
Hides this log output
Failed to find configuration /etc/gotify/config.yml
Failed to find configuration config.yml, using example file config.example.yml
2024-11-15 18:35:50 +01:00
renovate[bot]
2eee8009f3
chore(deps): update codecov/codecov-action action to v5 ( #732 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-14 14:10:08 -06:00
renovate[bot]
bf177f2487
chore(deps): update module golang.org/x/crypto to v0.29.0 ( #728 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-09 02:36:23 -06:00
饺子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