Bon réinstallation faite et j'ai utilisé le script pour l'installation de rutorrent.
Je me penche toujours dessus.
Si je veux avoir un docker start couchpotato-user, j'ai compris maintenant qu'il faut faire ça.
docker run -d -p 8080:5050 --name couchpotato-user \
-e WEBROOT=/cp \
-e UID=1001 \
-e GID=1001 \
-v /docker/config/CP:/config \
xataz/couchpotato
Si j'ai un deuxième utilisateur:
docker run -d -p 5051:5050 --name couchpotato-user2 \
-e WEBROOT=/cp \
-e UID=1001 \
-e GID=1001 \
-v /docker/config/CP:/config \
xataz/couchpotato
J'ai remis le port par défaut pour accéder au page.
Dois-je aussi modifier le dossier de configuration pour chaque user? Je pense que oui. Quand on change les paramètres dans le couchpotato, cela enregistre bien dans ce dossier?
UID et GID doit changer aussi? Si oui, on doit reprendre mon UID user et UID user2, c'est possible aussi (donné par rutorrent)?
Le
-e WEBROOT=/cp \
sers à différencier les différents container qui aurait le même port? Je vois que tu as plusieurs container avec le port 8080 mais que le webroot est différent. C'est ça?
edit: pour le sous domaine, je pense avoir une piste.
Je pense que cela marche si on rajoute les identifiants rutorrent au fichier et non en prenant la connexion par couchpotato.
server {
listen 80;
server_name couchpotato.ndd.fr;
return 301 https://couchpotato.ndd.fr$request_uri;
}
server {
listen 443 ssl http2;
server_name couchpotato.ndd.fr;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
access_log /var/log/nginx/couchpotato-access.log combined;
error_log /var/log/nginx/couchpotato-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
location / {
if ($remote_user = "user") {
proxy_pass http://127.0.0.1:8080;
break;
}
if ($remote_user = "user2") {
proxy_pass http://127.0.0.1:8081;
break;
}
proxy_redirect off;
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;
}
J'ai installé aussi ton sickrage mais j'ai un problème.
docker run -d -p 8081:8081 --name sickrage-user\
-e WEBROOT=/sr \
-e UID=1001 \
-e GID=1001 \
-v /docker/config/SR:/config \
xataz/sickrage
Traceback (most recent call last):
File "/SickRage/lib/tornado/web.py", line 1390, in _execute
result = self.prepare()
File "/SickRage/lib/tornado/web.py", line 2103, in prepare
raise HTTPError(self._status_code)
HTTPError: HTTP 404: Not Found