All I find is nodebb-plugin-write-api which is not enough. It doesn't even have login API.I am not familiar with nodejs.And it is not necessary to handle the problems only existing on browser like CSRF.
I did disable the option in the API-write module, and now it's working in a shell terminal when I send the above CURL command.
But when I try to use CURL in HTTPS within my PHP program,
I get this message (401) : A valid login session was not found. Please log in and try again.
I don't understand why I get this message, because :
I'm sending the Master token in the Header by calling the PHP function curl_setopt with the option CURLOPT_HTTPHEADER
I try to send the credentials (login/password) by calling the PHP function curl_setopt with the option CURLOPT_USERPWD and login/password.
@nsuchy said in api encrypt plugin:
Is that all I need just to proxy through nginx, that's what I'm currently doing, I saw that plugin in settings and thought I was doing something wrong. I just wanted to confirm I'm doing everything properly.
Yup! I used the instructions here: https://docs.nodebb.org/configuring/proxies/nginx/
There is an example block with SSL in use there. No plugin needed. I use LetsEncrypt for free certs.