Notes d’installation de couchpotato et sickrage.
Installation avec ansible
Installer apache2-utils pour htpasswd
Proxy web (avec le module nginx de ansible) pour accès :
nginx_package_name: "nginx-extras"
nginx_vhosts:
- listen: "80"
server_name: "belenos.montfort.fr"
root: "/dev/null"
index: "index.php index.html index.htm"
extra_parameters: |
location /sickrage {
auth_basic "nono";
auth_basic_user_file /etc/nginx/htpasswd; #u must run htpasswd on this
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
# This is the IP:PORT of the service nginx will serve (EG: Gollum, RoR apps, flask.. apache etc..)
proxy_pass http://127.0.0.1:8081; #<-check whats running: netstat -ntpl
}
location /couchpotato {
auth_basic "nono";
auth_basic_user_file /etc/nginx/htpasswd; #u must run htpasswd on this
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header Host $host;
# This is the IP:PORT of the service nginx will serve (EG: Gollum, RoR apps, flask.. apache etc..)
proxy_pass http://127.0.0.1:5050; #<-check whats running: netstat -ntpl
}
Modifier l’url de base de couchpotato dans general en activant les options avancées.
Idem pour sickrage, modifier web_root et handle_reverse_proxy dans le config.ini.
ansible-playbook -vv -i ansible_hosts -l couchpotato –tags=couchpotato site.yml