Files
truecharts/charts/stable/mosquitto/docs/setup-guide.md
T
kqmaverick ef9315820f docs(multiple charts): fix asides (#21073)
**Description**
Fixes asides and restores nextcloud migration guide images.

⚒️ Fixes  # 

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [ ] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**

**📃 Notes:**

**✔️ Checklist:**

- [ ] ⚖️ My code follows the style guidelines of this project
- [ ] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [X] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):` or `chore(chart-name):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._
2024-04-20 20:03:07 +02:00

1.0 KiB

title
title
Configure password authentication

Edit chart config

Change the chart's config to disable allow_anonymous by setting authentication to enabled.

auth:
  # -- By enabling this, `allow_anonymous` gets set to `false` in the mosquitto config.
  # highlight-next-line
  enabled: true

Create password and config files

Open the Mosquitto container shell and execute the following commands, one by one, in order:

cd /mosquitto/configinc
mosquitto_passwd -c passwordfile username
echo "password_file /mosquitto/configinc/passwordfile" > passwordconfig.conf

:::tip[These commands explained]

  • Navigate to /mosquitto/configinc, the persistent storage location inside the container where the password files go
  • Create a password file. This is interactive. Change username to your username. It will ask you to input the password twice
  • Create a config file that points to the password file

:::

:::caution[Restart chart]

Restart the chart so Mosquitto loads the new configuration file.

:::