The service will automatically create an index the first time save is performed.
There are no special mappings required for the service.
Camo images
In order to ensure clients can requests clients from http over https the camo service can be used. If the environment variables CAMO_HOST and CAMO_KEY are set, images are automatically rewritten to use the defined camo instance.
Docker
A Docker container is available.
Configuration is done using some command line variables.
An example is:
docker run \
-e ES_URL=es.inventid.net:9200 \
-e ES_INDEX=opengraph \
-e ES_TYPE=cache \
-e ES_VERSION=1.7 \
-e CACHE_IN_DAYS=4 \
-p 7070:7070 \
inventid/opengraph-cacher
Example without elasticsearch:
docker run -p 7070:7070 inventid/opengraph-cacher
The CACHE_IN_DAYS variable can be omitted (which will fallback to 28 days).