Commit Graph

583 Commits

Author SHA1 Message Date
Jannis Mattheis 0d65ca6d3f TSLint -> ESLint 2020-09-12 14:19:43 +00:00
Jannis Mattheis 33c0e01dae Update ui deps 2020-09-12 14:19:43 +00:00
Jannis Mattheis dd86646234 Update go deps 2020-09-12 14:19:43 +00:00
Jannis Mattheis de226ce0cf Make ws ping interval configurable 2020-09-10 16:22:04 +00:00
Jannis Mattheis 909eeff406 Make keepalive period configurable 2020-09-10 16:22:04 +00:00
D. Domig 7993d0eef8 Change pass to password 2020-09-02 16:33:24 +00:00
D. Domig aecd3d8081 Change token 2020-09-02 16:28:37 +00:00
Richard Szolár 923030cf44 Update "github.com/go-yaml/yaml" import path to "gopkg.in/yaml.v2" as recommended per the project's documentation 2020-08-20 20:25:37 +02:00
Jannis Mattheis 307e61474b Update gotify/configor
gotify/configor@4681376e
2020-07-18 20:49:49 +02:00
Jannis Mattheis d45e0da6a8 Allow delete for > uint32 ids
For ids uint is used, this is platform specific and either uint32
or uint64. The parsing for parameters in the api expected the ids to
have 32bit size.

I thought about changing all our ids to int64 but we sadly have one uint
usage in the plugin api:
b0e2eca8e3/plugin.go (L13-L14)
2020-07-01 19:44:06 +02:00
Jannis Mattheis 757fa17d26 Use int64 as input 2020-06-24 18:32:35 +02:00
Jannis Mattheis 348f96b891 Use int64 instead of uint64
uint64 isn't a valid swagger format.
https://swagger.io/specification/v2/#dataTypeFormat
2020-06-24 18:21:04 +02:00
Jannis Mattheis a9249bbd28 Don't use id provided from POST /message api 2020-06-23 18:39:43 +02:00
Jannis Mattheis 92a468bf74 Fix packets.go:36: unexpected EOF
Mysql has a setting called wait_timeout, which defines the duration
after which a connection may not be used anymore. Gotify doesn't
apply this, and expects the connection to work without timeout.

The fix is to set SetConnMaxLifetime, this however, isn't the
exact counterpart for wait_timeout on mysql. wait_timeout is
relative to the last use of the connection. The go setting
uses the creation of the connection as base.

Example error output:
```
[mysql] 2020/05/31 17:53:02 packets.go:36: unexpected EOF
[GIN] 2020/05/31 - 17:53:02 | 500 |     247.062µs |        10.2.2.1 | GET      "/application"
Error #01: an error occured while authenticating user

(/proj/database/client.go:24)
[2020-05-31 17:53:02]  invalid connection
```
2020-06-01 19:16:12 +02:00
Jannis Mattheis 52efbbcceb Ignore packrd formatting 2020-05-29 19:05:11 +02:00
eikendev 894b1c5559 Support custom ports in Docker healthcheck 2020-05-29 19:05:11 +02:00
Stewart Thomson 93b30c5c44
Allows browser extensions in cors (#317) 2020-05-10 06:32:27 +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 e1a6847c84 Format 2020-05-08 15:16:43 +02:00
Jannis Mattheis 1ee817dc2b yarn upgrade --latest 2020-05-08 15:16:43 +02:00
Jannis Mattheis f80c9d2270 Update puppeteer 2020-05-08 15:16:43 +02:00
Jannis Mattheis 97876c5a2b Update go 1.14.2 2020-05-08 15:16:43 +02:00
Jannis Mattheis a8b7a5fde0 Update mattn/go-sqlite3 2020-05-08 15:16:43 +02:00
Jannis Mattheis 41c28e9385 Remove apache thrift replace directive 2020-05-08 15:16:43 +02:00
Jannis Mattheis 808ad482d2 Update lib/pq 2020-05-08 15:16:43 +02:00
Jannis Mattheis 33bc7051f8 Update x/crypto 2020-05-08 15:16:43 +02:00
Jannis Mattheis 1629a66c14 Update stretchr/testify 2020-05-08 15:16:43 +02:00
Jannis Mattheis ca233dd8b5 Update gin-gonic 2020-05-08 15:16:43 +02:00
Jannis Mattheis 415dd862f8 Update swagger 2020-05-08 10:43:17 +02:00
Jannis Mattheis 7b90b8a8f5 Use v2 in package path 2020-05-08 10:43:17 +02:00
Jannis Mattheis 75c63bdf39 Update base image 2020-05-04 13:24:23 +02:00
Jannis Mattheis 68cf35b4ac Add healthcheck to docker amd64 2020-05-04 13:24:23 +02:00
Stewart Thomson 3f04d50088
Allow multiple CORS origins 2020-04-26 11:27:24 +00:00
Stewart Thomson d22326bba8
Open github link in new tab (#294) 2020-04-14 13:56:00 +00:00
Jannis Mattheis fc1ac65954 Fix flaky plugin ui test
Sad thing, I don't really know why it doesn't work on travis-ci,
but somehow, the click doesn't register or atleast doesn't do what it
should.
2020-03-22 10:02:24 +01:00
Yasa Akbulut e6bd7c03dd Make Message cards responsive
On breakpoints smaller than 'sm', the date of the message will wrap
to a new line; and the image will be 32x32 instead of 70x70
2020-03-22 10:02:24 +01:00
Yasa Akbulut 07b0226412 Wrap control buttons on DefaultPage 2020-03-22 10:02:24 +01:00
Yasa Akbulut 0f7c7dd717 Use FC as SFC is deprecated in favor of it 2020-03-22 10:02:24 +01:00
Yasa Akbulut c46bbdc01f Make layout responsive 2020-03-22 10:02:24 +01:00
Yasa Akbulut e858d5ad3f Bump material-ui/core and material-ui/icons 2020-03-22 10:02:24 +01:00
Yasa Akbulut ce056faed8 Use react-scripts proxy for development
Setting the `defaultDevConfig.url` to use the default port and
proxying requests via the react-scripts proxy overcomes CORS issues
and reduces friction for ui contributions
2020-03-22 10:02:24 +01:00
Jannis Mattheis 66ae74f830 Skip /etc/gotify/config.yml in tests
Our config test ensures that the correct values will be extracted from
the config file and environment variables.
A globally defined config may change settings which are expected to have
default values.

See
https://github.com/gotify/server-aur-git/pull/2#issuecomment-597598574
2020-03-14 09:46:03 +01:00
Jannis Mattheis 0863aba9cb Update packr/v2 2020-03-07 20:15:25 +01:00
Jannis Mattheis e9c9a6e261 [#274] Allow setting timezone via TZ environment variable in docker 2020-02-19 17:14:37 +01:00
Raphael e56f7bc4c7
Add notification sound for incoming messages (#267) 2020-02-12 18:21:35 +01:00
eikendev 01cec3ca91 Add .editorconfig file. 2020-02-11 17:27:22 +01:00
Jannis Mattheis 3d52a117b1 Add button for requesting notification permission 2020-02-06 20:15:14 +01: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
Dennis Marttinen b2b56e09af Use --no-cache when installing ca-certificates in the Dockerfile
Signed-off-by: Dennis Marttinen <38858901+twelho@users.noreply.github.com>
2019-12-30 09:26:38 +00:00
Dennis Marttinen 1cea7a05b9 Expose port 80 by default in the Docker images
Signed-off-by: Dennis Marttinen <38858901+twelho@users.noreply.github.com>
2019-12-30 09:26:38 +00:00