mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-12-03 01:23:31 +01:00
feat: add config for trust proxy
This commit is contained in:
1 parent
a254cd965c
commit
e5cc506cb8
2 files changed
+4
-2
No files matched your search
+2
-2
@@ -37,7 +37,7 @@ export default async function start() {
|
||||
app.use(express.json());
|
||||
|
||||
app.use(compression());
|
||||
app.set("trust proxy", 1);
|
||||
app.set("trust proxy", config.TRUST_PROXY);
|
||||
app.set("etag", "strong");
|
||||
|
||||
// handle session and connection
|
||||
@@ -46,7 +46,7 @@ export default async function start() {
|
||||
app.use(passport.session());
|
||||
|
||||
startWorker();
|
||||
|
||||
|
||||
const redisClient = createClient({
|
||||
socket: {
|
||||
host: config.REDIS_HOSTNAME,
|
||||
|
||||
Reference in new issue
Block a user