File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -186,6 +186,11 @@ module.exports = {
186
186
187
187
// The port you access the app on. (optional, default is 80)
188
188
// PORT: 8000
189
+
190
+ // The number of proxies in front of your server (optional, default is
191
+ // 1 with reverse proxy, unused otherwise).
192
+ // https://docs.meteor.com/api/connections.html
193
+ // HTTP_FORWARDED_COUNT: 1
189
194
},
190
195
191
196
// Docker log options (optional)
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export function prepareConfig(config) {
18
18
19
19
config . app . env . VIRTUAL_HOST = config . proxy . domains ;
20
20
config . app . env . HTTPS_METHOD = config . proxy . ssl && config . proxy . ssl . forceSSL ? 'redirect' : 'noredirect' ;
21
+ config . app . env . HTTP_FORWARDED_COUNT =
22
+ config . app . env . HTTP_FORWARDED_COUNT || 1 ;
21
23
22
24
if ( config . proxy . ssl && config . proxy . ssl . letsEncryptEmail ) {
23
25
config . app . env . LETSENCRYPT_HOST = config . proxy . domains ;
You can’t perform that action at this time.
0 commit comments