-
Notifications
You must be signed in to change notification settings - Fork 4
/
run.sh
68 lines (53 loc) · 1.14 KB
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
### Variables
# new passwords
DEBIAN_PASS="SuperHasło123@@@"
ROOT_PASS="RootSuperHasło123@@@"
# vps hostname
HOST="hello"
DOMAIN="example.com"
EMAIL="[email protected]"
# default user
DEFAULT_USER="debian"
# add sftp upload user
USER_NAME="vpsmax"
USER_PASS="Vpsmax123@@@"
USER_SUDO=false
# ssh
SSH_PORT=22
SSH_DENY_USERS="root admin ssh sshd"
SSH_ALLOW_USERS="$USER_NAME $DEFAULT_USER"
# ssh mask, allow only from ip range (1.0.0.0/8, 1.2.0.0/16, 1.2.3.0/24)
SSH_MASK=false
SSH_MASK_IP="1.2.0.0/16"
# mariadb
MYSQL_PASS="toor"
MYSQL_PASS_LARAVEL="toor"
MYSQL_REMOVE_PASS=false
MYSQL_REMOVE_PASS_LARAVEL=false
# php versions 8.2, 8.1, 7.4
PHP_VER="8.2"
# snakeoil
SSL_CERT="/etc/ssl/certs/ssl-cert-snakeoil.pem"
SSL_KEY="/etc/ssl/private/ssl-cert-snakeoil.key"
### Scripts
# Don't change below
echo "## SCRIPTS Runing"
# change passwords
. data/pass.sh
# add sftp user
. data/adduser.sh
# run scripts
. data/ssh.sh
. data/host.sh
. data/sources.sh
. data/packages.sh
. data/snakeoil.sh
. data/firewall.sh
. data/postfix.sh
. data/php.sh
. data/mariadb.sh
. data/nginx.sh
. data/nginx-default.sh
. data/fail2ban.sh
. data/ssh-login-alert.sh