Open bhavin137 opened 6 years ago
I was able to get it working by removing the credentials
option. It seems "credentials" here refers to ssl credentials (and not auth credentials as I mistakenly assumed)
I think the only way to pass auth credentials file location is through the CLI at the moment
@mcollina Is that true? And would it make sense to add a authCredentials
option to the config file?
If so, I'd be happy to submit a PR
Yes, send a PR!
If that's the case, need to update the wiki too which specifically references credentials
:
https://github.com/mcollina/mosca/wiki/Authentication-&-Authorization
I'm trying to pass mosca options as a from a config file. Reading the code, I understand that the config file has to be a node module This is what my config file looks like:
but running mosca throws an error like so:
Am I missing something here?
P.S: I have ownership of the
/opt/mosca
folder, so it's not a permissions issue