1
Fork 0
Commit Graph

618 Commits

Author SHA1 Message Date
viktorstrate 3482cf42be
Change docker production environment to Debian
...to keep the build and production environments the same,
and avoid compatibility errors with libc
2021-01-31 20:58:14 +01:00
viktorstrate 5e59b2c092
Attempt to fix ARM docker builds
See also #179
2021-01-31 19:34:15 +01:00
András Maróy dca81c7918 Don't log postgres password when connecting 2021-01-31 18:53:38 +01:00
András Maróy be83849bee Implement postgres support 2021-01-31 17:07:29 +01:00
Viktor Strate Kløvedal 658e641d30
Merge pull request #175 from stz184/migrated-mediaGeoJson-to-gorm
Fixes photoview/issues#168
2021-01-30 22:20:09 +01:00
stz184 8b4e2192c2 Fixes photoview/issues#168
- Removed unnecessary migration.
2021-01-30 17:55:12 +02:00
stz184 f723bda7c5 Fixes photoview/issues#168
- Migrated mediaGeoJson resolver to GORM
- Fixed issue loading media list in MediaList() function
- Fixed typo in the column "gps_lonitude" (renamed to "gps_longitude")
2021-01-29 01:23:40 +02:00
viktorstrate fbebb13d28
Don't transcode web compatible video formats.
This relates to the following issues #131 #169 #173
2021-01-27 18:00:37 +01:00
viktorstrate 404f1898c2
Properly add new user as owner
when scanning albums already owned by other users
2021-01-26 15:30:21 +01:00
viktorstrate a4f5d26197
Fix search 2021-01-26 14:34:28 +01:00
viktorstrate 2c6701b4b3
Fix filtering favorites 2021-01-26 14:27:43 +01:00
Viktor Strate Kløvedal 9320f9d085
Merge pull request #172 from stz184/fixed-issue-deleting-users
* Fixes photoview/photoview#168
2021-01-25 09:30:52 +01:00
viktorstrate 9afacc3add
Fix the deleteOldUserAlbums function 2021-01-24 21:30:57 +01:00
viktorstrate 2d54847fed
Refactor DeleteUser resolver
- Use tx inside transaction
- Use .Clear() to delete all albums at once,
to prevent unnecessary database hits.
2021-01-24 17:25:43 +01:00
viktorstrate 35344242fa
Merge branch 'fixed-issue-deleting-users' of github.com:stz184/photoview into fixed-issue-deleting-users 2021-01-24 17:21:29 +01:00
stz184 b176694d2b
* Fixes photoview/photoview#168
Fixed issue deleting existing users.
2021-01-24 17:20:31 +01:00
stz184 1c0726b55f * Fixes photoview/photoview#168
Fixed issue deleting existing users.
2021-01-23 15:42:48 +02:00
viktorstrate c88b8ed873
fix bug regarding thumbnail urls 2021-01-22 22:36:58 +01:00
Viktor Strate Kløvedal 57b397de78
Merge pull request #171 from stz184/fixed-issue-adding-new-users
* Fixes photoview/photoview#168
2021-01-22 09:41:18 +01:00
viktorstrate 5e137392e1
avoid unnecessary sql queries 2021-01-22 09:35:54 +01:00
stz184 a46c0ff98e * Fixes photoview/photoview#168
Fixed issue adding new users.
2021-01-21 22:59:34 +02:00
viktorstrate 2c230d917a
Further gorm attributes cleanup 2021-01-19 18:35:19 +01:00
viktorstrate fc515aa375
Cleanup gorm model attributes + add indexes 2021-01-19 17:31:37 +01:00
viktorstrate 4bc50583d2
Add db max open connections again 2021-01-19 16:59:10 +01:00
Viktor Strate Kløvedal 0bf86a8830
Merge pull request #170 from photoview/refactor-exif
Fix and refactor EXIF
2021-01-19 16:47:49 +01:00
viktorstrate de35a06014
Add db resolver for media.exif 2021-01-19 16:46:15 +01:00
viktorstrate 46ae5115bb
Refactor EXIF parsing 2021-01-19 16:39:57 +01:00
viktorstrate 9691572154
Fix bug causing video routes to not be found 2021-01-19 16:04:33 +01:00
viktorstrate dcca5becb5
Rewrite db retry to reconfigure database on error 2021-01-19 15:49:03 +01:00
viktorstrate 52e8013026
Fix sql compatibility problem when running in Docker 2021-01-17 18:12:32 +01:00
Viktor Strate Kløvedal f0e8adfbed
Merge pull request #137 from photoview/v2.0.0
Release v2.0
2021-01-17 16:57:38 +01:00
viktorstrate 107da91700
Refactor handling of environment variables 2021-01-17 16:50:48 +01:00
viktorstrate 9098bf38d1
Make Dockerfile build sqlite dependency without errors 2021-01-17 15:59:08 +01:00
viktorstrate f0bc9fec0c
Merge remote-tracking branch 'origin/master' into v2.0.0 2021-01-17 13:21:18 +01:00
Viktor Strate Kløvedal 93748058cc
Merge pull request #167 from photoview/v2/multi-database-support
Multi database support
2021-01-17 13:16:42 +01:00
viktorstrate 621ad00fff
Update example.env with sqlite comments 2021-01-17 13:15:41 +01:00
viktorstrate 50d0aa0efb
Disable multithreaded scanners for sqlite
as it's not reliable
2021-01-17 13:08:44 +01:00
viktorstrate fcdb5b4e7b
Work on sqlite support 2021-01-17 12:45:23 +01:00
viktorstrate f711da4d9c
Merge branch 'v2.0.0' into v2/multi-database-support 2021-01-17 12:21:32 +01:00
Viktor Strate Kløvedal 2c2790c465
Merge pull request #166 from stz184/env-variables-refactoring
Prefixed the env variables to avoid naming collisions
2021-01-16 22:33:54 +01:00
stz184 26f2b753b7 Prefixed the env variables to avoid naming collisions 2021-01-16 23:27:23 +02:00
Viktor Strate Kløvedal a10f8ad1ef
Merge pull request #164 from stz184/implement-db-connection-retry
Added db connection retry logic
2021-01-16 19:04:12 +01:00
Vladimir Ivanov 85ce3a1018
Update api/database/database.go
Co-authored-by: Viktor Strate Kløvedal <viktorstrate@gmail.com>
2021-01-16 19:35:02 +02:00
Viktor Strate Kløvedal 5b8660c5a9
Remove hyphen from default SQL password
Which, in some cases, could cause problems. This solves #96
2021-01-12 21:56:43 +01:00
stz184 5b7637cb3c Added db connection retry logic 2021-01-12 20:14:28 +02:00
viktorstrate 41b122c461
Start on sqlite support
- TODO: Sqlite doesn't support MD5, all calls to this function should be done
  beforehand.
2021-01-10 18:59:01 +01:00
viktorstrate b3596751cc
Cleanup Dockerfile after removing old database migrations 2021-01-10 18:34:37 +01:00
viktorstrate 820ae78563
Delete old migrations 2021-01-10 18:29:33 +01:00
Viktor Strate Kløvedal 719dd633ce
Update Discord link with a new valid url 2021-01-06 23:35:58 +01:00
Viktor Strate Kløvedal 8700f98fd2
Merge pull request #157 from photoview/v2/user-multi-paths
Multiple and shared user paths
2021-01-06 17:28:49 +01:00