Container service that uses Headless Chrome to render SPA's as HTML (Dynamic Rendering), built on NodeJs.
# pull
docker pull npulidom/prerender
# run
docker run -p 8080:80 npulidom/prerender
# test
curl -i http://localhost:8080/?url=https://www.example.com
ALLOWED_DOMAINS: Allowed hosts (include “www.example.com” for health checks)
CACHE_MAXSIZE: Maximum number of items in the cache, default is 100
CACHE_TTL: Time to live for items in the cache, default is 60 seconds
PAGE_LOAD_TIMEOUT: Page load timeout
HEALTH_CHECK_URL: A custom health check URL to check prerender-browser render-status (optional)
Some plugins have been activated by default:
- https://github.com/prerender/prerender/blob/master/lib/plugins/whitelist.js
- https://github.com/prerender/prerender/blob/master/lib/plugins/blacklist.js
- https://github.com/prerender/prerender/blob/master/lib/plugins/httpHeaders.js
- https://github.com/prerender/prerender/blob/master/lib/plugins/removeScriptTags.js