A simple wrapper server for html-metadata.
$ npm install
$ npm start
$ docker build -t html-metadata-server .
$ docker run --name html-metadata-server -p 3000:3000 -d html-metadata-server
$ docker-compose up -d
http://my.cdn.com?url=[:url]
Example:
http://my.cdn.com?url=https://google.com
And it will return a JSON response of (html-metadata) object.
This is to configure the maximum size of cachable objects.
This is to configure the time-to-live of cache.
You also can customize your user agent to anything you like.
This is to configure the Cross-origin resource sharing (CORS) - Access-Control-Allow-Origin to allows cross-domain communication from the browser.