After my previous media server broke, I decided to run a new setup
[new components]
[existing components]
[optional/future components]
This time I wanted to give TrueNAS (formerly FreeNAS) a try. Later, after some struggle with migration and reading into it, I chose Unraid instead.
General: Install accoding to doc
Subfolder Samba Shares:
Unraid User shares are all created at /mnt/user/NAME
.
I wanted a folder media
that can be passed to e.g. Emby Docker, but wanted a fine control which subfolders are visible in Samba.
Adding /boot/config/smb-extra.conf
:
[movies]
path = /mnt/user/media/movies
read only = Yes
[series]
path = /mnt/user/media/series
read only = Yes
[import]
path = /mnt/user/media/import
writeable = yes
browseable = no
Then smbcontrol smbd reload-config
(Might still require a reboot)
Plugins:
IPMI:
Beloved Media Center and competitor of Plex.
JD with remote control via my.jdownloader.org
Allows to tunnel applications through https quite easily.
Important I added swag and all "apps" it should utilize to the same Docker Network "Custom: cdocknet".
Installed via CA as a Docker.
Emby
/appdata/swag/nginx/proxy-confs/emby.subdomain.conf
server {
listen 443 ssl;
listen [::]:443 ssl;
listen 80;
listen [::]:80;
server_name emby.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app EmbyServerBeta;
set $upstream_port 8096;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
proxy_set_header Range $http_range;
proxy_set_header If-Range $http_if_range;
}
}
Firefox SyncServer
/appdata/swag/nginx/proxy-confs/firefoxsyncserver.subdomain.conf
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name fxsync.*;
include /config/nginx/ssl.conf;
client_max_body_size 0;
location / {
include /config/nginx/proxy.conf;
include /config/nginx/resolver.conf;
set $upstream_app FirefoxSyncserver;
set $upstream_port 5000;
set $upstream_proto http;
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
}
}
References:
I hosted my syncserver instance on a very cheap hosting plan, seperated from all my other hosting, but recently they decided to increase prices, therefore considered moving it to the NAS.
Reference: