Trung Ng
de7a4e97f1
Subpath handling for Gotify ( #533 ) ( #875 )
2025-11-19 21:59:12 +00: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
Moin Ahmad
58084c8dea
implement HEAD /health ( #688 )
...
Co-authored-by: 饺子w (Yumechi) <yume@yumechi.jp>
2024-09-22 12:02:48 -05: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
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
eternal-flame-AD
7bf80ee6f1
Add last used to client & application
2023-08-06 12:30:22 +02: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
33d86e41c2
Only serve image files on ./image
...
This is an addition to the existing XSS fix in the previous commit.
2022-12-29 12:46:41 +01:00
Jannis Mattheis
8affeced49
Mask token in log
2021-09-27 17:46:12 +02:00
Jannis Mattheis
36eb8d8b2b
Inject register & version information into index.html
...
The registration form will always be shown inside the dev mode,
because there is no api that transmits if registration is enabled.
2021-08-04 19:39:43 +02:00
pigpig
c172590b92
Add registration
...
Can be enabled via the registration config flag. (disabled per default)
Fixes gotify/server#395
Co-authored-by: pigpig <pigpig@pig.pig>
Co-authored-by: Karmanyaah Malhotra <32671690+karmanyaahm@users.noreply.github.com>
Co-authored-by: Jannis Mattheis <contact@jmattheis.de>
2021-08-04 19:39:43 +02:00
Jannis Mattheis
3454dcd602
Use golangci-lint
2020-11-01 10:47:02 +01:00
Jannis Mattheis
de226ce0cf
Make ws ping interval configurable
2020-09-10 16:22:04 +00:00
Jannis Mattheis
7523ad0d2e
Use response header if cors config is empty
...
The cors middleware of gin denies the request with 403 forbidden if
the origin differs.
2020-05-09 16:41:53 +02:00
Jannis Mattheis
7b90b8a8f5
Use v2 in package path
2020-05-08 10:43:17 +02:00
Stewart Thomson
3f04d50088
Allow multiple CORS origins
2020-04-26 11:27:24 +00:00
Jannis Mattheis
0a8fc47e50
Reduce ping interval
...
Some reverse proxies have default timeouts of 60 seconds after they
close the websocket connetion.
Fixes #245
2020-01-18 16:17:30 +01:00
Jannis Mattheis
81c4a73df3
Add health api
2019-08-16 09:28:57 +02:00
GianOrtiz
e32359ed15
Add update client api and dialog ( #164 )
2019-03-16 11:18:51 +01:00
eternal-flame-AD
ccbe64a117
use gzip middleware for WebUI
2019-02-09 13:24:44 +01:00
eternal-flame-AD
e5b24f4c92
Add plugin feature
...
Fixed database migration
Added a plugin system based on the go plugin package
2019-02-09 12:52:01 +01:00
Jannis Mattheis
25576e2ed1
Remove packed swagger ui, use cdnjs instead
2019-01-21 19:28:07 +01:00
Jannis Mattheis
68b160997d
Format all go files
2019-01-01 23:34:42 +01:00
Eugene Gavrilov
b5b2f19dc2
[ #23 ] Fix check same origin function
2018-12-12 21:30:59 +01:00
Eugene Gavrilov
b42beb0371
[ #23 ] add headers to configuration
2018-12-04 19:58:01 +01:00
Jannis Mattheis
dfb71dabbc
Make produce/consumes more compact
2018-11-24 11:31:32 +01:00
Jannis Mattheis
c841e1cd24
Move swagger comments to api
2018-11-24 11:31:32 +01:00
Eugene Gavrilov
4a6863eda2
[ #69 ] add end-point for update application name and description
2018-11-23 21:39:07 +01:00
Jannis Mattheis
b58062f508
Fix swagger definition
2018-06-03 10:49:53 +02:00
Jannis Mattheis
caef4ff74f
[ #34 ] Update update api documentation & Increase api version
2018-04-13 18:56:11 +02:00
Jannis Mattheis
1831b6078f
[ #34 ] Add db calls for paged message api
2018-04-13 18:56:11 +02:00
Jannis Mattheis
1262f43846
Close web socket connection on delete user
2018-04-02 12:35:16 +02:00
Jannis Mattheis
6954fb5adf
Close web socket connection on delete client
2018-04-02 12:35:16 +02:00
Jannis Mattheis
acc8c4d35f
Serve images folder in router
2018-03-31 18:44:49 +02:00
Jannis Mattheis
ab7cc7d1e0
Add UploadApplicationImage API to router
2018-03-31 18:44:49 +02:00
Jannis Mattheis
0f2e7cf5e2
Use gofmt -s
2018-03-25 19:33:29 +02:00
Jannis Mattheis
505bc405d8
Use database util inside router test
2018-03-25 19:33:29 +02:00
Jannis Mattheis
01c6800ae8
Move stream to api
2018-03-25 19:33:29 +02:00
Jannis Mattheis
61cf795c47
Move uigo to ui
2018-03-25 19:33:29 +02:00
Jannis Mattheis
ff73e0b5e9
Use uigo in router
2018-03-18 17:29:15 +01:00
Jannis Mattheis
2e29efe90b
Add Dev router config
2018-03-18 17:29:15 +01:00
Jannis Mattheis
7e37c34d2f
Adjust router documentation
2018-03-11 17:58:44 +01:00
Jannis Mattheis
ece3e3ee4f
Adjust router test for new app/client id
2018-03-11 17:58:44 +01:00
Jannis Mattheis
db60d2f0e7
Use correct models in user apis
2018-02-28 20:22:25 +01:00
Jannis Mattheis
3a2da09186
Improve documentation
2018-02-28 20:22:25 +01:00
Jannis Mattheis
66a7c3ee47
Remove branch from version info
...
When travis builds a tag, no branch is set
2018-02-24 16:05:00 +01:00