-
Notifications
You must be signed in to change notification settings - Fork 4
/
settings.sh
57 lines (57 loc) · 2.87 KB
/
settings.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
#!/usr/bin/env bash
#######################
##### START CONFIG ####
#######################
# NOTE: All variables defined here have "_g_" in the variable name. This is to indicate that they are global variables.
#######################
str_g_adminEmail='' # Example: [email protected] :: Where to send email when script is done. This will have the account login details email to it.
str_g_emailRelaySever='' # Example: mail.example.com :: Set set a mail RELAY for your domain
str_g_port='' # Example: 22 :: This should be the SSH port that can access the server from the Internet, so customers can SFTP here.
#######################
# Default Self-Signed SSL Cert Details.
#######################
str_g_country="US"
str_g_state="Washington"
str_g_locality="Seattle"
str_g_organizationalunit="IT"
#######################
# Configuration File locations and some minor settings.
# Normally, these don't no need to change.
#######################
bln_g_letsencrypt_support=true # This options has to be 'true' or 'false' only. If you wish to use this, the server must be WAN accessible; no reverse proxy.
bln_g_usingReverseProxy=false # This options has to be 'true' or 'false' only. If you have a load balancer or reverse proxy in front of the webserver you
# need to set this to true. This will configure the system logging to capture the true visitors IP address, and not the LB or RP.
str_g_mysqlRootUser='root' # Mysql root user maybe 'adminer' also, depends on our install.
str_g_sftpGroup='sftp'
str_g_webGroup='www-data' # Set this to the default group apache is using.
str_g_postfixConfigFile='/etc/postfix/main.cf' # Set the postfix config file location.
str_g_apache2Dir='/etc/apache2/'
str_g_webMysqlToolWebDir='/usr/share/phpmyadmin/' # Other default DIRs of MySQL management tools, "/usr/share/adminer/adminer/", or "/usr/share/phpmyadmin/"
#######################
#### END CONFIG #######
#######################
## URLs for packages ##
#### DO NOT CHANGE ####
#######################
str_g_modsecGitUrl='https://github.com/coreruleset/coreruleset.git'
str_g_ossecGitUrl='https://github.com/ossec/ossec-hids.git'
#######################
### Console Colors ####
#### DO NOT CHANGE ####
#######################
color_NC='\033[0m' # No Color
# Regular Colors
color_BLACK="\033[0;30m" # Black
color_RED="\033[0;31m" # Red
color_GREEN="\033[0;32m" # Green
color_YELLOW="\033[0;33m" # Yellow
color_BLUE="\033[0;34m" # Blue
color_PURPLE="\033[0;35m" # Purple
color_CYAN="\033[0;36m" # Cyan
color_WHITE="\033[0;37m" # White
# Underline
color_UCyan="\033[4;36m" # Cyan
# Bold High Intensty
color_BICyan="\033[1;96m" # Cyan
#### END Colors #######
#######################