Introduce TYPEORM_EXTRA env variable (#770)

Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
This commit is contained in:
Florent 2023-11-27 16:47:56 +01:00 committed by GitHub
parent 7d57114d21
commit 961b1c1956
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,7 @@ etc.
Grist Labs is an open-core company. We offer Grist hosting as a Grist Labs is an open-core company. We offer Grist hosting as a
service, with free and paid plans. We also develop and sell service, with free and paid plans. We also develop and sell
features related to Grist using a proprietary license, targeted at the features related to Grist using a proprietary license, targeted at the
needs of enterprises with large self-managed installations. needs of enterprises with large self-managed installations.
We see data portability and autonomy as a key value, and `grist-core` is an essential part of that. We are committed to maintaining and improving the `grist-core` codebase, and to be thoughtful about how proprietary offerings impact data portability and autonomy. We see data portability and autonomy as a key value, and `grist-core` is an essential part of that. We are committed to maintaining and improving the `grist-core` codebase, and to be thoughtful about how proprietary offerings impact data portability and autonomy.
@ -396,6 +396,7 @@ TYPEORM_PASSWORD | password to use
TYPEORM_PORT | port number for db if not the default for that db type TYPEORM_PORT | port number for db if not the default for that db type
TYPEORM_TYPE | set to 'sqlite' or 'postgres' TYPEORM_TYPE | set to 'sqlite' or 'postgres'
TYPEORM_USERNAME | username to connect as TYPEORM_USERNAME | username to connect as
TYPEORM_EXTRA | any other properties to pass to TypeORM in JSON format
#### Testing: #### Testing:

View File

@ -142,6 +142,7 @@ export function getTypeORMSettings(): DataSourceOptions {
"subscribers": [ "subscribers": [
`${codeRoot}/app/gen-server/subscriber/*.js` `${codeRoot}/app/gen-server/subscriber/*.js`
], ],
...JSON.parse(process.env.TYPEORM_EXTRA || "{}"),
...cache, ...cache,
}; };
} }