Commit Graph

52 Commits

Author SHA1 Message Date
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
Jannis Mattheis cda4127551 Make password strength configurable 2018-02-23 19:39:34 +01:00
Jannis Mattheis e458bb1328 Add version api & model 2018-02-21 19:27:31 +01:00
Jannis Mattheis e13aff389b Add swagger documentation 2018-02-18 12:56:42 +01:00
Jannis Mattheis a5acb20d0e Use custom header for authentication 2018-02-18 12:56:42 +01:00
Jannis Mattheis 1e7e1a71f7 Rename to gotify 2018-02-12 16:48:01 +01:00
Jannis Mattheis 4bb6950e34 Set content type of api requests to application/json 2018-02-12 16:33:03 +01:00