Sign inSign up

superhuang/super-redis-manager

By superhuang

Updated 2 months ago

Self-hosted Redis console with RBAC, encrypted credentials, monitoring, and advanced key tools.

Image
0

292

superhuang/super-redis-manager repository overview

Super Redis Manager

Self-hosted Redis management with RBAC, encrypted connection credentials, advanced key tools, monitoring, audit history, and database-backed persistence.

Source: SuperHuang-CN/SuperRedisManager

Image

docker pull superhuang/super-redis-manager:0.1.0

0.1.0 supports linux/amd64 and linux/arm64. The image contains the web frontend on port 4050 and the API on port 4051. Persistent application data is stored below /data.

Quick start

docker volume create super-redis-manager-data

docker run -d \
  --name super-redis-manager \
  --restart unless-stopped \
  -p 127.0.0.1:4050:4050 \
  -p 127.0.0.1:4051:4051 \
  -e SUPER_REDIS_MANAGER_DATABASE_PROVIDER=SQLITE \
  -e SUPER_REDIS_MANAGER_DATABASE_URL=file:/data/super-redis-manager.db \
  -e SUPER_REDIS_MANAGER_SECRET_KEY=replace-with-a-stable-random-secret \
  -e SUPER_REDIS_MANAGER_BACKUP_KEY=replace-with-a-stable-backup-secret \
  -v super-redis-manager-data:/data \
  superhuang/super-redis-manager:0.1.0

Keep SUPER_REDIS_MANAGER_SECRET_KEY and SUPER_REDIS_MANAGER_BACKUP_KEY stable and backed up. Changing the first makes saved Redis credentials unreadable; changing the second prevents old encrypted backups from being restored.

Reverse proxy under any path

The web process does not proxy API requests. Put both ports behind the same public origin:

location = /redis-manager {
    return 308 /redis-manager/;
}

location /redis-manager/api/ {
    proxy_pass http://127.0.0.1:4051/api/;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Prefix /redis-manager;
    proxy_cookie_path / /redis-manager/;
}

location /redis-manager/ {
    proxy_pass http://127.0.0.1:4050/;
    proxy_set_header Host $http_host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Forwarded-Prefix /redis-manager;
}

The trailing slash on every proxy_pass is required. Replace /redis-manager with any public prefix. When Nginx runs in the same Compose project, use the service name instead of 127.0.0.1. Do not create a Docker network manually; Compose's default network is sufficient.

Remote system storage supports PostgreSQL, MySQL, and MariaDB through SUPER_REDIS_MANAGER_DATABASE_PROVIDER and SUPER_REDIS_MANAGER_DATABASE_URL.

Tag summary

Content type

Image

Digest

sha256:d4928d805

Size

115 MB

Last updated

2 months ago

docker pull superhuang/super-redis-manager:0.1.0-arm64