TITLE:
Docker-EXT proxy rules missing header
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Plesk Onyx, Version 17.8.11 Update #39, Debian 8.11
PROBLEM DESCRIPTION:If you configure proxy rules to docker in the Plesk GUI, several lines of nginx config get added to the virtual hosts nginx file.
however one header is important for a lot of applications that run behind an nginx proxy.
proxy_set_header X-Forwarded-Proto $scheme;
examples that don't work without are e.g. varnish, gitlab, openproject
STEPS TO REPRODUCE:however one header is important for a lot of applications that run behind an nginx proxy.
proxy_set_header X-Forwarded-Proto $scheme;
examples that don't work without are e.g. varnish, gitlab, openproject
enabling proxy rules for an application that needs the "X-Forwarded-Proto" results in a buggy, non-working application (in case of openproject because the auth cookie is not set correctly)
see here:
422 CSRF token problem | OpenProject Community
ACTUAL RESULT:see here:
422 CSRF token problem | OpenProject Community
nginx config is missing the X-Forwarded-Proto header
EXPECTED RESULT:nginx config having the X-Forwarded-Proto header set
ANY ADDITIONAL INFORMATION:I created a modified version of /opt/psa/admin/conf/templates/default/domain/nginxDomainVirtualHost.php and added a crude hack to add the missing header (Line 77 to) <?php echo str_replace("}",'proxy_set_header X-Forwarded-Proto $scheme; }',$VAR->domain->physicalHosting->nginxExtensionsConfigs); ?>
with this header e.g. openproject is working
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:with this header e.g. openproject is working
Confirm bug