My media server is using radarr sonarr prowlarr and transmission


Disclaimer ⚠️

You must use a media server to only download and share content you own

Manual install on a server

Install nginx with sudo apt install nginx or with any other package manager depending on your distribution

modify the file /etc/nginx/sites-enabled/default

server {
 listen 80 default_server;
 listen [::]:80 default_server;

    root /var/www/html;

    index index.html index.htm index.nginx-debian.html;

    server_name _;
    location /media {  # new url path
        alias /home/myusername/mount/media/; # CHANGE THAT TO WHERE YOUR FILES ARE STORED
        autoindex on;
    }

    location / {
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            try_files $uri $uri/ =404;
    }
}

All my media files are stored inside /home/myusername/mount/media

They will be displayed on /media/ url, you must remember what you set here for later

now reload nginx with the command

systemctl daemon-reload

and restart nginx with

systemctl restart nginx