Added end to end encryption
This commit is contained in:
parent
5733975aa0
commit
6f292756ed
34 changed files with 682 additions and 69 deletions
|
|
@ -17,6 +17,7 @@ import { roleRoutes } from "./controllers/role/routes.js";
|
|||
import { inviteRoutes } from "./controllers/invite/routes.js";
|
||||
import { messageRoutes } from "./controllers/message/routes.js";
|
||||
import { websocketRoutes } from "./controllers/websocket/routes.js";
|
||||
import { initializeCommunitiesWithReadableUsersCache } from "./services/user/user.js";
|
||||
|
||||
const app = Fastify({
|
||||
logger: true,
|
||||
|
|
@ -25,6 +26,7 @@ const app = Fastify({
|
|||
app.register(cors, {
|
||||
origin: "http://localhost:3000",
|
||||
credentials: true,
|
||||
methods: ["GET", "POST", "PATCH", "DELETE", "OPTIONS"],
|
||||
});
|
||||
|
||||
app.register(cookie, { secret: getCookieSecret() });
|
||||
|
|
@ -46,3 +48,5 @@ app.listen({ port: config.port }, (err, address) => {
|
|||
if (err) throw err;
|
||||
console.log(`Server is now listening on ${address}`);
|
||||
});
|
||||
|
||||
initializeCommunitiesWithReadableUsersCache();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue