main
HerrHase 1 year ago
parent 996a7f165d
commit eb38128f34

@ -11,6 +11,8 @@ set -o nounset
# installing dependencies
apt update && apt upgrade -y && apt autoremove -y
apt remove ubuntu-advantage-tools -y
curl -sL https://deb.nodesource.com/setup_18.x -o nodesource_setup.sh
apt install -y nodejs git unzip curl ufw fail2ban cockpit software-properties-common

@ -0,0 +1,5 @@
sudo apt install letsencrypt
sudo systemctl status certbot.timer
sudo certbot certonly --standalone --agree-tos --preferred-challenges http -d domain-name.com
sudo certbot certonly --standalone --agree-tos --preferred-challenges http -d system-test.die-logistik24.de

@ -38,7 +38,8 @@ user.password = await password({
const connection = await mysql.createConnection({
host: 'localhost',
user: user.name,
password: user.password
password: user.password,
port: 3306
})
const database = {

@ -0,0 +1,4 @@
symlink('/etc/nginx/sites-available/'.$vhost['file'], '/etc/nginx/sites-enabled/'.$vhost['file']);
exec('nginx -c /etc/nginx/nginx.conf -t 2>&1', $output);

@ -1 +1,4 @@
spawn('curl -sL https://deb.nodesource.com/setup_' + $version + '.x | sudo -E bash -')
cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
Loading…
Cancel
Save