Skip to content
A simple server for sending and receiving messages in real-time per WebSocket. (Includes a sleek web-ui)
Go TypeScript Other
Branch: master
Clone or download

Latest commit

jmattheis 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 #1: an error occured while authenticating user

(/proj/database/client.go:24)
[2020-05-31 17:53:02]  invalid connection
```
Latest commit 92a468b Jun 1, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE Update issue templates (#172) Mar 23, 2019
api Use v2 in package path May 8, 2020
auth Allows browser extensions in cors (#317) May 10, 2020
config Use v2 in package path May 8, 2020
database Fix packets.go:36: unexpected EOF Jun 1, 2020
docker Support custom ports in Docker healthcheck May 29, 2020
docs Update swagger May 8, 2020
error Update gin-gonic May 8, 2020
hack/packr Update packr/v2 Mar 7, 2020
mode Use gofmt -s Mar 25, 2018
model Add health api Aug 16, 2019
plugin Use v2 in package path May 8, 2020
router Use response header if cors config is empty May 9, 2020
runner Use v2 in package path May 8, 2020
test Use v2 in package path May 8, 2020
ui Format May 8, 2020
.editorconfig Add .editorconfig file. Feb 11, 2020
.gitignore Change default folder & db path to data/* May 10, 2018
.travis.yml Update packr/v2 Mar 7, 2020
CODEOWNERS Add code owners Mar 16, 2019
CODE_OF_CONDUCT.md Add code of conduct Mar 2, 2018
CONTRIBUTING.md improve CONTRIBUTING.md (#181) Apr 4, 2019
GO_VERSION Update go 1.14.2 May 8, 2020
LICENSE Use logo from gotify/logo. Mar 8, 2019
Makefile Ignore packrd formatting May 29, 2020
README.md improve CONTRIBUTING.md (#181) Apr 4, 2019
app.go Use v2 in package path May 8, 2020
config.example.yml Allow multiple CORS origins Apr 26, 2020
docker-push.sh Add armv7 docker build Sep 28, 2019
go.mod Update go 1.14.2 May 8, 2020
go.sum Update mattn/go-sqlite3 May 8, 2020
ui.png [ImgBot] Optimize images Jan 20, 2019

README.md

gotify/server

Build Status codecov Go Report Card Matrix Docker Pulls latest release

Intro

We wanted a simple server for sending and receiving messages (in real time per WebSocket). For this, not many open source projects existed and most of the existing ones were abandoned. Also, a requirement was that it can be self-hosted. We know there are many free and commercial push services out there.

Features

Gotify UI screenshot

  • send messages via REST-API
  • receive messages via WebSocket
  • manage users, clients and applications
  • Plugins
  • Web-UI -> ./ui
  • CLI for sending messages -> gotify/cli
  • Android-App -> gotify/android

Get it on Google Play Get it on F-Droid

(Google Play and the Google Play logo are trademarks of Google LLC.)


Documentation

InstallConfigurationREST-APISetup Dev Environment

Contributing

We welcome all kinds of contribution, including bug reports, feature requests, documentation improvements, UI refinements, etc. Check out CONTRIBUTING.md for guidelines.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the MIT License - see the LICENSE file for details

You can’t perform that action at this time.