loveland rocket
This commit is contained in:
parent
2da09e4b59
commit
866068634c
|
@ -35,7 +35,7 @@ sudo apt-get install fail2ban nginx ssl-cert openssl-blacklist php-curl php-sqli
|
|||
|
||||
# CONFIG NGINX - LOVE LAND
|
||||
sudo cp -f $MY_PATH/../www/loveland.conf /etc/nginx/conf.d/
|
||||
$PHPVERSION=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}')
|
||||
PHPVERSION=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}')
|
||||
sudo sed -i "s/_PHPVERSION_/$PHPVERSION/g" /etc/nginx/conf.d/loveland.conf
|
||||
nodename=$(cat /etc/hostname)
|
||||
extension=$(echo $nodename | cut -d '.' -f 2)
|
||||
|
@ -47,7 +47,7 @@ sudo sed -i "s/_SERVERNAME_/$nodename/g" /etc/nginx/conf.d/loveland.conf
|
|||
sudo systemctl restart nginx || err=1
|
||||
|
||||
# INSTALL LOVELand WebSite LINKs
|
||||
sudo ln -s $MY_PATH/../www/LOVELand /var/www/loveland
|
||||
sudo ln -s $MY_PATH/../www/LOVELand/ /var/www/loveland
|
||||
sudo chmod 777 /var/www/loveland/jukebox/albumart
|
||||
sudo chmod 777 /var/www/loveland/jukebox/prefs
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -1,15 +1,13 @@
|
|||
server {
|
||||
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
|
||||
root /var/www/loveland;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
server_name _SERVERNAME_;
|
||||
|
||||
# _PHPVERSION_=$(ps auxf | grep php-fpm | grep -v -E 'color=auto|grep' | head -n 1 | grep -oP '(?<=\().*(?=\))' | awk -F '/' '{print $4}')
|
||||
|
||||
# This section can be copied into an existing default setup
|
||||
location / {
|
||||
allow all;
|
||||
|
|
Loading…
Reference in New Issue