We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b6c9522 + edae5cd commit 4135162Copy full SHA for 4135162
.env-example renamed to .env.example
@@ -1,4 +1,6 @@
1
PORT=5000
2
+# express trust proxy config for if you are using a reverse proxy
3
+TRUST_PROXY=1
4
MEMCACHE_URI=127.0.0.1:11211
5
BLOCKSYNC_URI_REST=http://localhost:8080/api/
6
CONFIG=./config.json
src/App.ts
@@ -37,6 +37,7 @@ class App {
37
private middleware(): void {
38
const schema = buildSchemaSync({ resolvers });
39
40
+ this.express.set('trust proxy', process.env.TRUST_PROXY || 1);
41
this.express.use(cors());
42
this.express.use(compression({ threshold: 0 }));
43
this.express.use(bodyParser.urlencoded({ limit: '50mb', extended: true }));
0 commit comments