1

Custom proxy_pass protocol


S
Sonny M

Please create a variable which allows you to override the default 'http' or 'https' proxy_pass backend without the need to create a custom template override, since a lot of apps require 'http' as the backend. Even when using SSL.

Example. Change the following (nginx_server_secure.conf):

proxy_pass |PROXY_IP|:|PORT_8081|;

To:

proxy_pass |PROXY_PROTOCOL|://|PROXY_IP|:|PORT_8081|;

This allows you to set the variable below under the CUSTOM1 section in Custom HTTPD Configurations:

|?PROXY_PROTOCOL=http|

A

Activity Newest / Oldest

S

Sonny M

For example, I have Mattermost running on http:// 127.0.0.1:8065. With the template override I can add the following to CUSTOM1 (Custom HTTPD Configurations) for Mattermost to work correctly.

|?PROXY_IP=127.0.0.1|
|?PROXY_PROTOCOL=http|
|?PORT_8080=8065|
|?PORT_8081=8065|