change repository and string of cert info
change index.sh repo change download.sh repo change lighttpd.conf repo
This commit is contained in:
parent
e9981322ae
commit
549199ddea
11
openvpn.sh
11
openvpn.sh
|
@ -260,22 +260,23 @@ chmod g+s /etc/openvpn/easy-rsa/
|
||||||
|
|
||||||
#Generate a self-signed certificate for the web server
|
#Generate a self-signed certificate for the web server
|
||||||
mkdir /etc/lighttpd/ssl/
|
mkdir /etc/lighttpd/ssl/
|
||||||
openssl req -new -x509 -keyout /etc/lighttpd/ssl/server.pem -out /etc/lighttpd/ssl/server.pem -days 9999 -nodes -subj "/C=UK/ST=Warwickshire/L=Leamington/O=OrgName/OU=IT Department/CN=example.com"
|
openssl req -new -x509 -keyout /etc/lighttpd/ssl/server.pem -out /etc/lighttpd/ssl/server.pem -days 9999 -nodes -subj "/C=US/ST=California/L=San Francisco/O=zingbox.com/OU=Ops Department/CN=zingbox.com"
|
||||||
chmod 744 /etc/lighttpd/ssl/server.pem
|
chmod 744 /etc/lighttpd/ssl/server.pem
|
||||||
|
|
||||||
|
|
||||||
#Configure the web server with the lighttpd.conf from GitHub
|
#Configure the web server with the lighttpd.conf from GitHub
|
||||||
mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.old
|
mv /etc/lighttpd/lighttpd.conf /etc/lighttpd/lighttpd.conf.old
|
||||||
wget -O /etc/lighttpd/lighttpd.conf https://raw.githubusercontent.com/theonemule/simple-openvpn-server/master/lighttpd.conf
|
wget -O /etc/lighttpd/lighttpd.conf https://raw.githubusercontent.com/kenneyhe-zingbox/simple-openvpn-server/master/lighttpd.conf
|
||||||
|
|
||||||
#install the webserver scripts
|
#install the webserver scripts
|
||||||
rm /var/www/html/*
|
rm /var/www/html/*
|
||||||
wget -O /var/www/html/index.sh https://raw.githubusercontent.com/theonemule/simple-openvpn-server/master/index.sh
|
wget -O /var/www/html/index.sh https://raw.githubusercontent.com/kenneyhe-zingbox/simple-openvpn-server/master/index.sh
|
||||||
wget -O /var/www/html/download.sh https://raw.githubusercontent.com/theonemule/simple-openvpn-server/master/download.sh
|
|
||||||
|
wget -O /var/www/html/download.sh https://raw.githubusercontent.com/kenneyhe-zingbox/simple-openvpn-server/master/download.sh
|
||||||
chown -R www-data:www-data /var/www/html/
|
chown -R www-data:www-data /var/www/html/
|
||||||
|
|
||||||
#set the password file for the WWW logon
|
#set the password file for the WWW logon
|
||||||
echo "admin:$ADMINPASSWORD" >> /etc/lighttpd/.lighttpdpassword
|
echo "admin:$ADMINPASSWORD" >> /etc/lighttpd/.lighttpdpassword
|
||||||
|
|
||||||
#restart the web server
|
#restart the web server
|
||||||
service lighttpd restart
|
service lighttpd restart
|
||||||
|
|
Loading…
Reference in New Issue