mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 14:12:21 +03:00
Update documentation for server protection #1657
This commit is contained in:
parent
6e7bd2560c
commit
b0e21de611
@ -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
|
||||
.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user