mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-29 06:10:47 +00:00
Merge branch 'main' of https://github.com/fosrl/pangolin
This commit is contained in:
@@ -14,6 +14,7 @@ import internal from "@server/routers/internal";
|
||||
import { authenticated, unauthenticated } from "@server/routers/external";
|
||||
import cookieParser from "cookie-parser";
|
||||
import { User } from "@server/db/schema";
|
||||
import { ensureActions } from "./db/ensureActions";
|
||||
|
||||
const dev = config.app.environment !== "prod";
|
||||
|
||||
@@ -25,6 +26,8 @@ const internalPort = config.server.internal_port;
|
||||
|
||||
app.prepare().then(() => {
|
||||
|
||||
ensureActions(); // This loads the actions into the database
|
||||
|
||||
// External server
|
||||
const externalServer = express();
|
||||
externalServer.set("trust proxy", 1);
|
||||
|
||||
Reference in New Issue
Block a user