[fix] cleanup
This commit is contained in:
parent
3422f8b467
commit
67ed0cb9e0
3 changed files with 124 additions and 120 deletions
|
|
@ -1,12 +1,21 @@
|
|||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name _;
|
||||
|
||||
root /opt/LJ/www;
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
return 301 https://localhost$request_uri;
|
||||
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
listen [::]:443 ssl;
|
||||
server_name _;
|
||||
|
||||
ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
|
||||
ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
|
||||
|
||||
root /opt/LJ/www;
|
||||
index index.html index.htm;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@ echo -e "\e[0m\n"
|
|||
# Check the ip address on the machine
|
||||
checkNetwork(){
|
||||
|
||||
|
||||
echo -e "\Checking network connectivity..."
|
||||
ping=$( ping 1.1.1.1 -c 1 -W 2 &>/dev/null; echo $?;)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue