Hello,
Après avoir migré sous buster, mis à jour rutorrent, rtorrent et consort pour repartir à jour, j'ai décidé d'abandonner Medusa qui ne fonctionnait plus suite à la mise à jour.
Du coup, j'ai opté pour Sickchill, en complément, pour utiliser le tracker yggtorrents, j'ai installé aussi jackett. Surprise il a fallu aussi que je me tape la config de FlareSolverr pour que tout fonctionne (surtout que je n'y connais rien en nodejs). Un vrai bonheur ces histoire de versions et autre... et pour le lancer en continu aussi, découverte de forever, bref...
Donc, maintenant tout fonctionne "de base" mais j'aimerai utiliser les deux outils (sickchill et jackett) en reverse proxy pour profiter de ma configuration https etc. Parce que là je suis derrière http://mondomain.fr:port
J'ai regardé les tutos, tenté de configurer le tout mais :
- soit je n'arrive plus à accéder aux app après avoir configuré le tout comme décrit
- soit j'arrive à y accéder mais je n'ai pas les images (en gros j'ai l'accès mais aucune image ou css n'est chargé)
Comme je ne suis pas bon en configuration nginx, je me tourne vers vous
Pour information voici mon fichier conf :
server {
listen 80;
server_name rutorrent.mondomain.fr;
return 301 https://rutorrent.mondomain.fr$request_uri;
}
server {
listen 443 ssl;
server_name rutorrent.mondomain.fr;
index index.html index.php;
charset utf-8;
client_max_body_size 10M;
##**********************SSL*****************
ssl on;
ssl_certificate /etc/letsencrypt/live/www.mondomain.fr/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/www.mondomain.fr/privkey.pem;
##*******************************************
access_log /var/log/nginx/rutorrent-access.log combined;
error_log /var/log/nginx/rutorrent-error.log error;
error_page 500 502 503 504 /50x.html;
location = /50x.html { root /usr/share/nginx/html; }
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd";
## Ajout Buster
root /var/www;
location ~ \.php$ {
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ {
expires 30d;
access_log off;
}
## Fin ajout buster
location = /favicon.ico {
access_log off;
log_not_found off;
}
## début config rutorrent ##
location ^~ / {
root /var/www/rutorrent;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
location ~ /\.svn {
deny all;
}
location ~ /\.ht {
deny all;
}
}
location /jackett/ {
proxy_pass http://localhost:9117;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection keep-alive;
proxy_cache_bypass $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $http_host;
}
location /sickchill {
root /opt/sickchill;
proxy_pass http://127.0.0.1:8081;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location ^~ /esm {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
if ($remote_user != "gormson") {
return 404;
}
}
location ^~ /rutorrent/conf/ {
deny all;
}
location ^~ /rutorrent/share/ {
deny all;
}
## fin config rutorrent ##
## début config proxy ##
location ^~ /proxy {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config proxy ##
location ^~ /graph {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
location ^~ /graph/img {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
error_log /dev/null crit;
}
location ^~ /monitoring {
root /var/www;
include /etc/nginx/conf.d/php.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config munin ##
## début config seedbox-manager ##
location ^~ /seedbox-manager {
alias /var/www/seedbox-manager/public;
include /etc/nginx/conf.d/php-manager.conf;
include /etc/nginx/conf.d/cache.conf;
}
## fin config seedbox-manager ##
## config utilisateurs ##
location /GORMSON {
include scgi_params;
scgi_pass 127.0.0.1:5001; #ou socket : unix:/home/username/.session/username.socket
auth_basic "seedbox";
auth_basic_user_file "/etc/nginx/passwd/rutorrent_passwd_gormson";
}
}
pour information, sickchill et jackett sont tous les deux installés dans /opt
Ce que je ne comprends pas c'est pourquoi, lorsque je me mets en place le reverse proxy, l'accès se fait mais sans les images, en gros c'est tout blanc sans mise en page.
J'ai épluché les différents fichiers de conf nginx sans trouver "d'exclusion" de fichier image ou autre. Mais peut être je ne cherche pas la bonne chose.
Pour information j'ai d'autres fichiers de conf :
-rw-r--r-- 1 root root 1301 Sep 17 2017 base.conf
-rw-r--r-- 1 root root 809 Jun 21 2016 boxCleaner.conf
-rw-r--r-- 1 root root 3437 Oct 22 2017 cakebox_noproxy.conf
-rw-r--r-- 1 root root 1904 Jul 30 2016 h5ai.conf
-rw-r--r-- 1 root root 4202 Feb 14 2016 rutorrent.bak
-rw-r--r-- 1 root root 8208 Jan 2 12:11 rutorrent.conf
-rw-r--r-- 1 root root 2142 Sep 17 2017 seafile.conf
Merci d'avance de l'aide apportée.