Skip to content

Instantly share code, notes, and snippets.

@thewheat
Last active November 20, 2018 01:42
Show Gist options
  • Select an option

  • Save thewheat/c20fa1fac53d06babf8d2046aece513c to your computer and use it in GitHub Desktop.

Select an option

Save thewheat/c20fa1fac53d06babf8d2046aece513c to your computer and use it in GitHub Desktop.

Revisions

  1. thewheat revised this gist Jul 19, 2018. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion nginx.conf
    Original file line number Diff line number Diff line change
    @@ -3,8 +3,11 @@
    # Step 3: set custom domain in Intercom Help Center settings

    location / {
    # using "set" is important as IP addresses of Intercom servers
    # changes dynamically. "set" enables nginx to follow dynamic IPs
    set $intercom "https://custom.intercom.help:443";
    proxy_set_header Host $host;
    proxy_pass https://custom.intercom.help;
    proxy_pass $intercom;
    }


  2. thewheat revised this gist Nov 8, 2017. 1 changed file with 13 additions and 1 deletion.
    14 changes: 13 additions & 1 deletion nginx.conf
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,16 @@
    location / {
    proxy_set_header Host $host;
    proxy_pass https://custom.intercom.help;
    }
    }


    # SSL setup - sample based on letsencrypt
    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/your-help-site.custom-domain.com-0001/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/your-help-site.custom-domain.com-0001/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot

    # force https
    if ($scheme != "https") {
    return 301 https://$host$request_uri;
    } # managed by Certbot
  3. thewheat revised this gist May 30, 2017. No changes.
  4. thewheat revised this gist May 30, 2017. No changes.
  5. thewheat revised this gist May 30, 2017. No changes.
  6. thewheat revised this gist May 30, 2017. No changes.
  7. thewheat revised this gist May 30, 2017. 2 changed files with 24 additions and 0 deletions.
    24 changes: 24 additions & 0 deletions apache.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,24 @@
    # 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

    <IfModule mod_ssl.c>
    <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://custom.intercom.help/
    ProxyPassReverse / https://custom.intercom.help/
    </VirtualHost>
    </IfModule>
    File renamed without changes.
  8. thewheat revised this gist Apr 27, 2017. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions intercom-educate-help-center-conf
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,7 @@
    # 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://custom.intercom.help;
  9. thewheat created this gist Apr 27, 2017.
    4 changes: 4 additions & 0 deletions intercom-educate-help-center-conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    location / {
    proxy_set_header Host $host;
    proxy_pass https://custom.intercom.help;
    }