Node-Red-Docker on Synology NAS; How do secure Node-Red

Hello,

I use a Docker Container on a Synology NAS DS 218+

I want to secure Node-Red like following https://nodered.org/docs/user-guide/runtime/securing-node-red#editor--admin-api-security

But how can i do it on the Synology-NAS-Docker-APP?

Kind regards

E_T

If you've mounted the container's /data path to a folder on your NAS (use the Volume tab), you can just access the settings.js file for the container and modify it accordingly. Restart the container after editing settings.js to apply the changes.

1 Like

Thank you, NoweWorks, I will try it!

E_T

The Volume-Tab shows only the status of mounted volumes, for me there is no way to mount a volume! :slightly_frowning_face:

The second problem is, i must install node-red-admin in the container like
npm install -g --unsafe-perm node-red-admin

But the terminal-window in docker do not accept the command.

The second problem is, i must install node-red-admin in the container like
npm install -g --unsafe-perm node-red-admin

So i can now start the command, but i got erros

i tryed it with sudo, but no success.

E_T

Ok, I have bypassed the problem!

I take this command:
node -e "console.log(require('bcryptjs').hashSync(process.argv[1], 8));" your-password-here

So now i must mount the volume!

Mount a volume unter Abbild:

Hello,

after mount a volume to the path /data, i got this error: "permission denied"

Any ideas?

E_T

Please read the documentation on permissions.

Thank you!

I will have a look to the user IDs!

E_T

On Synology NAS the command usermod are not available! :unamused:

I will look.

E_T

i made a new user "node-red" and a Group "node-red"

with sudo vi /etc/passwd i changed the user Id from "node-red" to 1000

with sudo vi /etc/group i changed the group Id from "node-red" to 1000

after restart the NAS no user node-red were listet.

Login with user node-red was possible, but no Docker was available.

E_T

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.