This page describes configuration items to tweak how inbound and outbound requests are handled within the application.
For details on how to set the below configuration items, please read Environment Variables.
When logging into the application, sometimes a redirect URI is specified to take the user back to the page that they were previously viewing. The redirect URI is validated for security reasons, and by default, only the help desk domain is permitted.
Trusted hosts can be configured using a comma delimited list of host names via the TRUSTED_REDIRECT_HOSTS environment variable. For example, foo.com, foo.co.uk. To trust all hosts, use *.
TRUSTED_REDIRECT_HOSTS=foo.com, foo.co.uk
If your web servers sit behind a load balancer, HTTP cache, or other intermediary (reverse) proxy, SupportPro requires some additional configuration. Otherwise, SupportPro will not be able to correctly determine the client's IP address, whether the client is connecting via HTTPS, the client's port, and the hostname being requested.
To solve that, you can configure a comma delimited list of reverse proxy addresses (IP addresses and hostnames) via the TRUSTED_PROXY_IPS environment variable. For example, 192.168.1.1, 192.168.1.2.
TRUSTED_PROXY_IPS=192.168.1.1, 192.168.1.2
If you are using Amazon AWS, Cloudflare, or another "cloud" load balancer provider, you may not know the IP addresses of your actual balancers. In this case, you may use * to trust all proxies.
TRUSTED_PROXY_IPS=*
The application makes several external network connections, for example to our licensing server, to download emails, and so on. If necessary, this traffic can be sent through an outbound proxy.
The outbound proxy can be configured via the OUTBOUND_PROXY_URI environment variable and accepts a valid URI.
OUTBOUND_PROXY_URI=socks5://bob:marley@localhost:12345
The following schemes are supported:
http://https://socks4://socks4a://socks5://socks5h://
Article Number: 263
Author: Jul 22, 2024
Last Updated: Jul 22, 2024
Online URL: https://docs.supportpro.vn/article/requests-263.html