@eeeee Pepole can take a screenshot in a built-in way in Windows even without the printscreen button, for example using the Snipping Tool
https://support.microsoft.com/en-us/windows/use-snipping-tool-to-capture-screenshots-00246869-1843-655f-f220-97299b865f6b
josef
Posts
-
Adding code to stop screenshots? -
How to delete file using api@Nghฤฉa-Nguyแป n said in How to delete file using api:
var http = new XMLHttpRequest();
var url = window.location.origin + '/api/v3/files';
http.open('DELETE', url, true);//Send the proper header information along with the request http.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); http.onreadystatechange = function() {//Call a function when the state changes. if(http.readyState == 4 && http.status == 200) { alert(http.responseText); } } http.send({ path: f });
A nice version, which also automatically include the CSRF Token (@baris why didn't you mention it?):
const [api] = await app.require(['api']); api.del('/api/v3/files', { path: "XXX" })
-
[nodebb-plugin-openai] NodeBB OpenAI Plugin@josef said in [nodebb-plugin-openai] NodeBB OpenAI Plugin:
Now you just need to add a Retrieval Augmented Generation (RAG) so that GPT can answer based on the existing content in the forum!
It's actually a bit problematic, because NodeBB keeps an indexes for search but not a vector version (embedded)
-
[nodebb-plugin-openai] NodeBB OpenAI PluginNow you just need to add a Retrieval Augmented Generation (RAG) so that GPT can answer based on the existing content in the forum!
-
[nodebb-plugin-openai] NodeBB OpenAI Plugin@baris What's missing is an initial system prompt option, to create a custom AI agent
-
[nodebb-plugin-openai] NodeBB OpenAI Plugin@DownPW In the past OpenAI gave a $5 credit to every new account but that has been discontinued, so yes, you have to pay to use the API
-
How to include JavaScript into widgets? -
Software version in nodeinfo@julian said in Software version in nodeinfo:
The other line of thinking is that relying on security by obscurity is fallacious, but since it's only one facet of a broader security posture (the rest of it being keeping up with updates, writing as secure code as you can, reporting/bounty systems, audits, etc.), I honestly don't see a problem with transmitting as little information as I can.
The only thing in all of this that is relevant to the software operator (i.e. not nodebb developers but those using it as self-hosting) is tracking updates and applying them quickly, so I'm against exposing the version number in a way that would allow bots to easily identify which nodebb installations around the world are still vulnerable
-
Change user running nodebb & other startup issues@B-738 I also recommend Caddy, but that is not related to this topic
-
Can I add nodebb to express based website?@marksibly I would recommend doing it through the reverse proxy (nginx caddy or whatever you use), and not to mediate through the node.js
Caddyfile example (https://caddyserver.com) :mywebsite.com { reverse_proxy /forum/* localhost:4567 # nodebb default port reverse_proxy localgost:3000 # your node.js app port }
Then set the address in the config.json file of the nodebb:
{ "url": "https://mywebsite.com/forum/", ... }
and then run
./nodebb build
./nodebb restart
And the forum will be available at https://mywebsite.com/forum/ (be sure to keep the / at the end)
-
Change user running nodebb & other startup issues@Jakub-Urbanowicz said in Change user running nodebb & other startup issues:
@PitaJ said in Change user running nodebb & other startup issues:
You should probably move the NodeBB files out of homeuser's home if You're not planning on homeuser running it.
Yeah, seems so. Could you give me a gist of what steps I would need to take to move nodebb to e.g. /var/www, please?
mv /home/user/nodebb /var/www/nodebb
-
Running the forum after restarting the computer@Thmhe said in Running the forum after restarting the computer:
@josef said in Running the forum after restarting the computer:
nodebb.bat
?What I need to write in the program is
nodebb.bat
How should I proceed from here?
@josef said in Running the forum after restarting the computer:
and add a "start" argument
-
Customize email titles -
how do I get a license?@PitaJ Doesn't the fact that you released the code under a certain copy-left license (and also received code donations under this license) eliminate the possibility for you to give the code under another license?
-
Running the forum after restarting the computer@Thmhe It is better to write the full path to the file
-
Running the forum after restarting the computer@Thmhe
https://www.makeuseof.com/automate-batch-files-task-scheduler-windows/
In Trigger, select "When the computer starts"
And in Start a Program write the path to the nodebb.bat file, and add a "start" argument -
Running the forum after restarting the computer@Thmhe Oh... I didn't notice it's Windows, there's no crontab there
You can use the Windows Task Scheduler to do something similar -
Running the forum after restarting the computer@Thmhe The hack way:
crontab -e
Then add:
@reboot cd /path/to/forum && ./nodebb start
and save.
Or you would create a systemd file, but if all you need is a restart after a server restart it will work -
503 Errror on Production, OAuth2 callback not working@julian said in 503 Errror on Production, OAuth2 callback not working:
which in Docker might be exposed somewhere...
docker logs