Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed API configuration step in offline documentation #7234

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions source/deployment-options/offline-installation.rst
javimed marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ Installing the Wazuh indexer

# /usr/share/wazuh-indexer/bin/indexer-security-init.sh

#. Run the following command to check that the installation is successful. Note that this command uses localhost, set your Wazuh indexer address if necessary.
#. Run the following command to check that the installation is successful. Note that this command uses ``127.0.0.1``, set your Wazuh indexer address if necessary.

.. code-block:: console

# curl -XGET https://localhost:9200 -u admin:admin -k
# curl -XGET https://127.0.0.1:9200 -u admin:admin -k

Expand the output to see an example response.

Expand Down Expand Up @@ -437,21 +437,21 @@ Installing the Wazuh dashboard

server.host: 0.0.0.0
server.port: 443
opensearch.hosts: https://localhost:9200
opensearch.hosts: https://127.0.0.1:9200
opensearch.ssl.verificationMode: certificate

#. Enable and start the Wazuh dashboard.

.. include:: /_templates/installations/dashboard/enable_dashboard.rst

#. **Only for distributed deployments**: Edit the file ``/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml`` and replace the ``url`` value with the IP address or hostname of the Wazuh server master node.
#. Edit the file ``/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml`` and replace the ``url`` value with the IP address or hostname of the Wazuh server master node.

.. code-block:: yaml
:emphasize-lines: 3

hosts:
- default:
url: https://localhost
url: https://<WAZUH_SERVER_IP_ADDRESS>
port: 55000
username: wazuh-wui
password: wazuh-wui
Expand All @@ -463,7 +463,7 @@ Installing the Wazuh dashboard

#. Access the web interface.

- URL: *https://<wazuh_server_ip>*
- URL: *https://<WAZUH_DASHBOARD_IP_ADDRESS>*
- **Username**: admin
- **Password**: admin

Expand Down Expand Up @@ -525,19 +525,19 @@ Select your deployment type and follow the instructions to change the default pa



#. On your `Wazuh server master node`, change the default password of the admin users: `wazuh` and `wazuh-wui`. Note that the commands below use localhost, set your Wazuh manager IP address if necessary.
#. On your `Wazuh server master node`, change the default password of the admin users: `wazuh` and `wazuh-wui`. Note that the commands below use 127.0.0.1, set your Wazuh manager IP address if necessary.

#. Get an authorization TOKEN.

.. code-block:: console

# TOKEN=$(curl -u wazuh-wui:wazuh-wui -k -X GET "https://localhost:55000/security/user/authenticate?raw=true")
# TOKEN=$(curl -u wazuh-wui:wazuh-wui -k -X GET "https://127.0.0.1:55000/security/user/authenticate?raw=true")

#. Change the `wazuh` user credentials (ID 1). Select a password between 8 and 64 characters long, it should contain at least one uppercase and one lowercase letter, a number, and a symbol. See :api-ref:`PUT /security/users/{user_id} <operation/api.controllers.security_controller.update_user>` to learn more.

.. code-block:: console

curl -k -X PUT "https://localhost:55000/security/users/1" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d'
curl -k -X PUT "https://127.0.0.1:55000/security/users/1" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d'
{
"password": "SuperS3cretPassword!"
}'
Expand All @@ -552,7 +552,7 @@ Select your deployment type and follow the instructions to change the default pa

.. code-block:: console

curl -k -X PUT "https://localhost:55000/security/users/2" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d'
curl -k -X PUT "https://127.0.0.1:55000/security/users/2" -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' -d'
{
"password": "SuperS3cretPassword!"
}'
Expand Down Expand Up @@ -592,7 +592,7 @@ Select your deployment type and follow the instructions to change the default pa

hosts:
- default:
url: https://localhost
url: https://127.0.0.1
port: 55000
username: wazuh-wui
password: "<wazuh-wui-password>"
Expand Down
29 changes: 13 additions & 16 deletions source/installation-guide/wazuh-dashboard/step-by-step.rst
javimed marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -98,26 +98,23 @@ Starting the Wazuh dashboard service

.. include:: /_templates/installations/dashboard/enable_dashboard.rst

#. Edit the ``/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml`` file and replace the ``url`` value with the IP address or hostname of the Wazuh server master node.

.. code-block:: yaml
:emphasize-lines: 3

**Only for distributed deployments**

Edit the ``/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml`` file and replace the ``url`` value with the IP address or hostname of the Wazuh server master node.

.. code-block:: yaml
:emphasize-lines: 3

hosts:
- default:
url: https://localhost
port: 55000
username: wazuh-wui
password: wazuh-wui
run_as: false
hosts:
- default:
url: https://<WAZUH_SERVER_IP_ADDRESS>
port: 55000
username: wazuh-wui
password: wazuh-wui
run_as: false


#. Access the Wazuh web interface with your credentials.

- URL: *https://<wazuh-dashboard-ip>*
- URL: *https://<WAZUH_DASHBOARD_IP_ADDRESS>*
- **Username**: *admin*
- **Password**: *admin*

Expand Down Expand Up @@ -216,7 +213,7 @@ Select your deployment type and follow the instructions to change the default pa

hosts:
- default:
url: https://localhost
url: https://127.0.0.1
port: 55000
username: wazuh-wui
password: "<wazuh-wui-password>"
Expand Down
Loading