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

include_dir seems not working like "in-place expanding" #3039

Open
zhyang-liu opened this issue Apr 16, 2024 · 1 comment
Open

include_dir seems not working like "in-place expanding" #3039

zhyang-liu opened this issue Apr 16, 2024 · 1 comment

Comments

@zhyang-liu
Copy link

zhyang-liu commented Apr 16, 2024

version and system

  • mosquitto version 2.0.15
  • Linux

what i did

  • I'm using mosquitto-go-auth plugin along with per_listener_settings and include_dir
  • I placed a listener setting in 00.conf in the include_dir
  • I placed the plugin after include_dir (I want the listener in 00.conf work with this listener).
  • then the plugin was not loaded.

why was my include_dir not placed the last line as recommended?

I want include_dir defines a new listener, and the plugin section contains security information like username and password of database which i did not want to be exposed to outside the docker container (yes, i was using docker).

@erwinlem
Copy link

I stumbled on something which might be related. If I put "listener 1883 0.0.0.0" at the end of the file mosquitto tries to listen to localhost and 0.0.0.0 (which obviously fails). When I put the listener in the middle of the file it listens only on 0.0.0.0 as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants