@pitaj That's exactly what I need.
Thank you very much!
I have deployed Nodebb on AWS Apprunner which is a managed container application service. I am using a fork of the
NodeBB Plugin that allows users to login/register via any configured OAuth provider. - GitHub - FusionAuth/nodebb-plugin-fusionauth-oidc: NodeBB Plugin that allows users to login/register via any configured OAuth provider.
Everytime I run ./nodebb setup, because of this line in
install.js https://github.com/NodeBB/NodeBB/blob/master/src/install.js#L428, local login is enabled again.
Is there a way I can control this at setup so that the local login is not enabled everytime at setup?
I was able to do what I want using these changes but not sure if there is a better way.
The issue is described here: https://community.nodebb.org/post/90464. I want to be able to control local login when deploying NodeBB on a managed container service like AWS Apprunner. ./nodebb setup always grants local login privileges even if the database has them disabled (probably because they are booleans with the default as false, not ideal for most cases)
@julian I assumed that since this was a managed container environment where containers are ephemeral and can be moved around, I would need to run
./nodebb setup every time. Is my assumption wrong? Can I just run setup once to populate the database and then just run
./nodebb build the other times?