mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
b6b2d05be0
Co-authored-by: Florent FAYOLLE <florent.fayolle@beta.gouv.fr>
23 lines
869 B
TypeScript
23 lines
869 B
TypeScript
import { checkMinIOBucket, checkMinIOExternalStorage,
|
|
configureMinIOExternalStorage } from 'app/server/lib/configureMinIOExternalStorage';
|
|
import { makeSimpleCreator } from 'app/server/lib/ICreate';
|
|
import { Telemetry } from 'app/server/lib/Telemetry';
|
|
|
|
export const create = makeSimpleCreator({
|
|
deploymentType: 'core',
|
|
// This can and should be overridden by GRIST_SESSION_SECRET
|
|
// (or generated randomly per install, like grist-omnibus does).
|
|
sessionSecret: 'Phoo2ag1jaiz6Moo2Iese2xoaphahbai3oNg7diemohlah0ohtae9iengafieS2Hae7quungoCi9iaPh',
|
|
storage: [
|
|
{
|
|
name: 'minio',
|
|
check: () => checkMinIOExternalStorage() !== undefined,
|
|
checkBackend: () => checkMinIOBucket(),
|
|
create: configureMinIOExternalStorage,
|
|
},
|
|
],
|
|
telemetry: {
|
|
create: (dbManager, gristServer) => new Telemetry(dbManager, gristServer),
|
|
}
|
|
});
|