Skip to content

Commit

Permalink
ssl
Browse files Browse the repository at this point in the history
ssl blocked in forwared sites.
  • Loading branch information
QROkes committed Aug 2, 2024
1 parent 10a2e27 commit 4a50aaa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions lib/install
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ if [[ $(conf_read db-engine) == "mysql" && $ram -lt 1 ]]; then
echo "${red}[ERROR] MySQL is set as database engine!${dim} (Not enough RAM: ${ramb}MB)"
echo "You should consider MariaDB instead for small servers under 2GB.${end}"
exit 1
elif [[ $(conf_read db-engine) == "mysql" && $(cpu_arch) == "ARM" ]]; then
echo "${red}[ERROR] MySQL is set as database engine!${dim} (ARM processors are not supported by MySQL)${end}"
echo "${red}You should consider MariaDB instead for ARM servers.${end}"
exit 1
fi


Expand Down
3 changes: 3 additions & 0 deletions lib/site-ssl
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ site_ssl_on() {
if [[ -n $manual && $manual != "http" && $manual != "dns" ]]; then
echo "${red}[ERROR] Invalid value for manual option!${end}"
exit 1
elif [[ $(is_forward $domain) == "true" ]]; then
echo "${red}[ERROR] SSL Certs are not supported in forwared domains!${end}"
exit 1
elif [[ ! -d /var/www/$path/htdocs && -z $root_path && -z $manual ]]; then
echo "${red}[ERROR] Seems like you are trying to request an SSL Certificate for a Parked/Mapped Domain."
echo "Please, use the '-root=domain.com' parameter to specify the main domain."
Expand Down
5 changes: 0 additions & 5 deletions usr/stack
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,6 @@ elif [[ -n $php ]]; then
[[ $answer = [Yy] || $php == "nginx" ]] && stack_builder nginx php false $build || stack_builder false php false $build

elif [[ -n $mysql ]]; then
if [[ $(conf_read db-engine) == "mysql" && $(cpu_arch) == "ARM" ]]; then
echo "${red}[ERROR] ARM processors are not supported by MySQL!${end}"
exit 1
fi

[[ $(conf_read php) != "true" || $(conf_read nginx) != "true" ]] && build=light
[[ $mysql == "client" ]] && stack_builder false false mysql-client || stack_builder false false mysql $build

Expand Down

0 comments on commit 4a50aaa

Please sign in to comment.