Commit Graph

176 Commits

Author SHA1 Message Date
Jannis Mattheis a211656906 Add packr travis-ci build step and remove packr file 2018-03-10 13:00:55 +01:00
Jannis Mattheis 379ce58b29 Remove xgo and manually cross-compile instead 2018-03-10 13:00:55 +01:00
Jannis Mattheis 0eea69a21d Ignore node_modules 2018-03-10 13:00:55 +01:00
Jannis Mattheis 37f50d5420 Add code of conduct 2018-03-02 21:04:51 +01:00
Jannis Mattheis 70b75d68e8 Set env variable to not execute build twice 2018-02-28 20:47:34 +01:00
Jannis Mattheis cb8fb2dfc2 Remove unnecessary code 2018-02-28 20:22:25 +01:00
Jannis Mattheis d6b351f860 Remove megacheck -> dominikh/go-tools#269
TL;DR: Repository is down.
2018-02-28 20:22:25 +01:00
Jannis Mattheis db60d2f0e7 Use correct models in user apis 2018-02-28 20:22:25 +01:00
Jannis Mattheis e63876053f Add Swagger consistency check 2018-02-28 20:22:25 +01:00
Jannis Mattheis 42c319c12c Adjust spec tasks 2018-02-28 20:22:25 +01:00
Jannis Mattheis 792d14ab04 Update spec & packr 2018-02-28 20:22:25 +01:00
Jannis Mattheis 3a2da09186 Improve documentation 2018-02-28 20:22:25 +01:00
Jannis Mattheis 76c7d3244d Only execute before deploy one time 2018-02-24 17:17:39 +01:00
Jannis Mattheis 222b7089a9 Adjust README 2018-02-24 16:05:00 +01:00
Jannis Mattheis ae9512b6b6 Increase API-Version 2018-02-24 16:05:00 +01:00
Jannis Mattheis 61c4954b88 Use Makefile instead of bash scripts 2018-02-24 16:05:00 +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 fb6bb484a4 Fix typo in travis script 2018-02-23 20:39:23 +01:00
Jannis Mattheis cda4127551 Make password strength configurable 2018-02-23 19:39:34 +01:00
Jannis Mattheis 8cffa66531 Add docker & build on tags 2018-02-23 19:01:06 +01:00
Jannis Mattheis a22ace4f7d Move vInfo (in var its not initialized yet) 2018-02-21 19:39:46 +01:00
Jannis Mattheis 9bf6b0dd93 Add debug output for swagger validate 2018-02-21 19:27:31 +01:00
Jannis Mattheis 2fc25ab132 Add build script 2018-02-21 19:27:31 +01:00
Jannis Mattheis a60c2f2d2f Add some logging & version info building 2018-02-21 19:27:31 +01:00
Jannis Mattheis e458bb1328 Add version api & model 2018-02-21 19:27:31 +01:00
Jannis Mattheis a413b3d182 Log errors 2018-02-19 17:40:05 +01:00
Jannis Mattheis 80887bf4b5 Add support for ssl. 2018-02-19 17:40:05 +01:00
Jannis Mattheis 7bbe7d374a Adjust config for SSL support 2018-02-19 17:40:05 +01:00
Jannis Mattheis 9d635b15a6 Add json mapping for ID in client & app 2018-02-18 12:56:42 +01:00
Jannis Mattheis c76dffdd61 Add swagger validate build step 2018-02-18 12:56:42 +01:00
Jannis Mattheis d965b4e44d Move app.go to root project 2018-02-18 12:56:42 +01:00
Jannis Mattheis 291e5447ed Update deps 2018-02-18 12:56:42 +01:00
Jannis Mattheis e13aff389b Add swagger documentation 2018-02-18 12:56:42 +01:00
Jannis Mattheis 6a5357f9b3 Format & reorder imports 2018-02-18 12:56:42 +01:00
Jannis Mattheis 9c47b73b1d Move models and add docu to models 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
Jannis Mattheis c20e999b70 Add not found handler 2018-02-12 16:33:03 +01:00
Jannis Mattheis 74d80765e5 Fix error handler
The errors can not be of the type validation error, for example if the
json string cannot be parsed.
2018-02-12 16:33:03 +01:00
Jannis Mattheis edec140c82 Limit sqlite to one connection
we use the database connection inside the handlers from the http
framework, therefore concurrent access occurs. Sqlite cannot handle
concurrent writes, so we limit sqlite to one connection.
see https://github.com/mattn/go-sqlite3/issues/274
2018-02-12 16:33:03 +01:00
Jannis Mattheis 752d190fbc Add main app 2018-02-12 16:33:03 +01:00
Jannis Mattheis 3bac1ddadc Add config 2018-02-12 16:33:03 +01:00
Jannis Mattheis 3592ffd1b9 Add router 2018-02-11 14:33:59 +01:00
Jannis Mattheis 8ad22b1280 Return user on create user 2018-02-11 14:33:59 +01:00
Jannis Mattheis 08dbacd71b Adjust authentication to also send 403 2018-02-11 14:33:59 +01:00
Jannis Mattheis 28584184b1 Formatting 2018-02-11 14:33:59 +01:00
Jannis Mattheis 082b054f4c Improve build time
The bcrypt hashing is really slow with enabled race condition checker,
therefore we exlcude it.
2018-02-11 12:09:12 +01:00
Jannis Mattheis 166d501c7c Add error handler 2018-02-11 12:09:12 +01:00
Jannis Mattheis bd612e520b Update dep file 2018-02-11 08:54:20 +01:00