Skip to content

Commit

Permalink
feat: Run with latest Google App Engine Flex environment requirements (
Browse files Browse the repository at this point in the history
  • Loading branch information
jonobr1 authored Mar 10, 2024
1 parent 7095c6b commit d87d5f1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')));

Expand Down

0 comments on commit d87d5f1

Please sign in to comment.