Additional configurations are required when channels Servers are behind a firewall for proper operation of File Upload feature of Chat
Using the following as example environment:
Firewall Host Name: company.com
Firewall IP address: 1.1.1.1
Attachment service host name: attachment.localserver.corp
Attachment service IP address: 192.168.1.1
Attachment service port: 8080
Option 1: Site supports an open port 8080 on firewall.
Create an entry in host file for the attachment service to map firewall host name to attachment service IP address. For example, company.com mapped to 192.168.1.1 in host file.
Update host name of attachment service in services table to company.com.
Create a rule in firewall to route requests to company.com:8080 to 192.168.1.1:8080.
Option 2: Site will only support ports 80 and 443.
Create new external facing host name for firewall as attachment.company.com.
Add another internal IP to the attachment service server such as 192.168.1.2.
Create an entry in the host file for the attachment service to map the firewall host name to attachment service IP address. For example, attachment.company.com mapped to 192.168.1.2 in host file.
Update host name of attachment service in services table to attachment.company.com.
Update the port of attachment service in services table to 80 (443).
Create a rule in fire wall to route request to attachment.company.com:80 (443) to 192.168.1.2:80 (443).
If there are more than one Channels server used then each Channels server must be able to connect to the attachment service, then the host file of each Channels server must be updated to map the attachment server IP with firewall host name as in step 1 of option 1 or step 2 of option 2.