Skip to content

Commit d87d5f1

Browse files
authored
feat: Run with latest Google App Engine Flex environment requirements (#454)
1 parent 7095c6b commit d87d5f1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
runtime: nodejs
22
env: flex
33

4+
runtime_config:
5+
operating_system: "ubuntu22"
6+
runtime_version: "18"
7+
48
env_variables:
59
# --REQUIRED--
610
DATABASE_URI: mongodb://localhost:27017/dev

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ export const config = {
2424

2525
export const app = express();
2626

27+
app.set('trust proxy', true);
28+
2729
// Serve static assets from the /public folder
2830
app.use('/public', express.static(path.join(__dirname, '/public')));
2931

0 commit comments

Comments
 (0)