Russian version of the article is available down the link
If you are using a custom URL for operator app and you want to setup a secure connection via SSL (HTTPS) here is what you need to do:
- Get SSL certificate
- Setup TLS termination proxy.
In order to setup TLS termination proxy you will need to edit the configuration file on your proxy webserver.
Note: If you created a CNAME record that points to operator.onde.app, you'll need to delete this to host your own SSL certificate.
Here are the instructions to set up your own SSL using Apache and Nginx webservers:
apache.conf:
#Step 1: set up normal server with HTTPS https://letsencrypt.org/
#Step 2: set up proxy settings as shown below
#Step 3: set custom domain in Intercom Help Center settings
<VirtualHost *:443>
ServerName your-help-site.custom-domain.com # specify your custom domain here
SSLEngine on
SSLProxyVerify none
SSLProxyEngine on
SSLProxyCheckPeerCN off
SSLProxyCheckPeerName off
SSLProxyCheckPeerExpire off
SSLCertificateFile /path/to/your/fullchain.pem
SSLCertificateKeyFile /path/to/your/privkey.pem
ProxyPreserveHost On
ProxyPass / https://operator.onde.app/
ProxyPassReverse / https://operator.onde.app/
</VirtualHost>
</IfModule>
nginx.conf:
#Step 1: set up normal server with HTTPS https://letsencrypt.org/
#Step 2: set up proxy settings as shown below
#Step 3: set custom domain in Intercom Help Center settings
location / {
proxy_set_header Host $host;
proxy_pass https://operator.onde.app/;