Node.js
Node.js is a JavaScript runtime environment that allows JavaScript code to run outside the browser — in the backend. It is used to build server-side applications, APIs, and real-time applications such as chats or live dashboards. With its asynchronous, event-driven architecture, Node.js can handle many processes simultaneously, making it ideal for scalable web applications. It is also a great choice for developing tools and automation scripts. Thanks to its integrated package manager npm, the platform is highly versatile.
Activate Node.js
You can activate Node.js from Webhosting L in konsoleH. Log in, select a domain, and click on "Services; Node.js configuration" on the left. Then you can activate Node.js on the right with the red button.
Please note: All other web applications (such as PHP or HTML applications) will be deactivated when Node.js is activated!
Node.js configuration
In konsoleH, you can configure the following and save your changes:
- Script path: Path to your script, relative to the working directory
- Working directory: Path, relative to the home directory, where your Node.js script lies
- Log file: Here you can specify a path to a log file relative to the home directory
- Memory limit: Specify a memory limit
- Version: Select the Node.js version
- Arguments: Add your own arguments
- Environment variables: Add your own environment variables from your script
Examples
Hello World
-
Create a new folder in your home directory named
nodejs-hello-world
and create a fileapp.js
with the following content:const { createServer } = require('node:http'); const server = createServer((req, res) => { res.statusCode = 200; res.setHeader('Content-Type', 'text/plain'); res.end('Hello World'); }); server.listen(() => { console.log("Application is running..."); });
You can use WebFTP, an FTP client, or SSH to create the file.
-
Open the Node.js Configuration menu on konsoleH and fill in the fields with the appropriate values:
-
Click Save Settings and activate Node.js by clicking the Activate button.
-
Open your domain in a browser – you should see "Hello World".
n8n
-
Log into your server via SSH.
-
Install
n8n
:NODEVERSION=22 npm install -g n8n
-
Open the Node.js Configuration menu on konsoleH and fill in the required values:
Make sure to set the environment variable
WEBHOOK_URL
to the URL where the application will run. -
Click Save Settings and activate Node.js.
-
Open your domain in a browser – the n8n setup page should appear.
Uptime Kuma
-
Log into your server via SSH.
-
Download and set up Uptime Kuma:
git clone https://github.com/louislam/uptime-kuma.git cd uptime-kuma NODEVERSION=20 npm run setup
-
Open the Node.js Configuration menu on konsoleH and fill in the required values:
-
Click Save Settings and activate Node.js.
-
Open your domain in a browser – the Uptime Kuma setup page should appear.