mirror of
https://github.com/wassname/talk.git
synced 2026-08-07 11:29:44 +08:00
[next] Added trust proxy configuration (#2471)
* feat: added trust proxy configuration * chore: version bump
This commit is contained in:
committed by
Kim Gardner
parent
abb793b16a
commit
e76fddd13c
@@ -59,6 +59,14 @@ const config = convict({
|
||||
default: "en-US",
|
||||
env: "LOCALE",
|
||||
},
|
||||
trust_proxy: {
|
||||
doc:
|
||||
'When provided, it configures the "trust proxy" settings for Express (See https://expressjs.com/en/guide/behind-proxies.html)',
|
||||
format: String,
|
||||
default: "",
|
||||
env: "TRUST_PROXY",
|
||||
arg: "trustProxy",
|
||||
},
|
||||
enable_graphiql: {
|
||||
doc: "When true, this will enable the GraphiQL interface at /graphiql",
|
||||
format: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user