From d87d5f11806b795f8312e960cad7e51377f0a2b7 Mon Sep 17 00:00:00 2001 From: Jono Date: Sat, 9 Mar 2024 16:27:38 -0800 Subject: [PATCH] feat: Run with latest Google App Engine Flex environment requirements (#454) --- app.yaml | 4 ++++ index.js | 2 ++ 2 files changed, 6 insertions(+) diff --git a/app.yaml b/app.yaml index 47d68ce621..0c2077d199 100644 --- a/app.yaml +++ b/app.yaml @@ -1,6 +1,10 @@ runtime: nodejs env: flex +runtime_config: + operating_system: "ubuntu22" + runtime_version: "18" + env_variables: # --REQUIRED-- DATABASE_URI: mongodb://localhost:27017/dev diff --git a/index.js b/index.js index 2baf852c93..c4c973f5f3 100644 --- a/index.js +++ b/index.js @@ -24,6 +24,8 @@ export const config = { export const app = express(); +app.set('trust proxy', true); + // Serve static assets from the /public folder app.use('/public', express.static(path.join(__dirname, '/public')));