1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-25 10:43:13 +02:00
immich/server
Hammer 5340683199
Allow the use of SSL connections to the postgres database. (#1256)
* Allow the use of SSL connections to the postgres database.

* Add default SSL false when no env set

* Add commented out example of DB_SSL env

* Refactor add SSL option into PostgresConnectionOptions

* Refactor the database connection to optionally use a URL string instead of the env variables

* Refactor the database connection based on feedback

* Add dynamic validation around the DB envs

* Remove DB_URL from example

* Fix rebase

* Add back the optional database port in the example

* Formatted file correctly

* change types to a const to fix tests
2023-01-20 14:27:01 -06:00
..
apps feat(server): turn off machine learning endpoint (#1361) 2023-01-20 10:35:55 -06:00
bin fix(mobile): omit null values from json requests (#1212) 2023-01-09 22:08:45 -06:00
libs Allow the use of SSL connections to the postgres database. (#1256) 2023-01-20 14:27:01 -06:00
openapi-generator/templates/serialization/native fix(mobile): omit null values from json requests (#1212) 2023-01-09 22:08:45 -06:00
.dockerignore feat(immich-server) use ubuntu base-image (#851) 2022-10-24 14:59:07 -05:00
.eslintrc.js chore(docs): contributing (#1311) 2023-01-12 08:44:11 -06:00
.gitignore Added generated geocoding files to gitignore 2022-09-28 15:44:43 -05:00
.prettierignore chore(docs): contributing (#1311) 2023-01-12 08:44:11 -06:00
.prettierrc Add web interface with admin functionality (#167) 2022-05-21 02:23:55 -05:00
Dockerfile feat(server): Fix exif data parsing (#1326) 2023-01-17 09:29:49 -06:00
immich-openapi-specs.json bump OpenAPI Version 2023-01-18 16:25:21 -06:00
LICENSE feat(docker) revert ubuntu base image (#863) 2022-10-25 14:18:37 -05:00
nest-cli.json refactor(server): domain/infra (#1298) 2023-01-11 21:34:36 -05:00
openapitools.json Add OpenAPI Specs and Response DTOs (#320) 2022-07-08 21:26:50 -05:00
package-lock.json feat(server): Fix exif data parsing (#1326) 2023-01-17 09:29:49 -06:00
package.json refactor(server): api keys (#1339) 2023-01-18 08:40:15 -06:00
README.md feat(server,web): system config for admin (#959) 2022-11-14 22:39:32 -06:00
start-microservices.sh fix(docker-build): start main process with exec (#1210) 2022-12-29 14:49:02 -06:00
start-server.sh fix(docker-build): start main process with exec (#1210) 2022-12-29 14:49:02 -06:00
tsconfig.build.json Transfer repository from Gitlab 2022-02-03 10:06:44 -06:00
tsconfig.json Fix e2e tests (#1321) 2023-01-15 13:08:24 -06:00

How to run migration

  1. Attached to the container shell
  2. Run npm run typeorm -- migration:generate ./libs/database/src/<migration-name> -d libs/database/src/config/database.config.ts
  3. Check if the migration file makes sense
  4. Move the migration file to folder server/libs/database/src/migrations in your code editor.