• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Forwarded to devs Docker-EXT proxy rules missing header

TobiasP

Regular Pleskian
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:
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:
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:
Confirm bug
 
Thank you! Bugreport has been confirmed and submitted as PPPM-10271
 
Back
Top