junegunn / redis-stat

(UNMAINTAINED) A real-time Redis monitoring tool
MIT License
2.02k stars 339 forks source link

nginx example config for proxying redis-stat #60

Closed mmattel closed 7 years ago

mmattel commented 7 years ago

Referencing #56

Intention: act as a startingpoint to help others setting it up properly...

        location /your-access-page/ {
                # maybe you want to add authentication...
                auth_basic "Auth Text";
                auth_basic_user_file /your-path/auth-file;

                #
                proxy_set_header        Host                $host;
                proxy_set_header        X-Real-IP           $remote_addr;
                proxy_set_header        X-Forwarded-Host    $host;
                proxy_set_header        X-Forwarded-Server  $host;
                proxy_set_header        X-Forwarded-For     $proxy_add_x_forwarded_for;
                proxy_pass      http://127.0.0.1:63790/;
        }
mmattel commented 7 years ago

When you close this, it will be hard to find (same for #58). Mind to either put that to the readme.md or create a wiki with a reference from the readme.md?

junegunn commented 7 years ago

I briefly mentioned it in https://github.com/junegunn/redis-stat/releases/tag/0.4.14 Feel free to create a wiki page. Thanks.