We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 49e16a9 + 70295ba commit 3465393Copy full SHA for 3465393
config.js
@@ -22,6 +22,9 @@ const config = {
22
// can be true or a specific url like https://example.com:8443
23
// keep empty to disable
24
"forceHttps": '',
25
+ // Use trust proxy to show real IP on logs when reverse proxy are used
26
+ // see https://expressjs.com/en/guide/behind-proxies.html for options
27
+ "trustProxy": '',
28
// retention options in seconds:label
29
"retentions": {
30
"one-time": "one time download",
lib/endpoints.js
@@ -42,6 +42,10 @@ if (config.accessLog) {
42
app.use(morgan(config.accessLog));
43
}
44
45
+if (config.trustProxy) {
46
+ app.set('trust proxy', config.trustProxy);
47
+}
48
+
49
if (config.forceHttps) {
50
app.enable('trust proxy');
51
app.use(function(req, res, next) {
0 commit comments