Some configurations require different redirects or proxy settings for different locations. If the portal only handles a single domain/backend, this is usually no problem and can be handled with a CUSTOM_NGINX_SERVER_CONFIG_BLOCK. However, with multiple domains (the case where https-portal really excels), things get tricky.
A notable case for complicated proxy settings is Collabora Online.
This extends the CUSTOM_NGINX_SERVER_CONFIG_BLOCK concept to per-domain config blocks. The contents of CUSTOM_NGINX_EXAMPLE_COM_CONFIG_BLOCK will be inserted just after the CUSTOM_NGINX_SERVER_CONFIG_BLOCK, but only in the configuration file for example.com.
Some configurations require different redirects or proxy settings for different locations. If the portal only handles a single domain/backend, this is usually no problem and can be handled with a
CUSTOM_NGINX_SERVER_CONFIG_BLOCK
. However, with multiple domains (the case where https-portal really excels), things get tricky.Redirects can be handled with
if
constructs, which are [https://www.nginx.com/resources/wiki/start/topics/depth/ifisevil/](evil, inefficient, and buggy).A notable case for complicated proxy settings is Collabora Online.
This extends the
CUSTOM_NGINX_SERVER_CONFIG_BLOCK
concept to per-domain config blocks. The contents ofCUSTOM_NGINX_EXAMPLE_COM_CONFIG_BLOCK
will be inserted just after theCUSTOM_NGINX_SERVER_CONFIG_BLOCK
, but only in the configuration file forexample.com
.