UNPKG

@webda/postgres

Version:

Implements Postgres on webda

57 lines (56 loc) 1.96 kB
{ "version": 2, "parameters": { "database": "webda.io", "postgresqlServer": { "host": "localhost", "user": "webda.io", "database": "webda.io", "password": "webda.io", "statement_timeout": 60000, "max": 2 }, "usePool": true, "sessionSecret": "Lp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5ENLp4B72FPU5n6q4EpVRGyPFnZp5cgLRPScVWixW52Yq84hD4MmnfVfgxKQ5EN" }, "services": { "ConsoleLogger": { "type": "Webda/ConsoleLogger", "logLevel": "INFO" }, "IdentsMapper": { "type": "Webda/Mapper", "source": "idents", "targetAttribute": "idents", "target": "users", "attribute": "_user", "fields": "type,_lastUpdate,counter", "cascade": true }, "idents": { "expose": { "restrict": { "create": true, "update": true, "get": true } }, "asyncDelete": true, "type": "PostgresStore", "table": "idents", "model": "Webda/Ident" }, "users": { "expose": { "url": "/users", "restrict": { "authentication": true, "create": true } }, "type": "PostgresStore", "table": "users", "model": "Webda/User" } } }