Last active
November 20, 2018 01:42
-
-
Save thewheat/c20fa1fac53d06babf8d2046aece513c to your computer and use it in GitHub Desktop.
Revisions
-
thewheat revised this gist
Jul 19, 2018 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 $intercom; } -
thewheat revised this gist
Nov 8, 2017 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 -
thewheat revised this gist
May 30, 2017 . No changes.There are no files selected for viewing
-
thewheat revised this gist
May 30, 2017 . No changes.There are no files selected for viewing
-
thewheat revised this gist
May 30, 2017 . No changes.There are no files selected for viewing
-
thewheat revised this gist
May 30, 2017 . No changes.There are no files selected for viewing
-
thewheat revised this gist
May 30, 2017 . 2 changed files with 24 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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. -
thewheat revised this gist
Apr 27, 2017 . 1 changed file with 4 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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; -
thewheat created this gist
Apr 27, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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; }