Skip to content

Commit 7b3791a

Browse files
committed
nodeBB compatibility
1 parent 16f5340 commit 7b3791a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nodeapp.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ public function generate_nginx_files( $nodeapp_folder, $inc_root = true ) {
236236
$app = str_replace( '.config.js', '', $app );
237237
$nginx .= 'location ' . $subfolder . ' {
238238
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
239+
proxy_set_header X-Forwarded-Proto $scheme;
239240
proxy_set_header Host $host;
240241
proxy_pass http://127.0.0.1:$' . $app . '_port;
241242
proxy_http_version 1.1;

0 commit comments

Comments
 (0)