s00d/redis-web

Redis-web is a simple web interface in Laravel and Vue to manage Redis databases.

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Language:Vue

Type:project

0.3.6 2017-10-28 20:21 UTC

This package is auto-updated.

Last update: 2024-04-10 19:30:52 UTC


README

Redis-web is a simple web interface in Slim and Vue to manage Redis databases.

It is released under the Creative Commons Attribution 3.0 license. This code is being developed and maintained by Pavel Kuzmin.

You can send comments, patches, questions here on github

Special thanks to Erik Dubbelboer

Preview

68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f3559524a77375132525836675f785641745a454436412e706e67
68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f5a71367a492d3453546c714641484144464a675731512e706e67

Installing/Configuring

To install redis-web through composer you need to execute the following commands:

php composer.phar create-project -s dev s00d/redis-web path/to/install

or you can also do a manual install using:

git clone https://github.com/s00d/redisWeb.git
cd redisWeb

Install and run:

composer install && composer update
npm i
npm prod

Settings

Copy .env.example to .env and edit it with your specific configuration.

all setting in file ./Settings.php

Passwords:

Cleartext passwords are only good for quick testing. You probably want to use hashed passwords. Hashed password can be generated with htpasswd command line tool or password_hash() PHP function

$ htpasswd -nbBC 10 root password
root:$2y$10$ZDEIUCQ7BSDLP3d2MI4HIOI4.CcaYqRj8ICCyJT2isOBd5JLM7zYe

Add to settings

"users" => [
  "root" => '$2y$10$ZDEIUCQ7BSDLP3d2MI4HIOI4.CcaYqRj8ICCyJT2isOBd5JLM7zYe'
]

Apache configuration

Ensure your .htaccess and index.php files are in the same public-accessible directory. The .htaccess file should contain this code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

Make sure your Apache virtual host is configured with the AllowOverride option so that the .htaccess rewrite rules can be used:

AllowOverride All

Nginx configuration

This is an example Nginx virtual host configuration for the domain example.com. It listens for inbound HTTP connections on port 80. It assumes a PHP-FPM server is running on port 9000. You should update the server_name, error_log, access_log, and root directives with your own values.

server {
    listen 80;
    server_name example.com;
    index index.php;
    error_log /path/to/example.error.log;
    access_log /path/to/example.access.log;
    root /path/to/public;

    location / {
        try_files $uri /index.php$is_args$args;
    }

    location ~ \.php {
        try_files $uri =404;
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        include fastcgi_params;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        fastcgi_param SCRIPT_NAME $fastcgi_script_name;
        fastcgi_index index.php;
        fastcgi_pass 127.0.0.1:9000;
    }
}

Queues!

Show all queues from redis:

68747470733a2f2f696d6167652e70726e747363722e636f6d2f696d6167652f39796e39486b7447524c5f537a6e6d6a7957716e39772e706e67

Install latest PM2 stable version is installable via NPM:

npm install pm2@latest -g

Run

npm run socket:start