Sign inSign up

stepankuzmin/nginx-with-redis

By stepankuzmin

•Updated almost 9 years ago

Nginx Alpine with HTTP Redis

Image
0

2.2K

stepankuzmin/nginx-with-redis repository overview

⁠Nginx Alpine with HTTP Redis

This repo contains latest official Docker image of Nginx Alpine⁠ with HTTP Redis⁠ module compiled in.

Usage:

docker run -d -v ./nginx.conf:/etc/nginx/conf.d/default.conf:ro stepankuzmin/nginx-with-redis

Example configuration:

server {
    location / {
        set $redis_key $uri;

        redis_pass     name:6379;
        default_type   text/html;
        error_page     404 = /fallback;
    }

    location = /fallback {
        proxy_pass backend;
    }
}

Note: The backend should set the data in redis. The redis key is /uri?args.

Tag summary

Content type

Image

Digest

Size

6.4 MB

Last updated

almost 9 years ago

docker pull stepankuzmin/nginx-with-redis