How to setup a reverse NGINX proxy for SiCKRAGE


The following guide assumes you’ve already installed NGINX and SiCKRAGE.

#1. edit sickrage’s config.ini and change web_host value to localhost, also change handle_reverse_proxy value to 1

#2. create a new file called sickrage under /etc/nginx/sites-enabled/ and add the following code

upstream sickrage {
  server localhost:8081;

server {
  listen 80;
  return 301 https://$host$request_uri;

server {
  listen 443 ssl;
  ssl_certificate /etc/nginx/ssl/sickrage.crt;
  ssl_certificate_key /etc/nginx/ssl/sickrage.key;

  location / {
    proxy_pass http://sickrage;
    proxy_set_header    Host                $http_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_buffer_size     128k;
    proxy_buffers            4 256k;
    proxy_busy_buffers_size    256k;

#3. Make a directory called ssl under /etc/nginx then create SSL certs using the following command openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/ssl/sickrage.key -out /etc/nginx/ssl/sickrage.crt

#4. startup NGINX and SiCKRAGE, enjoy!

You should now be able to access SiCKRAGE from

Why are my settings (which I can't change via GUI) are base64 encoded & encrypted?
Reverse NGINX SiCKRAGE without proxy