Skip to content

nanlabs/image-cache-server

Repository files navigation

image-cache-server

English Version

Install instructions:

  • Generate the binary file with maven executing the command mvn clean compile assembly:single
  • Copy the files image-cache-server.sh or image-cache-server.cmd and image-cache-server.jar to the directory where you want to run it and create the logs folder
  • Edit the file image-cache-server.sh in the second line where it says CONFIG="server.port=8181 mongo.url=localhost mongo.dbname=storage" and modify, if needed, the properties (see table below to learn the properties meaning).
  • To run the server execute ./image-cache-server.sh start, the log will be written in logs/image-cache-server.log
  • To stop the server execute the command ./image-cache-server.sh stop
Property Description Default
server.port Port where the HTTP server will be listening 8181
mongo.url URL of MongoDB eg localhost:27017 localhost
mongo.dbname Name of the DB where the images are persisted storage

Mode of use:

Spanish Version

Instructivo de instalación:

  • Generar el binario con maven ejecutando el comando mvn clean compile assembly:single
  • Copiar los archivos image-cache-server.sh o image-cache-server.cmd e image-cache-server.jar al directorio donde se desea instalar y crear un directorio llamado logs
  • Editar el archivo image-cache-server.sh en la 2da linea donde dice CONFIG="server.port=8181 mongo.url=localhost mongo.dbname=storage" y editar de ser necesario las properties que correspondan* (ver cuadro debajo para saber el significado de cada property).
  • Para levantar el servidor ejecutar ./image-cache-server.sh start los logs se van a estar escribiendo en logs/image-cache-server.log
  • Para bajar el servidor ejecutar el comando ./image-cache-server.sh stop
Property Descripción Default
server.port Puerto donde va a estar eschuchando el servidor http 8181
mongo.url url de MongoDB ej localhost:27017 localhost
mongo.dbname Nombre de la DB donde se va a persistir las imagenes storage

Modo de uso:

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •