Restructure and add update scripts
This commit is contained in:
50
includes/jackett-conf/jackett.rc
Normal file
50
includes/jackett-conf/jackett.rc
Normal file
@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: jackett
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# jackett_enable: Set to YES to enable jackett
|
||||
# Default: NO
|
||||
# jackett_user: The user account used to run the jackett daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run as root.
|
||||
# Default: media
|
||||
# jackett_group: The group account used to run the jackett daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run with group wheel.
|
||||
# Default: media
|
||||
# jackett_data_dir: Directory where jackett configuration
|
||||
# data is stored.
|
||||
# Default: /var/db/jackett
|
||||
|
||||
. /etc/rc.subr
|
||||
name=jackett
|
||||
rcvar=${name}_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${jackett_enable:="NO"}
|
||||
: ${jackett_user:="jackett"}
|
||||
: ${jackett_group:="jackett"}
|
||||
: ${jackett_data_dir:="/config"}
|
||||
|
||||
command="/usr/sbin/daemon"
|
||||
procname="/usr/local/bin/mono"
|
||||
command_args="-p ${jackett_data_dir}/jackett.pid -f ${procname} /usr/local/share/Jackett/JackettConsole.exe -d ${jackett_data_dir}"
|
||||
|
||||
start_precmd=jackett_precmd
|
||||
jackett_precmd() {
|
||||
export USER=${jackett_user}
|
||||
if [ ! -d ${jackett_data_dir} ]; then
|
||||
install -d -o ${jackett_user} -g ${jackett_group} ${jackett_data_dir}
|
||||
fi
|
||||
|
||||
export XDG_CONFIG_HOME=${jackett_data_dir}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
36
includes/lidarr-conf/lidarr.rc
Normal file
36
includes/lidarr-conf/lidarr.rc
Normal file
@ -0,0 +1,36 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: lidarr
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf to enable lidarr:
|
||||
# lidarr_enable="YES"
|
||||
|
||||
. /etc/rc.subr
|
||||
name=lidarr
|
||||
rcvar=${name}_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${lidarr_enable="NO"}
|
||||
: ${lidarr_user:="lidarr"}
|
||||
: ${lidarr_group:="lidarr"}
|
||||
: ${lidarr_data_dir:="/config"}
|
||||
|
||||
pidfile="${lidarr_data_dir}/lidarr.pid"
|
||||
command="/usr/sbin/daemon"
|
||||
procname="/usr/local/bin/mono"
|
||||
command_args="-f ${procname} /usr/local/share/Lidarr/Lidarr.exe -- data=${lidarr_data_dir} --nobrowser"
|
||||
|
||||
start_precmd=lidarr_precmd
|
||||
lidarr_precmd() {
|
||||
if [ ! -d ${lidarr_data_dir} ]; then
|
||||
install -d -o ${lidarr_user} -g ${lidarr_group} ${lidarr_data_dir}
|
||||
fi
|
||||
|
||||
export XDG_CONFIG_HOME=${lidarr_data_dir}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
156
includes/organizr-conf/custom/organizr.conf
Normal file
156
includes/organizr-conf/custom/organizr.conf
Normal file
@ -0,0 +1,156 @@
|
||||
send_timeout 5m;
|
||||
proxy_read_timeout 240;
|
||||
proxy_send_timeout 240;
|
||||
proxy_connect_timeout 240;
|
||||
client_header_timeout 240;
|
||||
client_body_timeout 240;
|
||||
|
||||
location / {
|
||||
root /usr/local/www/Organizr;
|
||||
index index.php index.html index.htm index.nginx-debian.html;
|
||||
location ~ /auth-(.*) {
|
||||
internal;
|
||||
rewrite ^/auth-(.*) /api/?v1/auth&group=$1;
|
||||
}
|
||||
error_page 400 401 402 403 404 405 408 500 502 503 504 $scheme://$server_name/?error=$status;
|
||||
location / {try_files $uri $uri/ =404;}
|
||||
include custom/phpblock.conf; #PHP Block
|
||||
}
|
||||
|
||||
location /transmission {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.29:9091;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /nzbget {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://127.0.0.1:6789;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /nzbhydra/ {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://127.0.0.1:5075/nzbhydra/;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /sonarr {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.30:8989;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /radarr {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.31:7878;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /lidarr {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.32:7878;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /jackett {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.28:9117;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
proxy_redirect off;
|
||||
}
|
||||
|
||||
location /plex/ {
|
||||
auth_request /auth-4;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.26:32400/;
|
||||
client_max_body_size 10m;
|
||||
client_body_buffer_size 128k;
|
||||
proxy_bind $server_addr;
|
||||
proxy_buffers 32 4k;
|
||||
#Timeout if the real server is dead
|
||||
proxy_next_upstream error timeout invalid_header http_500 http_502 http_503;
|
||||
# Advanced Proxy Config
|
||||
send_timeout 5m;
|
||||
proxy_read_timeout 240;
|
||||
proxy_send_timeout 240;
|
||||
proxy_connect_timeout 240;
|
||||
proxy_hide_header X-Frame-Options;
|
||||
# Basic Proxy Config
|
||||
proxy_set_header Host $host:$server_port;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto https;
|
||||
proxy_redirect http:// $scheme://;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Connection "";
|
||||
proxy_no_cache $cookie_session;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
if ($http_referer ~* /plex/) {
|
||||
rewrite ^/web/(.*) /plex/web/$1? redirect;
|
||||
}
|
||||
|
||||
location /tautulli {
|
||||
auth_request /auth-4;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.27:8181;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Host $server_name;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
location /ombi/ {
|
||||
auth_request /auth-4;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://127.0.0.1:5000/ombi/;
|
||||
proxy_http_version 1.1;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection keep-alive;
|
||||
proxy_set_header Host $host;
|
||||
proxy_cache_bypass $http_upgrade;
|
||||
}
|
||||
|
||||
location /grafana {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.34;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /bitwarden {
|
||||
auth_request /auth-0;
|
||||
add_header X-Frame-Options "SAMEORIGIN";
|
||||
proxy_pass http://192.168.30.33:8000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
9
includes/organizr-conf/custom/phpblock.conf
Normal file
9
includes/organizr-conf/custom/phpblock.conf
Normal file
@ -0,0 +1,9 @@
|
||||
fastcgi_read_timeout 240;
|
||||
|
||||
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;
|
||||
}
|
26
includes/organizr-conf/nginx.conf
Normal file
26
includes/organizr-conf/nginx.conf
Normal file
@ -0,0 +1,26 @@
|
||||
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 organizr.dmz.schouten-lebbing.nl;
|
||||
include custom/organizr.conf;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
server_name organizr.schouten-lebbing.nl;
|
||||
include custom/organizr.conf;
|
||||
ssl_certificate /config/cert/Organizr-Cert.crt; # Manually Added
|
||||
ssl_certificate_key /config/cert/Organizr-Cert.key; # Manually Added
|
||||
}
|
||||
|
||||
}
|
3
includes/plex-conf/FreeBSD.conf
Normal file
3
includes/plex-conf/FreeBSD.conf
Normal file
@ -0,0 +1,3 @@
|
||||
FreeBSD: {
|
||||
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest"
|
||||
}
|
50
includes/radarr-conf/radarr.rc
Normal file
50
includes/radarr-conf/radarr.rc
Normal file
@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: radarr
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# radarr_enable: Set to YES to enable radarr
|
||||
# Default: NO
|
||||
# radarr_user: The user account used to run the radarr daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run as root.
|
||||
# Default: media
|
||||
# radarr_group: The group account used to run the radarr daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run with group wheel.
|
||||
# Default: media
|
||||
# radarr_data_dir: Directory where radarr configuration
|
||||
# data is stored.
|
||||
# Default: /var/db/radarr
|
||||
|
||||
. /etc/rc.subr
|
||||
name=radarr
|
||||
rcvar=${name}_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${radarr_enable:="NO"}
|
||||
: ${radarr_user:="radarr"}
|
||||
: ${radarr_group:="radarr"}
|
||||
: ${radarr_data_dir:="/config"}
|
||||
|
||||
pidfile="${radarr_data_dir}/nzbdrone.pid"
|
||||
command="/usr/sbin/daemon"
|
||||
procname="/usr/local/bin/mono"
|
||||
command_args="-f ${procname} /usr/local/share/Radarr/Radarr.exe --data=${radarr_data_dir} --nobrowser"
|
||||
|
||||
start_precmd=radarr_precmd
|
||||
radarr_precmd() {
|
||||
if [ ! -d ${radarr_data_dir} ]; then
|
||||
install -d -o ${radarr_user} -g ${radarr_group} ${radarr_data_dir}
|
||||
fi
|
||||
|
||||
export XDG_CONFIG_HOME=${radarr_data_dir}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
50
includes/sonarr-conf/sonarr.rc
Normal file
50
includes/sonarr-conf/sonarr.rc
Normal file
@ -0,0 +1,50 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# PROVIDE: sonarr
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
|
||||
# to enable this service:
|
||||
#
|
||||
# sonarr_enable: Set to YES to enable sonarr
|
||||
# Default: NO
|
||||
# sonarr_user: The user account used to run the sonarr daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run as root.
|
||||
# Default: media
|
||||
# sonarr_group: The group account used to run the sonarr daemon.
|
||||
# This is optional, however do not specifically set this to an
|
||||
# empty string as this will cause the daemon to run with group wheel.
|
||||
# Default: media
|
||||
# sonarr_data_dir: Directory where sonarr configuration
|
||||
# data is stored.
|
||||
# Default: /var/db/sonarr
|
||||
|
||||
. /etc/rc.subr
|
||||
name=sonarr
|
||||
rcvar=${name}_enable
|
||||
load_rc_config $name
|
||||
|
||||
: ${sonarr_enable:="NO"}
|
||||
: ${sonarr_user:="sonarr"}
|
||||
: ${sonarr_group:="sonarr"}
|
||||
: ${sonarr_data_dir:="/config"}
|
||||
|
||||
pidfile="${sonarr_data_dir}/nzbdrone.pid"
|
||||
command="/usr/sbin/daemon"
|
||||
procname="/usr/local/bin/mono"
|
||||
command_args="-f ${procname} /usr/local/share/NzbDrone/NzbDrone.exe --data=${sonarr_data_dir} --nobrowser"
|
||||
|
||||
start_precmd=sonarr_precmd
|
||||
sonarr_precmd() {
|
||||
if [ ! -d ${sonarr_data_dir} ]; then
|
||||
install -d -o ${sonarr_user} -g ${sonarr_group} ${sonarr_data_dir}
|
||||
fi
|
||||
|
||||
export XDG_CONFIG_HOME=${sonarr_data_dir}
|
||||
}
|
||||
|
||||
run_rc_command "$1"
|
Reference in New Issue
Block a user