Skip to content

Commit

Permalink
add trust proxy option for express
Browse files Browse the repository at this point in the history
  • Loading branch information
betschki committed Aug 10, 2024
1 parent 4a52a9d commit a3800e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ const BUNNYCDN_PURGE_OLD_CACHE = process.env.BUNNYCDN_PURGE_OLD_CACHE === 'true'
const BUNNYCDN_STORAGE_ZONE_NAME = process.env.BUNNYCDN_STORAGE_ZONE_NAME ?? '';
const BUNNYCDN_STORAGE_ZONE_PASSWORD = process.env.BUNNYCDN_STORAGE_ZONE_PASSWORD ?? '';

app.set('trust proxy', true);

const proxy = httpProxy.createProxyServer({
target: GHOST_URL,
secure: false,
Expand Down

0 comments on commit a3800e6

Please sign in to comment.