Commit Graph

5 Commits

Author SHA1 Message Date
zegkljan
d25e58905f OpenAPI spec, upgraded deps.
All checks were successful
continuous-integration/drone/push Build is passing
* Added OpenAPI specification. (#5)
* Upgraded to go 1.20.
* Upgraded dependencies.
2023-06-10 16:12:50 +02:00
zegkljan
7c8a430f49 App version management.
* DB migration adds app_versions table for managing known app versions.
* /ping reads app version from User-Agent header and responds with latest version if the app is OKO and its version is older than the latest one stored.
* Added endpoint /app-versions which
  * lists all known versions via GET
  * adds/updates a version via POST

#3
Fix #4
2022-09-23 00:59:20 +02:00
zegkljan
a5d98c2eb7 Resizing photos, db vacuuming.
* Incoming feature photos are resized and compressed to JPEG to the given dimensions and quality.
* Database is vacuumed during cleanup.
2022-09-11 19:40:52 +02:00
zegkljan
e6fef137e7 Upgraded go & alpine, fix db checkpointing.
* Go version set to 1.19 in go.mod.
* Alpine upgraded to 3.16 in Dockerfile.
* DB restart checkpoint is forced manually after 15 mins of inactivity.
* DB truncate checkpoint is forced manually at exit.
2022-08-09 10:50:49 +02:00
zegkljan
38318ca654 basic server
* basic untested implementation of server
* updating data not implemented yet
2022-01-28 00:29:06 +01:00