Skip to content

proxy intercom assets for region which has difficulty to access intercom cdn, with cache

Notifications You must be signed in to change notification settings

mycolorway/intercom-proxy

Repository files navigation

README

how it works

intercom first loads https://widget.intercom.io/widget/:app_id, which is hosted on cloudfront.net and 302 to https://js.intercomcdn.com/shim.xxx.js, which also hosted on cloudfront.net. Then shim.xxx.js will load https://js/intercomcdn.com/frame.xxx.js. Under certain network condition cloudfront.net has trouble being accessed. This service load and modifies the assets as a proxy.

getting started

First, setup docker and docker-compose. Then:

docker-compose up --build

config

Default values in .env and override them in .env.local
See https://github.com/bkeepers/dotenv

cache and distribute on OSS

Will upload assets then redirect to OSS when ENV['OSS_XXX'] are present.
Recommand to set OSS bucket referer restraint.

About

proxy intercom assets for region which has difficulty to access intercom cdn, with cache

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published