prepare organizr, move conf files to folders, add yes to pkg commands
This commit is contained in:
parent
51ed8edcf8
commit
0d1af41bb9
30
organizr-conf/nginx.conf
Normal file
30
organizr-conf/nginx.conf
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
user www;
|
||||||
|
worker_processes 1;
|
||||||
|
events {
|
||||||
|
worker_connections 1024;
|
||||||
|
}
|
||||||
|
http {
|
||||||
|
include mime.types;
|
||||||
|
default_type application/octet-stream;
|
||||||
|
sendfile on;
|
||||||
|
keepalive_timeout 65;
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name localhost;
|
||||||
|
root /usr/local/www/Organizr;
|
||||||
|
location / {
|
||||||
|
index index.php index.html index.htm;
|
||||||
|
}
|
||||||
|
error_page 500 502 503 504 /50x.html;
|
||||||
|
location = /50x.html {
|
||||||
|
root /usr/local/www/nginx-dist;
|
||||||
|
}
|
||||||
|
location ~ \.php$ {
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||||
|
fastcgi_pass unix:/var/run/php-fpm.sock;
|
||||||
|
fastcgi_index index.php;
|
||||||
|
fastcgi_param SCRIPT_FILENAME $request_filename;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
21
organizr.sh
Normal file
21
organizr.sh
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
echo '{"pkgs":["nginx","php72","php72-filter","php72-curl","php72-hash","php72-json","php72-openssl","php72-pdo","php72-pdo_sqlite","php72-session","php72-simplexml","php72-sqlite3","php72-zip","git","ca_root_nss"]}' > /tmp/pkg.json
|
||||||
|
iocage create -n "organizr" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|192.168.10.21/22" defaultrouter="192.168.10.1" vnet="on" allow_raw_sockets="1" boot="on"
|
||||||
|
rm /tmp/pkg.json
|
||||||
|
iocage exec organizr mkdir -p /config
|
||||||
|
iocage fstab -a organizr /mnt/tank/apps/organizr /config nullfs rw 0 0
|
||||||
|
iocage exec organizr sed -i '' -e 's?listen = 127.0.0.1:9000?listen = /var/run/php-fpm.sock?g' /usr/local/etc/php-fpm.d/www.conf
|
||||||
|
iocage exec organizr sed -i '' -e 's/;listen.owner = www/listen.owner = www/g' /usr/local/etc/php-fpm.d/www.conf
|
||||||
|
iocage exec organizr sed -i '' -e 's/;listen.group = www/listen.group = www/g' /usr/local/etc/php-fpm.d/www.conf
|
||||||
|
iocage exec organizr sed -i '' -e 's/;listen.mode = 0660/listen.mode = 0600/g' /usr/local/etc/php-fpm.d/www.conf
|
||||||
|
iocage exec organizr cp /usr/local/etc/php.ini-production /usr/local/etc/php.ini
|
||||||
|
iocage exec organizr sed -i '' -e 's?;date.timezone =?date.timezone = "Universal"?g' /usr/local/etc/php.ini
|
||||||
|
iocage exec organizr sed -i '' -e 's?;cgi.fix_pathinfo=1?cgi.fix_pathinfo=0?g' /usr/local/etc/php.ini
|
||||||
|
mv /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/nginx.conf /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/nginx.conf.bak
|
||||||
|
cp ./organizr-conf/inginx.conf /mnt/tank/iocage/jails/organizr/root/usr/local/etc/nginx/nginx.conf
|
||||||
|
iocage exec organizr git clone https://github.com/causefx/Organizr.git /usr/local/www/Organizr
|
||||||
|
iocage exec organizr chown -R www:www /usr/local/www /config
|
||||||
|
iocage exec organizr ln -s /config/config.php /usr/local/www/Organizr/api/config/config.php
|
||||||
|
iocage exec organizr sysrc nginx_enable=YES
|
||||||
|
iocage exec organizr sysrc php_fpm_enable=YES
|
||||||
|
iocage exec organizr service nginx start
|
||||||
|
iocage exec organizr service php-fpm start
|
6
plex.sh
6
plex.sh
@ -4,7 +4,7 @@ echo '{"pkgs":["plexmediaserver-plexpass","ca_root_nss","nano"]}' > /tmp/pkg.jso
|
|||||||
iocage create -n "plex" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|192.168.10.23/24" defaultrouter="192.168.10.1" vnet="on" allow_raw_sockets="1" boot="on"
|
iocage create -n "plex" -p /tmp/pkg.json -r 11.3-RELEASE ip4_addr="vnet0|192.168.10.23/24" defaultrouter="192.168.10.1" vnet="on" allow_raw_sockets="1" boot="on"
|
||||||
rm /tmp/pkg.json
|
rm /tmp/pkg.json
|
||||||
iocage exec plex "mkdir -p /usr/local/etc/pkg/repos"
|
iocage exec plex "mkdir -p /usr/local/etc/pkg/repos"
|
||||||
cp ./FreeBSD.conf /mnt/tank/iocage/jails/plex/root/usr/local/etc/pkg/repos/FreeBSD.conf
|
cp ./plex-conf/FreeBSD.conf /mnt/tank/iocage/jails/plex/root/usr/local/etc/pkg/repos/FreeBSD.conf
|
||||||
iocage exec plex mkdir -p /config
|
iocage exec plex mkdir -p /config
|
||||||
iocage exec plex mkdir -p /mnt/library
|
iocage exec plex mkdir -p /mnt/library
|
||||||
iocage fstab -a plex /mnt/tank/apps/plex /config nullfs rw 0 0
|
iocage fstab -a plex /mnt/tank/apps/plex /config nullfs rw 0 0
|
||||||
@ -12,7 +12,7 @@ iocage fstab -a plex /mnt/tank/Library /mnt/library nullfs ro 0 0
|
|||||||
iocage exec plex chown -R plex:plex /config
|
iocage exec plex chown -R plex:plex /config
|
||||||
iocage exec plex sysrc "plexmediaserver_plexpass_enable=YES"
|
iocage exec plex sysrc "plexmediaserver_plexpass_enable=YES"
|
||||||
iocage exec plex sysrc plexmediaserver_plexpass_support_path="/config"
|
iocage exec plex sysrc plexmediaserver_plexpass_support_path="/config"
|
||||||
iocage exec plex pkg update
|
iocage exec plex pkg update -y
|
||||||
iocage exec plex pkg upgrade
|
iocage exec plex pkg upgrade -y
|
||||||
iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/
|
iocage exec plex chown -R plex:plex /usr/local/share/plexmediaserver-plexpass/
|
||||||
iocage exec plex service plexmediaserver_plexpass start
|
iocage exec plex service plexmediaserver_plexpass start
|
Loading…
Reference in New Issue
Block a user