Skip to content

Commit

Permalink
Added installation info.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonepelosi committed Oct 21, 2024
1 parent 9daac3f commit c0b4955
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion reference/services/fetch-service.rst
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,19 @@ Configuration example:
Moreover, the fetch service snap require certificates to work properly.
This is something that the snap can create when it's installed.
This is something that the snap can create when it's installed: the snap will
call the related hook available `here <https://github.com/canonical/fetch-service/blob/49f7382262da4aa71d931130524315c07f4be28d/snap/hooks/install#L20>`_.

These certificates are also configurable from the charm itself if we have the need to
change them, using the following command:

``juju config fetch-service proxy.certificate="$(cat certs/ca.pem)" proxy.key="$(cat certs/ca.key.pem)"``

.. note::

If you want to create them, you can follow the process described in the install hook:
`certificate creation <https://github.com/canonical/fetch-service/blob/49f7382262da4aa71d931130524315c07f4be28d/snap/hooks/install#L20>`_.

The certificates are stored in the ``${SNAP_DATA}/certs`` directory inside the fetch-service
charm unit.

Expand Down

0 comments on commit c0b4955

Please sign in to comment.