Skip to content

Commit

Permalink
Set trust proxy on appview for xff headers (#1930)
Browse files Browse the repository at this point in the history
set trust proxy on appview
  • Loading branch information
dholms authored Dec 5, 2023
1 parent cf53d20 commit e8473cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/bsky/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class BskyAppView {
const { db, redis, config, signingKey, algos = {} } = opts
let maybeImgInvalidator = opts.imgInvalidator
const app = express()
app.set('trust proxy', true)
app.use(cors())
app.use(loggerMiddleware)
app.use(compression())
Expand Down

0 comments on commit e8473cb

Please sign in to comment.