GithubHelp home page GithubHelp logo

dearrowthumbnailcache's Introduction

DeArrow Thumbnail Cache

This server acts as a cache for recently used generated thumbnails.

Hosting yourself

The easiest way to host it yourself is using the docker images. Here is a sample compose file to get started. Make sure to copy config.yaml.example into config.yaml.

version: '3'
name: thumbnail-generator
services:
  redis:
    container_name: redis
    image: redis:7.0
    command: /usr/local/etc/redis/redis.conf
    volumes:
      - ./redis/redis.conf:/usr/local/etc/redis/redis.conf
    ports:
      - 32774:6379
    sysctls:
      - net.core.somaxconn=324000
      - net.ipv4.tcp_max_syn_backlog=3240000
    restart: always
  app:
    container_name: app
    image: ghcr.io/ajayyy/thumbnail-cache
    ports:
      - 3001:3001
    volumes:
      - cache:/app/cache
      - ./config.yaml:/app/config.yaml
    restart: always
  worker:
    container_name: worker
    image: ghcr.io/ajayyy/thumbnail-cache-worker
    volumes:
      - cache:/app/cache
      - ./config.yaml:/app/config.yaml
    restart: always

volumes:
  cache:
    external: true

Running Locally

app.py contains a web server where clients can request screenshots at specific timestamps. If it is not already generated, it can request generation through a redis queue.

To run the worker, run worker.py.

License

AGPL-3.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.