--- title: Introduction project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/introduction/ updated: 2026-11-19T08:00:35.592Z --- # Introduction > What Total.js SuperAdmin is, what it does on your server and where to start. Total.js SuperAdmin is a web app that runs Node.js apps, mostly Total.js apps, on your own Linux server. You add an app with its domain in the browser, upload its code as a ZIP file, and SuperAdmin starts it, keeps it running and puts Nginx in front of it. SuperAdmin runs as `root` on the server. It changes the system for you: it writes Nginx configuration files, starts and stops processes, and changes file owners in `/www/`. Install it on a clean server that you use only for your apps. ![The main screen of SuperAdmin with four apps](/files/JapVtM2T360f.webp) ## What SuperAdmin does - **Runs your apps.** Each app gets its own folder, start script and process. SuperAdmin starts an app again when its process stops. See [Add an application](../add-application/). - **Configures Nginx.** For each app, SuperAdmin writes an Nginx file with the domain, the redirects, the upload limit and the allowed IP addresses, and reloads Nginx. See [Domains, redirects and IP rules](../domains-and-ip-rules/). - **Serves HTTPS.** An app with an `https://` address gets an HTTPS server in Nginx. See [HTTPS with your own certificate](../https-own-certificate/). - **Watches the server.** You see CPU, memory and storage of the server and of every app, the errors in the logs, and alarms that notify you by e-mail. See [Alarms](../alarms/). - **Keeps backups.** You can download an app, back up an app before new code replaces it, and back up the whole `/www/` folder. See [Backups](../backups/). ## What to read next 1. Install SuperAdmin [on a server](../install-server/) or try it [with Docker](../install-docker/). 2. [Sign in for the first time](../first-sign-in/) and change the default credentials. 3. Learn [the main screen](../main-screen/). 4. [Add an application](../add-application/) and [upload its source code](../upload-source-code/). 5. Before you go live, read [Users](../users/) and [HTTPS for SuperAdmin](../superadmin-https/). --- title: Install on a server project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/install-server/ updated: 2026-11-19T08:00:35.592Z --- # Install on a server > Install SuperAdmin, Nginx and Node.js on a clean Ubuntu server with the official script. The official install script sets up a clean Ubuntu server for SuperAdmin. It installs Nginx, Node.js 16, GraphicsMagick, Git, `acme.sh` and some command line tools, creates the folder `/www/`, downloads SuperAdmin into `/www/superadmin/` and starts it. ## Before you start - A clean Ubuntu Server 16 or later, with `wget`, `curl` and `sudo` (a standard Ubuntu Server image has them). - A root shell on the server. - A domain name for SuperAdmin, for example `superadmin.example.com`, with a DNS A record that points to the server. - Ports 80 and 443 open to the internet if your apps will be public. ## Run the install script **1.** Sign in to the server and become root: ```bash sudo su ``` **2.** Download the script and run it: ```bash wget https://raw.githubusercontent.com/totaljs/superadmin/master/install.sh && bash install.sh ``` **3.** Answer the questions: | Question | Answer | |---|---| | Do you wish to permit this? | `y` | | Do you want to provide SuperAdmin via HTTPS? | `n` to use HTTP now. To add HTTPS later, see [HTTPS for SuperAdmin](../superadmin-https/). | | Domain name without protocol | The domain of SuperAdmin, for example `superadmin.example.com`. | | Are you sure you want to continue? | `y` | | Which user should SuperAdmin use to run your applications ? | Press Enter for `root`, or type the name of an existing Linux user. | | Do you wish to install cron job to start SuperAdmin automatically after server restarts? | `y` adds `@reboot /bin/bash /www/superadmin/run.sh` to the crontab of root. | **4.** Wait until the script prints `STARTING SUPERADMIN ON PORT 9999`. The script prints a few warnings that you can ignore: `E: Package 'python-software-properties' has no installation candidate` and a notice that Node.js 16 is deprecated. **5.** Open `http://superadmin.example.com/` (your domain) in the browser and [sign in for the first time](../first-sign-in/). ## What the script sets up - Nginx with the configuration file of SuperAdmin. Nginx answers on your domain and passes the requests to SuperAdmin on port `9999`. - The folder `/www/` for SuperAdmin, your apps, their logs, the Nginx files of your apps and the certificates. See [Folders and files](../../reference/folders-and-files/). - A backup of the original Nginx configuration in `/etc/nginx/nginx.conf.backup`. ## Keep the server safe - SuperAdmin also listens on port `9999` directly. Block that port in the firewall so that people reach SuperAdmin only through Nginx. - Use HTTPS for SuperAdmin before you use it over the internet. See [HTTPS for SuperAdmin](../superadmin-https/). --- title: Run with Docker project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/install-docker/ updated: 2026-11-19T08:00:35.592Z --- # Run with Docker > Build a SuperAdmin image from the source code and run it in a container. The source code of SuperAdmin has a file `dockerfile.alpine` that builds an image with Alpine Linux, Node.js 16, Nginx and SuperAdmin. In the container, Nginx serves SuperAdmin on port 80, as on a server. A container is a good place to try SuperAdmin. Everything you add, apps, users and settings, lives inside the container: the image defines no volume, so removing the container removes your data. ## Build and run **1.** Get the source code: ```bash git clone https://github.com/totaljs/superadmin.git cd superadmin ``` **2.** Build the image: ```bash docker build -f dockerfile.alpine -t superadmin . ``` **3.** Start a container: ```bash docker run -d --name superadmin -p 127.0.0.1:8080:80 superadmin ``` **4.** Open `http://localhost:8080/` and [sign in for the first time](../first-sign-in/). Use `dockerfile.alpine`. The other file, `dockerfile`, does not build. ## What is different in the container - The image configures SuperAdmin for the domain `localhost`, so open it as `localhost`, not as `127.0.0.1`. - The **Storage** values in the system panel stay empty. - To see the output of SuperAdmin, run `docker logs superadmin`. --- title: First sign-in project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/first-sign-in/ updated: 2026-11-19T08:00:35.592Z --- # First sign-in > Sign in with the first-start credentials and replace them with your own. On the first start, SuperAdmin creates one user with the name **Total Admin**, a random login name and a random password. The sign-in page shows these credentials until someone signs in for the first time. ![The sign-in page](/files/JapVtB2J360f.webp) ## Sign in 1. Open the address of SuperAdmin in the browser. 2. Copy the **Name** and **Password** from the yellow box into **Login name** and **Password**. 3. Select **LOGIN**. After the first sign-in, the yellow box is gone. Store the credentials until you have changed them. ## The welcome tour A short tour starts when there are no apps. Select **NEXT** to read it and **DONE** to close it. SuperAdmin then opens the **Add** menu, so you can [add your first application](../add-application/). ## Change the credentials 1. Select **More > My profile**. 2. Type your name, a new **Login name** (an e-mail address works well) and a new **Login password**. **Generate password** fills in a random password. 3. Select **SAVE**. Use the new login name and password from now on. See [My profile](../my-profile/). If you lose the password, see [I forgot my password](../../faq/sign-in/). --- title: The main screen project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/main-screen/ updated: 2026-11-19T08:00:35.592Z --- # The main screen > The parts of the main screen: the system panel, the toolbar, the summary and the list of apps. After you sign in, SuperAdmin shows the system panel on the left and your apps on the right. The values update by themselves every few seconds. ![The main screen](/files/JapVtM2T360f.webp) ## System panel ![The system panel](/files/JapVtS2Z360f.webp) - The gauge shows the CPU use of the server, with the number of processes and the operating system below it. - **Memory** and **Storage** show what is used and the total size. - **IP address** and **Uptime** of the server. - **Applications** shows the list of apps, with their number. - **Notifications** opens the notifications panel. See [Notifications](../notifications/). - **More** opens the menu with **Alarms**, **Users**, **Settings**, **Toggle console**, **Open terminal**, **My profile** and **Logout**. Users who are not SuperAdmins see only **Toggle console**, **My profile** and **Logout**. ![The More menu](/files/JapVtU2a361f.webp) ## Toolbar and summary ![The toolbar, the summary and the list of apps](/files/JapVtW2b360f.webp) - **Search apps** filters the list. See [Search the list of apps](#search-the-list-of-apps). - **Add** adds an [app](../add-application/) or a [service](../add-service/). - **Analyzator** lists the apps with errors in their logs. See [Logs and analyzator](../logs-and-analyzator/). - **Trending** shows the apps that use the most resources. See [Trending](../trending/). - **Options** has actions for all apps. See [Server actions](../server-actions/). The summary below shows the number of running and stopped apps, the number of apps with errors, and the memory, storage, open files and open HTTP connections of all apps together. An arrow shows whether a value went up or down. ## The list of apps Apps are grouped by their **Category**. Apps without a category are under **Uncategorized apps**. Each row shows: - The internal name of the app, or its address. Badges show a **service**, an **SSL** app and a **high priority** app. A red name means errors in the log. - The port, when the app does not use a Unix socket. - The number of open files and the type, for example `total4`. - The running time, the size of the app folder, the memory and the CPU use. - Three buttons: **Show logs** (magnifier), **Restart**, and the menu (three dots) with all other actions. ## Search the list of apps Type part of a name or an address in **Search apps**, or select a keyword under **Quick search**: | Keyword | Shows | |---|---| | `@debug`, `@release` | Apps in debug or release mode. | | `@total3`, `@total4` | Apps of that type. | | `@errors` | Apps with errors in their logs. | | `@stopped`, `@running` | Stopped or running apps. | | `@threads` | Apps with Total.js threads. | | `@service` | Services. | | `@highpriority` | Apps marked as high priority. | --- title: Add an application project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/add-application/ updated: 2026-11-19T08:00:35.592Z --- # Add an application > Register a web app with its address so that SuperAdmin runs it and configures Nginx. An application in SuperAdmin is a web app with its own address. SuperAdmin creates a folder for it, writes its Nginx file and starts it. You add the code right after, in the next step. Before you add an app, point the DNS A record of its domain to the server. ## Add the app **1.** Select **Add > App**. ![The Add menu with App and Service](/files/JapVsk1y361f.webp) **2.** In **URL address**, type the full address with `http://` or `https://`, for example `http://shop.example.com`. **3.** In **Internal name**, type a name for the list, for example `Demo shop`. **4.** Choose or type a **Category**. Apps with the same category are shown together. **5.** Choose the mode. **Enable debug mode** is selected for a new app; clear it for an app in production. See [Debug and release mode](#debug-and-release-mode). **6.** Under **Type of application**, choose **Total.js v4**, **Total.js v3** or **Custom**. For other Node.js apps, see [Run a plain Node.js app](../../recipes/plain-nodejs-app/). **7.** Select **SUBMIT**. ![The Create application form](/files/JapVsn1z360f.webp) SuperAdmin saves the app and opens **Upload source-code** at once. Continue with [Upload source code](../upload-source-code/). The other fields are described in [Application settings](../../reference/application-settings/). You can change them later with **Settings** in the menu of the app. ## What SuperAdmin creates - A folder in `/www/www/` named after the domain, for example `/www/www/demo_test` for `demo.test` and `/www/www/example_com-shop` for `shop.example.com`. - An Nginx file in `/www/nginx/` that passes the domain to the app. For a domain such as `example.com`, it also redirects `www.example.com` to it. - A start script `index.js` in the app folder. Do not replace it: SuperAdmin writes it again on every start. - A port number. The first app gets `8000`, the next one `8001`, and so on. A **Total.js v4** app with **Use Unix socket** talks to Nginx through a socket file instead. ## Debug and release mode - In **debug mode**, the app starts again by itself a few seconds after you change one of its files. The list shows a purple **debug** badge. - In **release mode**, the app runs as it is. Each time it starts, SuperAdmin copies its previous log to `/www/logs/`. Changing the mode restarts the app. --- title: Upload source code project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/upload-source-code/ updated: 2026-11-19T08:00:40.593Z --- # Upload source code > Put the code of an app on the server from a ZIP file, with an optional backup and NPM install. You give SuperAdmin the code of an app as a ZIP file. SuperAdmin unpacks it into the app folder and starts the app again. The ZIP file must hold the files of the app at its top level, for example: ```text controllers/default.js config package.json ``` A ZIP file whose top level is a single folder, such as `app/controllers/...`, does not work, because SuperAdmin unpacks it as it is. ## Upload a ZIP file 1. In the list, open the menu (three dots) of the app and select **Upload source-code**. After you add an app, this dialog opens by itself. 2. In **Source-code**, choose **Upload ZIP file**. 3. Choose the options you need (see [The options](#the-options)). 4. Select **SUBMIT**, then **Continue**. 5. Choose the ZIP file on your computer. ![The Upload source-code dialog](/files/JapVu333360f.webp) When SuperAdmin shows **Source-code has been applied successfully**, the app runs with the new code. ## The options - **Performs NPM install**: runs `npm install` in the app folder when the ZIP has a `package.json`. - **Creates a backup**: saves the current files of the app first, so that you can restore them. See [Backups](../backups/). - **Removes all files in the root of application**: deletes the old files before it unpacks the new ones. It is selected by default. The dialog says that a ZIP file can have up to 10 MB. ## Restore a backup When you uploaded with **Creates a backup**, **Restore a backup** in **Source-code** puts those files back. See [Backups](../backups/). ## Change a single file To change one file without a new ZIP, use the [File browser](../file-browser/). --- title: Add a service project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/add-service/ updated: 2026-11-19T08:00:35.592Z --- # Add a service > Run a Total.js app without a domain, for background work. A service is a Total.js app without a web address. SuperAdmin runs it and starts it again when it stops, but writes no Nginx file for it. Use a service for background work, for example a worker that runs tasks on a schedule. ## Add the service 1. Select **Add > Service**. 2. Type a **Service name**, for example `Demo worker`, and choose a **Category**. 3. Clear **Enable debug mode** for a service in production. 4. Select **SUBMIT**. 5. In **Upload source-code**, upload the code as a ZIP file. See [Upload source code](../upload-source-code/). ![The Create service form](/files/JapVsr22361f.webp) The service starts the Total.js framework in service mode: it loads the code of the app, for example the files in `definitions/`, without an HTTP server. In the list, a service has a pink **service** badge. Its folder in `/www/www/` starts with `_service-` and the service name. **Memory limit** works as for apps. See [Application settings](../../reference/application-settings/). --- title: Start, stop and restart project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/start-stop-restart/ updated: 2026-11-19T08:00:35.592Z --- # Start, stop and restart > Restart an app, stop it, and start it again. SuperAdmin keeps every app running. When the process of an app ends, SuperAdmin starts it again within about a minute. When you stop an app yourself, SuperAdmin leaves it stopped. ![The menu of an app](/files/JapVtq2s361f.webp) ## Restart an app Select **Restart** (the arrows) in the row of the app, or **Restart** in its menu. SuperAdmin shows that the app has been restarted. ## Stop an app Open the menu of the app (three dots) and select **Stop**. The app stops at once. Through Nginx, its address answers with the error `502 Bad Gateway`. ## Start a stopped app Select **Restart** for the app. A stopped app starts and stays running. ## All apps at once **Options** has **Restart all apps** and **Stop applications**. See [Server actions](../server-actions/). When SuperAdmin itself starts, for example after a server restart, it starts all apps that were not stopped. --- title: Change application settings project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/change-settings/ updated: 2026-11-19T08:00:35.592Z --- # Change application settings > Edit the settings of an existing app and know which changes need a restart. You can change the settings of an app at any time. 1. Open the menu of the app (three dots) and select **Settings**. 2. Change the fields. See [Application settings](../../reference/application-settings/). 3. Select **SUBMIT**. SuperAdmin writes the Nginx file of the app again and reloads Nginx, so the Nginx settings work at once: redirects, allowed and blocked IP addresses, **Max. upload size**, **Max. request timeout** and **Enable access logging**. ## Changes that restart the app The app restarts by itself when you change: - **Enable debug mode** - **Cluster** - **Type of application** - **Use Unix socket** ## Changes that need a restart Other settings of the process, for example **Memory limit**, take effect the next time the app starts. Select **Restart** after you save them. See [Start, stop and restart](../start-stop-restart/). ## More domains To let an app answer on more domains, use **Redirects**. See [Domains, redirects and IP rules](../domains-and-ip-rules/). --- title: HTTPS with your own certificate project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/https-own-certificate/ updated: 2026-11-19T08:00:35.592Z --- # HTTPS with your own certificate > Serve an app over HTTPS with a certificate and key that you already have. An app whose **URL address** starts with `https://` gets an HTTPS server in Nginx. You can give SuperAdmin your own certificate for it. The form also says that SuperAdmin can get certificates from Let's Encrypt automatically. For that, the DNS records of the domain must point to the server and the server must be reachable from the internet. This page describes your own certificate. ## Add your certificate **1.** Copy the certificate and its key to the server, for example to `/www/ssl/shop.example.com/`. The certificate file must hold the full chain. **2.** Open **Settings** of the app, or add a new app, and type the address with `https://`, for example `https://shop.example.com`. **3.** Under **SSL configuration**, select **Add own SSL certificates**. **4.** Type the absolute paths in **SSL key** and **SSL certificate**. ![The SSL configuration with own certificates](/files/JapVtF2M361f.webp) **5.** Select **SUBMIT**. In the list, the app has a green **SSL** badge. ## What the app answers - `https://shop.example.com/` serves the app with your certificate. - `http://shop.example.com/` redirects to `https://shop.example.com/`. - The `www.` domain and the domains in **Redirects** redirect to `https://shop.example.com/` too. Over HTTPS, the `www.` domain uses the self-signed certificate of SuperAdmin. When you renew the certificate, replace the files, then open **Settings** of the app and select **SUBMIT**. SuperAdmin reloads Nginx, which reads the new files. **Trending** shows the expiry of certificates under **SSL expiration**. See [Trending](../trending/). --- title: Domains, redirects and IP rules project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/domains-and-ip-rules/ updated: 2026-11-19T08:00:35.592Z --- # Domains, redirects and IP rules > Redirect more domains to an app, and allow or block IP addresses. The lower part of the settings of an app controls which domains lead to it and who may open it. SuperAdmin puts these rules into the Nginx file of the app. ![The lower part of the application form with Type of application, Redirects and the IP address fields](/files/JapVt42D360f.webp) Type each value and press Enter. Each value becomes a tag; select its cross to remove it. ## Redirects **Redirects** lists more domains, for example `old-shop.example.com`. A request to one of them gets a permanent redirect (`301`) to the address of the app, with the same path. SuperAdmin adds the `www.` form of a domain such as `example.com` by itself, so you do not need to list it. Point the DNS records of every redirect domain to the server. ## Allowed IP addresses When **Allowed IP addresses** has at least one address, only those addresses can open the app. Every other visitor gets `403 Forbidden` from Nginx. Use it, for example, for an internal tool. ## Blocked IP addresses **Blocked IP addresses** lists visitors who get `403 Forbidden`. Everybody else can open the app. The rules work as soon as you select **SUBMIT**. --- title: File browser project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/file-browser/ updated: 2026-11-19T08:00:35.592Z --- # File browser > Browse, edit, upload and remove the files of an app in the browser. The file browser shows the folder of an app and lets you change text files without a new ZIP file. 1. Open the menu of the app (three dots) and select **File browser**. 2. Select a folder to open it, and a file to show it in the editor. ![The file browser with a file open](/files/JapVt82G361f.webp) ## Edit a file Change the text in the editor and select **Save content**. In debug mode, the app picks up the change by itself within seconds; in release mode, select **Restart** for the app. The editor opens text files such as `.js`, `.json`, `.html`, `.css`, `.md`, `.txt`, `.sql`, `.sh` and `.log`, and the Total.js files `config`, `config-debug`, `config-release`, `dependencies`, `workflows`, `versions` and `sitemap`. For other files, such as ZIP files, it says **Not allowed file for editing**. ## Create and upload The three buttons above the tree are: - **Create a directory**: type a folder name. - **Create a file**: type a file name, with a path if needed. - **Upload**: send a file from your computer. ## Remove or replace a file Select the three dots next to a file for **Remove** and **Replace file**. The tree does not show the folders `tmp` and `.git`. --- title: Logs and analyzator project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/logs-and-analyzator/ updated: 2026-11-19T08:00:35.592Z --- # Logs and analyzator > Read the log of an app and find the apps that have errors in their logs. Each app writes its output and its errors to `logs/debug.log` in its folder. SuperAdmin shows that log and checks the logs of all apps for errors. ## Show the log of an app Select **Show logs** (the magnifier) in the row of the app. The log opens in a new browser tab as plain text. In release mode, the log starts empty at every start. SuperAdmin copies the previous log to `/www/logs/`, with the date and time in the file name. ## The analyzator SuperAdmin reads the logs of all running apps regularly, and again each time you open **Analyzator**. It looks for Total.js error reports, the words `error` and `obsolete`, the text `port is already in use` and Node.js deprecation warnings. An app with errors has a red name in the list, the **Errors** tile of the summary counts it, and the keyword `@errors` finds it. Select **Analyzator** in the toolbar to see the apps with findings: ![The Logs analyzator with one app](/files/JapVtP2W361f.webp) Each card shows the address of the app and what was found, for example **error**. **Show logs** opens the log. When there are no findings, the analyzator shows **Without errors, time to relax**. A restart starts a new log, so the finding disappears. If the error comes back, the app shows it again. You can also get an alarm for errors in the logs. See [Alarms](../alarms/). --- title: Trending project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/trending/ updated: 2026-11-19T08:00:35.592Z --- # Trending > See which apps use the most memory, CPU, storage, files and connections. **Trending** ranks your apps by the resources they use now. Select **Trending** in the toolbar. ![Trending](/files/JapVu030361f.webp) It has six tables, each with the top five apps: - **Memory consumption** - **CPU consumption** - **HDD consumption**: the size of the app folder. - **Open files** - **Open connections**: open HTTP connections of the app. - **SSL expiration**: HTTPS apps by the expiry date of their certificate. Select **Close** to return to the list. --- title: Backups project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/backups/ updated: 2026-11-19T08:00:35.592Z --- # Backups > Download an app, back it up before new code, restore it, and back up the whole /www folder. SuperAdmin has three kinds of backup: a download of one app, a backup before you upload new code, and a backup of the whole `/www/` folder. ## Download an app Open the menu of the app and select **Download**. SuperAdmin packs the app folder into a ZIP file and your browser downloads it, for example `example_com-shop_backup.zip` for `shop.example.com`. The ZIP file leaves out `node_modules`, `tmp`, `.git` and socket files. A copy stays in the app folder. The ZIP file has the files at its top level, so you can [upload](../upload-source-code/) it again. ## Back up before new code When you upload new code with **Creates a backup**, SuperAdmin saves the current files of the app in `/www/-backup.tar.gz` first. Each such backup replaces the previous one of that app. To go back to it: 1. Open the menu of the app and select **Upload source-code**. 2. In **Source-code**, choose **Restore a backup**. 3. Select **SUBMIT**, then **Continue**. SuperAdmin unpacks the backup into the app folder and restarts the app. ## Back up the whole server 1. Select **Options > Make a backup**. 2. Select **Backup**. SuperAdmin packs the folder `/www/` into `/www/-backup.tar.gz`, for example `/www/20261119-backup.tar.gz`, and your browser downloads it. The archive holds SuperAdmin, all apps, their Nginx files, the certificates and their keys, and the logs. It leaves out older `.tar.gz` backups. Only SuperAdmins see this item. Keep the file in a safe place, because it holds private keys and the user database. The archive also stays on the server; remove it when you do not need it any more. ## When you remove an app SuperAdmin backs up the folder of an app before it removes it. See [Remove an application](../remove-application/). --- title: Remove an application project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/remove-application/ updated: 2026-11-19T08:00:35.592Z --- # Remove an application > Delete an app, its folder and its Nginx file. Removing an app stops it and deletes its folder and its Nginx file. 1. Open the menu of the app (three dots) and select **Remove**. 2. SuperAdmin asks **Are you sure you want to remove** with the address of the app. Select **Remove**. Before it deletes the folder, SuperAdmin packs it into `/www/-removed-backup.tar.gz`, for example `/www/example_com-shop-removed-backup.tar.gz` for `shop.example.com`. To get the files back, unpack that archive on the server. The address of a removed app does not lead to it any more. Remove the DNS records of the domain if you do not need them. --- title: Alarms project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/alarms/ updated: 2026-11-19T08:00:35.592Z --- # Alarms > Get a notification and an e-mail when an app or the server crosses a limit. An alarm watches values of your apps or of the server. When its rules match, SuperAdmin adds a [notification](../notifications/) and can send an e-mail. Alarms are for SuperAdmins. Select **More > Alarms**. ![The list of alarms](/files/JapVsv25360f.webp) ## Create an alarm 1. Select **Create**. 2. Type a **Name** and keep **Alarm is activated** selected. 3. Choose what to watch: **Applications** or **System**. 4. Turn on one or more rules, choose the comparison and type the value. With several rules, **OR** fires when any rule matches and **AND** when all match. 5. Type the **Warning message**. In an app alarm, `{0}` becomes the address of the app. 6. In **E-mail notifications to**, type an address and press Enter. E-mails need an SMTP server in [Settings](../settings/). 7. Set the **Delay**: the time before the same alarm notifies again, for example `5 minutes` or `1 day`. 8. Select **SUBMIT**. ![The Create alarm form](/files/JapVsx26361f.webp) ## Rules for applications | Rule | Value | |---|---| | **CPU** | Percent. | | **Memory** | Megabytes. | | **Directory size** | Size of the app folder, in megabytes. | | **Count of open files** | Number. | | **Count of open connections** | Number of open HTTP connections. | | **Analyzator output** | **Error** or **Obsolete code**. See [Logs and analyzator](../logs-and-analyzator/). | An app alarm skips apps in debug mode unless you select **Enable for all debug modes**. **Enable for high priority apps only** limits it to apps with **High priority**. **Apply delay for each application** counts the delay for each app separately, so every app can notify once per delay. ## Rules for the system | Rule | Value | |---|---| | **CPU** | Percent. | | **Memory** | Used memory, in megabytes. | | **Storage size** | Used storage, in megabytes. | | **Count of processes** | Number. | SuperAdmin checks system rules every 30 seconds and app rules about every minute. ## Edit, pause or remove Each card in the list has **Edit** and **Remove**. To pause an alarm, edit it and clear **Alarm is activated**. --- title: Notifications project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/notifications/ updated: 2026-11-19T08:00:35.592Z --- # Notifications > Read the messages from alarms and certificate renewals. SuperAdmin collects the messages of [alarms](../alarms/) in the notifications panel. The number next to **Notifications** in the left panel counts new messages. When there are new messages, the panel opens by itself after you sign in. ![The notifications panel](/files/JapVte2h360f.webp) - Select **Notifications** to open or close the panel. - Each message shows its date and time. Warnings have a red date. - The bin at the top removes all messages. --- title: Users project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/users/ updated: 2026-11-19T08:00:40.593Z --- # Users > Create accounts for other people, make them SuperAdmins or deny their access. Several people can sign in to SuperAdmin, each with an own account. Only SuperAdmins can manage users: select **More > Users**. ![The list of users](/files/JapVu736361f.webp) Each card shows the name, an **online** badge when the user is signed in, a **SuperAdmin** badge, and the times of the last sign-in and of the creation. Your own card has a blue border. ## Create a user 1. Select **Create**. 2. Type the **User name**, the **Login name** and a **Login password**. **Generate password** fills in a random password. 3. Select **SuperAdmin** to give full rights. 4. Select **SAVE**. ![The User account form](/files/JapVu937360f.webp) Give the login name and password to the person in a safe way. ## What a user who is not a SuperAdmin can do A user without **SuperAdmin** can still add, change, start, stop and remove apps, upload code and use the file browser. The user does not see **Alarms**, **Users**, **Settings**, **Make a backup** and the terminal. Apps run as the user chosen during the install, which is `root` by default. Give an account only to people you trust with the whole server. ## Deny access Edit the user, select **Deny access** and select **SAVE**. The user cannot sign in and sees **Your account was disabled**. Clear the box to allow access again. ## Change a password Edit the user, type a new **Login password** and select **SAVE**. Leave the field empty to keep the current password. ## Remove a user Select **Remove** on the card and confirm. You cannot remove your own account. --- title: My profile project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/my-profile/ updated: 2026-11-19T08:00:35.592Z --- # My profile > Change your own name, login name and password. Every user can change their own account. Select **More > My profile**. ![My profile](/files/JapVtZ2e361f.webp) 1. Change the **User name**, the **Login name** or both. The form recommends an e-mail address as login name. 2. To change the password, type it in **Login password**, or select **Generate password**. Leave the field empty to keep the current password. 3. Select **SAVE**. The new login name and password work the next time you sign in. To sign out, select **More > Logout**. --- title: Settings project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/settings/ updated: 2026-11-19T08:00:35.592Z --- # Settings > Name your SuperAdmin and set the SMTP server for e-mails. The settings apply to the whole SuperAdmin. Only SuperAdmins can open them: select **More > Settings**. After a change, select **Apply** at the top right. ![The Settings page](/files/JapVtn2p360f.webp) ## General **SuperAdmin name** is the name of this SuperAdmin. It is the title of the browser tab and of the sign-in page, and the sender name of e-mails. Use it to tell several servers apart, for example `Production server`. ## SMTP server SuperAdmin sends the e-mails of [alarms](../alarms/) through this server. | Field | What to type | |---|---| | **Hostname** | The host name of the SMTP server, for example `smtp.example.com`. | | **Options** | The connection options as JSON, for example `{"port":587,"user":"superadmin@example.com","password":"..."}`. The note under the field links to the full list of options. | | **Sender email address** | The sender address of the e-mails. | When you select **Apply**, SuperAdmin connects to the SMTP server first. If it cannot connect, it shows the error and does not save. --- title: Terminal project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/terminal/ updated: 2026-11-19T08:00:35.592Z --- # Terminal > Run shell commands on the server from the browser. The terminal runs shell commands on the server as the SuperAdmin process, which is `root`. Only SuperAdmins can open it. 1. Select **More > Open terminal**, or **Options > Open terminal**. 2. Type a command in the field at the bottom and press Enter. ![The terminal](/files/JapVtv2x360f.webp) The terminal starts in `/www/`. Each command and its output appear in the window. The terminal is a window: use the buttons in its title bar to minimize, maximize or close it. The terminal cannot stop a command with Ctrl+C. Do not start commands that wait for input or never end. --- title: Server actions project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/server-actions/ updated: 2026-11-19T08:00:35.592Z --- # Server actions > Restart or stop all apps and fix the file owners of the app folders. **Options** in the toolbar has actions for all apps at once. Each one asks for confirmation. ![The Options menu](/files/JapVtj2m361f.webp) ## Restart all apps Restarts every running app, one after the other. Stopped apps stay stopped; start them one by one with **Restart**. See [Start, stop and restart](../start-stop-restart/). ## Stop applications Stops every app. Through Nginx, all apps answer with `502 Bad Gateway` until you start them again. ## Fix permissions Gives the files in `/www/www/` back to the user that runs the apps (`root` by default). Use it after you copied files into an app folder as another user. ## Make a backup and Open terminal See [Backups](../backups/) and [Terminal](../terminal/). Only SuperAdmins see these items. --- title: HTTPS for SuperAdmin project: SuperAdmin version: 9.0 section: guides language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/guides/superadmin-https/ updated: 2026-11-19T08:00:35.592Z --- # HTTPS for SuperAdmin > Serve SuperAdmin itself over HTTPS with your own certificate. The install script asks whether SuperAdmin should use HTTPS. If you chose HTTP, you can switch later with the script `reconfigure.sh` and a certificate that you already have. ## Switch to HTTPS **1.** Become root on the server and copy the certificate and the key to these exact paths, where `superadmin.example.com` is your domain: ```text /www/ssl/superadmin.example.com/fullchain.cer /www/ssl/superadmin.example.com/superadmin.example.com.key ``` The `.cer` file must hold the full chain. **2.** Run the script: ```bash cd /www/superadmin bash reconfigure.sh y superadmin.example.com n ``` The arguments mean: use HTTPS (`y`), the domain, and do not request a new certificate (`n`). **3.** Wait for this line: ```text Configured superadmin with https://superadmin.example.com ``` The script then restarts SuperAdmin. **4.** Open `https://superadmin.example.com/`. The HTTP address redirects to it. ## Switch back to HTTP ```bash cd /www/superadmin bash reconfigure.sh n superadmin.example.com ``` ## Renew the certificate Replace the two files and reload Nginx: ```bash nginx -t && nginx -s reload ``` --- title: Application settings project: SuperAdmin version: 9.0 section: reference language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/reference/application-settings/ updated: 2026-11-19T08:00:40.593Z --- # Application settings > Every field of the application form and what it does. These fields are in **Add > App** and in **Settings** of an app. See [Add an application](../../guides/add-application/) and [Change application settings](../../guides/change-settings/). ## Address and name | Field | What it does | |---|---| | **URL address** | The address of the app with `http://` or `https://`. Required. | | **Internal name** | The name in the list. Without it, the list shows the domain. | | **Category** | Groups apps in the list. Choose one or type a new one. | | **Note** | A note for yourself, up to 200 characters. | ## Options | Field | What it does | |---|---| | **Enable debug mode** | Runs the app in debug mode: it restarts by itself when a file changes. Selected for a new app. | | **High priority** | Marks the app with a yellow badge and the keyword `@highpriority`. Alarms can be limited to these apps. | | **Enable access logging** | Nginx writes every request to `/www/logs/--access.log`, one JSON object per line. | ## SSL configuration Shown when the address starts with `https://`. See [HTTPS with your own certificate](../../guides/https-own-certificate/). | Field | What it does | |---|---| | **Add own SSL certificates** | Uses your certificate instead of an automatic one. | | **SSL key** | Absolute path to the key file. | | **SSL certificate** | Absolute path to the certificate file with the full chain. | ## Process and limits | Field | What it does | |---|---| | **Cluster** | **Disabled**, **Auto-scaling**, or a number of processes. With `2`, the app runs as a cluster of two worker processes. The app must support cluster mode. | | **Memory limit** | Maximum memory of the Node.js process, in megabytes. **auto** means no limit. Takes effect at the next start. | | **Max. upload size** | Largest request body Nginx accepts, in megabytes. Default `20`. | | **Max. request timeout** | How long Nginx waits for an answer of the app, in seconds. Default `600`. | ## Type of application | Type | How SuperAdmin starts it | |---|---| | **Total.js v4** | With a generated `index.js` that loads the `total4` package. | | **Total.js v3** | With a generated `index.js` that loads the `total.js` package. | | **Custom** | With your own start script, given in **Custom start script**. SuperAdmin passes the port and the mode as arguments. See [Run a plain Node.js app](../../recipes/plain-nodejs-app/). | For **Total.js v4**, **Use Unix socket** connects Nginx and the app through the file `superadmin.socket` in the app folder instead of a port. It is selected for a new app. ## Domains and IP addresses | Field | What it does | |---|---| | **Redirects** | More domains that redirect to the app. | | **Allowed IP addresses** | When filled, only these addresses can open the app. | | **Blocked IP addresses** | These addresses get `403 Forbidden`. | See [Domains, redirects and IP rules](../../guides/domains-and-ip-rules/). --- title: Folders and files project: SuperAdmin version: 9.0 section: reference language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/reference/folders-and-files/ updated: 2026-11-19T08:00:40.593Z --- # Folders and files > Where SuperAdmin keeps itself, your apps, the Nginx files, certificates, logs and backups. SuperAdmin keeps everything in the folder `/www/` on the server. | Path | What it holds | |---|---| | `/www/superadmin/` | SuperAdmin and its scripts `run.sh`, `reconfigure.sh` and `ssl.sh`. | | `/www/superadmin/.src/databases/` | The data of SuperAdmin: apps, users, alarms, settings and notifications. | | `/www/superadmin/logs/debug.log` | The output of SuperAdmin. | | `/www/superadmin/user.guid` | The Linux user that runs the apps, as `name:uid:gid`. | | `/www/www/` | One folder per app. | | `/www/nginx/` | One Nginx file per app, plus `superadmin.conf` for SuperAdmin itself. | | `/www/ssl/` | Certificates. `superadmin.key` and `superadmin.csr` are the built-in self-signed certificate. | | `/www/logs/` | Earlier logs of apps in release mode, earlier logs of SuperAdmin, and access logs. | | `/www/node_modules/` | The `total4` and `total.js` packages that the apps use. | | `/www/*.tar.gz` | Backups. See [Backups](../../guides/backups/). | ## Files in an app folder | File | What it is | |---|---| | `index.js` | The start script that SuperAdmin generates for Total.js apps. SuperAdmin writes it again on every start. | | `logs/debug.log` | The output and errors of the app. | | `superadmin.pid` | The process id of the app. Do not remove it. | | `superadmin.socket` | The Unix socket between Nginx and the app, when the app uses one. Do not remove or open it. | | `restart` | Create this file to make SuperAdmin restart the app. See [Restart an app from its own code](../../recipes/restart-from-code/). | ## Restart SuperAdmin As root on the server: ```bash bash /www/superadmin/run.sh ``` The script stops the running SuperAdmin and starts it again. Your apps keep running. --- title: Run a plain Node.js app project: SuperAdmin version: 9.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/recipes/plain-nodejs-app/ updated: 2026-11-19T08:00:40.593Z --- # Run a plain Node.js app > Host a Node.js app that is not a Total.js app with the Custom type. SuperAdmin can run any Node.js app that listens on a port. Choose the type **Custom** and give the name of your start script. SuperAdmin starts the script with Node.js and two arguments: the port number and the mode, `--release` or `--debug`. Your app must listen on that port on `127.0.0.1`. ## Example app A file `server.js`: ```javascript var http = require('http'); var port = +process.argv[2]; var mode = process.argv[3]; http.createServer(function(req, res) { res.end('Hello from a plain Node.js app (' + mode + ')'); }).listen(port, '127.0.0.1'); console.log('Listening on ' + port + ' ' + mode); ``` Pack it into a ZIP file with `server.js` at the top level. ## Add the app 1. Select **Add > App** and type the **URL address**, for example `http://node.example.com`. 2. Clear **Enable debug mode**. 3. Under **Type of application**, choose **Custom**. 4. In **Custom start script**, type `server.js`. 5. Select **SUBMIT**. 6. In **Upload source-code**, upload the ZIP file. See [Upload source code](../../guides/upload-source-code/). SuperAdmin runs a command like this one: ```bash node --nouse-idle-notification --expose-gc /www/www/example_com-node/server.js 8001 --release ``` The port is shown next to the name of the app in the list. Open the address of the app: it answers `Hello from a plain Node.js app (--release)`. The output of `console.log` goes to the log of the app. See [Logs and analyzator](../../guides/logs-and-analyzator/). With **Memory limit**, SuperAdmin adds `--max_old_space_size` with your value to the command. --- title: Restart an app from its own code project: SuperAdmin version: 9.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/recipes/restart-from-code/ updated: 2026-11-19T08:00:40.593Z --- # Restart an app from its own code > Let an app ask SuperAdmin for a restart by creating a file. An app can ask SuperAdmin to restart it: it creates an empty file named `restart` in its own folder. SuperAdmin checks for this file about once a minute. When it finds it, it removes the file and restarts the app. This works in debug and in release mode. Your app can create the file with any file function of Node.js. From the shell on the server: ```bash touch /www/www/example_com-shop/restart ``` Replace `example_com-shop` with the folder of your app. The folder of `shop.example.com` is `example_com-shop`; [File browser](../../guides/file-browser/) and the [Folders and files](../../reference/folders-and-files/) table help you find it. The restart happens within about a minute. The process id in `superadmin.pid` changes when it is done. --- title: Signing in project: SuperAdmin version: 9.0 section: faq language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/faq/sign-in/ updated: 2026-11-19T08:00:35.592Z --- # Signing in > Lost passwords, disabled accounts and the first-start credentials. ## I forgot my password Ask a SuperAdmin to set a new password in **More > Users**. See [Users](../../guides/users/). If nobody can sign in, reset the users on the server. This removes all user accounts: **1.** Become root on the server: ```bash sudo su ``` **2.** Remove the user database and restart SuperAdmin: ```bash rm /www/superadmin/.src/databases/users.nosql bash /www/superadmin/run.sh ``` **3.** Open SuperAdmin. The sign-in page shows new first-start credentials. See [First sign-in](../../guides/first-sign-in/). Your apps, alarms and settings stay as they are. ## The sign-in page says "Your account was disabled" A SuperAdmin selected **Deny access** for your account. Ask them to clear it. ## Where are the first-start credentials? They are shown on the sign-in page only until someone signs in for the first time. After that, use the login name and password you set in **My profile**. --- title: Applications project: SuperAdmin version: 9.0 section: faq language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/faq/applications/ updated: 2026-11-19T08:00:35.592Z --- # Applications > Common questions about running apps in SuperAdmin. ## My app answers "502 Bad Gateway" Nginx cannot reach the app. The app is stopped, is still starting, or stopped with an error. Select **Show logs** to read the log, then **Restart**. See [Logs and analyzator](../../guides/logs-and-analyzator/). A **Custom** app must listen on the port SuperAdmin gives it. See [Run a plain Node.js app](../../recipes/plain-nodejs-app/). ## My change to a file does not show In release mode, an app reads its files only when it starts. Select **Restart**, or use debug mode while you work on the app. ## I changed a setting and nothing happened Some settings take effect at the next start. See [Change application settings](../../guides/change-settings/). ## Why are there files named superadmin.pid and superadmin.socket in my app? SuperAdmin stores the process id of the app in `superadmin.pid`. `superadmin.socket` is the Unix socket between Nginx and the app. Do not remove or open them. See [Folders and files](../../reference/folders-and-files/). ## Can I edit index.js of my app? No. SuperAdmin writes `index.js` again on every start of a Total.js app. Put your code in the usual Total.js folders, such as `controllers/` and `definitions/`. ## How do I see the requests to my app? Select **Enable access logging** in the settings of the app. Nginx then writes each request to `/www/logs/--access.log`. --- title: Changelog project: SuperAdmin version: 9.0 section: changelog language: en license: MIT url: https://totaljs.es/docs/superadmin/9-0/changelog/changelog/ updated: 2026-11-19T08:00:35.592Z --- # Changelog > The changes in each version of SuperAdmin, as listed in the source code. This list is copied from the file `changelog.txt` of the source code. ## 9.0.0 - updated source-code to Total.js 4 - added support for Total.js 4 applications - fully redesigned - improved security - improved source-code - improved stability - improved generating of SSL - improved generating of NGINX configuration - improved performance - removed stats section - implementing websocket ## 8.0.0 - added stateless mode for ACME - added backup of `applications.json` - addef Filebrowser - added FTP - added Quick Access, just press F1 - improved UI - improved code ## 7.0.0 - added auto-renew SSL certificates - added nice charts with monthly statistics - added option for enabling NGINX access logging - updated version of all client-side libraries (jQuery, jComponent and CodeMirror) - improved code - fixed analyzator for deprecated warnings - fixed a problem with determination of `nginx` binary - added support for Total.js components (group `superadmin`) ## 6.0.0 - add backend monitoring - add statistics ## 5.0.0 - add logs analyzator - add custom start scripts - add CouchDB consumption - add backuping of `applications.json` - add logging - app does not use `service nginx` command - add server last logins preview - add nginx config test preview - add SuperAdmin logs preview - add backuping of all applications logs in release mode - improve UI ## 4.0.0 - renew Let's encrypt certificates - watching SSL expiration - improve UI - update debug.js version - add memory limit