If your SSL has been expired just login to your server via SSH (you need be under root privileges) and write into the terminal:
# Open app directory
$ cd /www/superadmin/
# Renew SSL
$ bash ssl.sh superadmindomain.yourdomain.com --renew
# Test NGINX configuration
$ nginx -t
# Reload NGINX configuration
$ nginx -s reload
You need to restart it manually on the server. Just login to your server via SSH (you need be under root privileges) and write into the terminal:
# Open app directory
$ cd /www/superadmin/
# Run SuperAdmin
$ bash run.sh
The command stops SuperAdmin (if ran) and start it again.
/databases/applications.json
/config
file (only credentials, nothing more)/databases/applications.json
/config
ftp
helper via $ apt-get install -y ftp
SSL generator
to the latest version via bash /www/superadmin/ssl.sh --update
bash run.sh
IMPORTANT:
If you have lower version than v7.0.0
then replace /etc/nginx/nginx.conf
for /superadmin/nginx.conf
.
$ kill -9 $(ps aux | grep "total" | awk {'print $2'}) > /dev/null
/www/
directorynginx
configuration, it's stored as /etc/nginx/nginx.conf.backup
$ crontab -l
Of course. SuperAdmin doesn't limit you with nginx and you can create own nginx configs out of SuperAdmin, just add your nginx config to the directory below:
/www/nginx/
directory$ nginx -s
All data are stored in /www/
directory:
/www/ssl/
/www/nginx
/www/logs/
/www/www/
/www/superadmin/
Yes, but we have tested it on Ubuntu Server only. Some developers provide SuperAdmin on Debian distributions, but we don't have any experience with it.
Each Total.js applications need to depend on monitor module. Follow module install instructions. If you have monitor module installed then add URL to monitoring to your app in SuperAdmin:
Of course, we don't limit you. Premium SuperAdmin is under MIT license and you can use it everywhere or sell it to your end-customers.
Install requirements:
curl
openssl
SuperAdmin requirements:
awk
bash
cat
cp
df
du
free
ftp
grep
ifconfig
last
lsof
mkdir
netstat
npm
ps
tail
tar
unzip
uptime
wc
zip
Check:
If you have a problem with generating SSL certificates, try to check your DNS records for IPv4 and IMPORTANT: IPv6 address. ACME checks IPv6 first and then it checks IPv4.
If the generating of SSL still persist and it worked before, then try to perform the steps below:
/www/superadmin/databases/acmethumbprint.txt
curl https://get.acme.sh | sh
$ bash /www/superadmin/run.sh
When you first install SuperAdmin if for whatever reason the SSL is not generated correctly it will default to HTTP hosting. You now have the option to reconfigure it from/to HTTPS as well as being able to generate a new SSL using the bash script superadmin/reconfigure.sh
:
# SET TO HTTPS AND GENERATE SSL:
$ bash reconfigure.sh y superadmin.mydomain.com y
# SET TO HTTPS WITHOUT GENERATING SSL:
$ bash reconfigure.sh y superadmin.mydomain.com
# SET TO HTTP:
$ bash reconfigure.sh n superadmin.mydomain.com
It's easy, just follow create a start script like this:
var express = require('express');
var app = express();
app.get('/', function (req, res) {
res.send('hello world 2')
});
// !!! IMPORTANT 1:
app.listen(+process.argv[2]);
// !!! IMPORTANT 2 ("total" word must start in the process title):
process.title = 'total: express';
And then set a name of start script to SuperAdmin: