OpenFLIXR – Remove Page Password

With the amount of friends and family coming through the house, some of asked to be able to add TV shows to SickRage. I’ve found it annoying to explain the URL to go to, then the password for basic authentication to get to Sab or SickRage.

After some brief googling, I found this site: https://www.digitalocean.com/community/questions/remove-htpasswd-password-protection-nginx

 

Although it didn’t address my desire exactly, it pointed me in the right direction.

  1. SSH into openflixr
  2. change directory into the nginx web dir
    cd /etc/nginx/sites-enabled/
  3. edit the reverse file with your choice of text editor
    sudo nano reverse
  4. put in your pw
    hunter2
  5. scroll down to the sub directory you’d like the password removed from
    location /sabnzbd {
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    
  6. add a new line and add in “auth_basic off;”
    location /sabnzbd {
    auth_basic off;
    proxy_pass http://127.0.0.1:8080;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
    
  7. Restart nginx
    sudo service nginx restart
  8. Reload your page, now without a password prompt!