diff options
author | nicolargo <nicolas@nicolargo.com> | 2020-05-12 18:44:28 +0200 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2020-05-12 18:44:28 +0200 |
commit | b0e21de611566b8e795a85fa536714b0cca60ad0 (patch) | |
tree | b766f4845c2f1db11373920e661b3b351ab8c66a /docs | |
parent | 6e7bd2560c831663b393430b94bf61ea358f58bd (diff) |
Update documentation for server protection #1657
Diffstat (limited to 'docs')
-rw-r--r-- | docs/man/glances.1 | 2 | ||||
-rw-r--r-- | docs/quickstart.rst | 50 |
2 files changed, 29 insertions, 23 deletions
diff --git a/docs/man/glances.1 b/docs/man/glances.1 index d292d31e..cbc27a3a 100644 --- a/docs/man/glances.1 +++ b/docs/man/glances.1 @@ -1,6 +1,6 @@ .\" Man page generated from reStructuredText. . -.TH "GLANCES" "1" "Apr 26, 2020" "3.1.5_DEVELOP" "Glances" +.TH "GLANCES" "1" "May 12, 2020" "3.1.5_DEVELOP" "Glances" .SH NAME glances \- An eye on your system . diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 8e4be0b0..796d1707 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -77,28 +77,6 @@ available network interfaces) and TCP port is ``61209``. In client/server mode, limits are set by the server side. -You can set a password to access to the server using the ``--password``. -By default, the username is ``glances`` but you can change it with -``--username``. - -If you want, the SHA password will be stored in ``username.pwd`` file. -Next time your run the server/client, password will not be asked. To set a -specific username you can used the -u <username> option. - -It is also possible to set the password in the -Glances configuration file: - -.. code-block:: ini - - [passwords] - # Define the passwords list - # Syntax: host=password - # Where: host is the hostname - # password is the clear password - # Additionally (and optionally) a default password could be defined - localhost=mylocalhostpassword - default=mydefaultpassword - Central client ^^^^^^^^^^^^^^ @@ -193,3 +171,31 @@ The Glances web interface follows responsive web design principles. Here's a screenshot from Chrome on Android: .. image:: _static/screenshot-web2.png + +How to protect your server (or Web server) with a login/password ? +------------------------------------------------------------------ + +You can set a password to access to the server using the ``--password``. +By default, the login is ``glances`` but you can change it with +``--username``. + +If you want, the SHA password will be stored in ``<login>.pwd`` file (in +the same folder where the Glances configuration file is stored, so +~/.config/glances/ on GNU Linus operating system). + +Next time your run the server/client, password will not be asked. To set a +specific username you can used the -u <username> option. + +It is also possible to set the default password in the Glances configuration +file: + +.. code-block:: ini + + [passwords] + # Define the passwords list + # Syntax: host=password + # Where: host is the hostname + # password is the clear password + # Additionally (and optionally) a default password could be defined + localhost=mylocalhostpassword + default=mydefaultpassword |