mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Update INSTALL.sh
This commit is contained in:
parent
fe5eba0177
commit
af164017d4
10
INSTALL.sh
10
INSTALL.sh
@ -47,7 +47,7 @@ UFW_SETUP=false # previous
|
|||||||
CSF_SETUP=true # default since >0.2.2
|
CSF_SETUP=true # default since >0.2.2
|
||||||
SET_ADMIN_USERNAME=false # random
|
SET_ADMIN_USERNAME=false # random
|
||||||
SET_ADMIN_PASSWORD=false # random
|
SET_ADMIN_PASSWORD=false # random
|
||||||
SCREENSHOTS_API_URL="http://screenshots-api.openpanel.co/screenshot" # default since 0.2.1
|
SCREENSHOTS_API_URL="http://screenshots-api.openpanel.com/screenshot"# default since 0.2.1
|
||||||
|
|
||||||
# PATHS
|
# PATHS
|
||||||
ETC_DIR="/etc/openpanel/" # https://github.com/stefanpejcic/openpanel-configuration
|
ETC_DIR="/etc/openpanel/" # https://github.com/stefanpejcic/openpanel-configuration
|
||||||
@ -142,9 +142,9 @@ detect_filesystem(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_server_ipv4(){
|
get_server_ipv4(){
|
||||||
# Get server ipv4 from ip.openpanel.co
|
# Get server ipv4 from ip.openpanel.com
|
||||||
current_ip=$(curl --silent --max-time 2 -4 https://ip.openpanel.co || \
|
current_ip=$(curl --silent --max-time 2 -4 https://ip.openpanel.com || \
|
||||||
wget --timeout=2 -qO- https://ip.openpanel.co || \
|
wget --timeout=2 -qO- https://ipv4.openpanel.com || \
|
||||||
curl --silent --max-time 2 -4 https://ifconfig.me)
|
curl --silent --max-time 2 -4 https://ifconfig.me)
|
||||||
# If site is not available, get the ipv4 from the hostname -I
|
# If site is not available, get the ipv4 from the hostname -I
|
||||||
if [ -z "$current_ip" ]; then
|
if [ -z "$current_ip" ]; then
|
||||||
@ -1265,7 +1265,7 @@ configure_nginx() {
|
|||||||
ln -s /etc/openpanel/nginx/options-ssl-nginx.conf /etc/letsencrypt/options-ssl-nginx.conf
|
ln -s /etc/openpanel/nginx/options-ssl-nginx.conf /etc/letsencrypt/options-ssl-nginx.conf
|
||||||
openssl dhparam -out /etc/letsencrypt/ssl-dhparams.pem 2048 > /dev/null 2>&1
|
openssl dhparam -out /etc/letsencrypt/ssl-dhparams.pem 2048 > /dev/null 2>&1
|
||||||
|
|
||||||
# https://dev.openpanel.co/services/nginx
|
# https://dev.openpanel.com/services/nginx
|
||||||
ln -s /etc/openpanel/nginx/nginx.conf /etc/nginx/nginx.conf
|
ln -s /etc/openpanel/nginx/nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|
||||||
# Setting pretty error pages for nginx, but need to add them inside containers also!
|
# Setting pretty error pages for nginx, but need to add them inside containers also!
|
||||||
|
Loading…
Reference in New Issue
Block a user