Pour le moment je met de coté le certificat, en fait j'arrive meme pas a acceder a syncthing...
En fait ce que je ne trouve pas c'est une explication clair de la structure de rutorrent.conf. (j'ai bien lu les tutos sur nginx et tout)
j'ai bien compris que tout passait par lui🙂
j'ai créé un fichier /etc/nginx/conf.d/syncthing.yourdomain.com.conf
dans lequel j'ai mis:
server {
listen 80;
server_name syncthing.yourdomain.com;
root /usr/share/nginx/syncthing;
access_log /var/log/nginx/syncthing.yourdomain.com.log;
error_log /var/log/nginx/syncthing.yourdomain.com.error.log;
location / {
proxy_pass http://127.0.0.1:8384;
}
}
et dans rutorrents.conf, j'ai ajouté:
include /etc/nginx/conf.d/syncthing.yourdomain.com.conf;
mais bien sur ca marche pas, puisque c'est des infos "serveur".
j'ai également essayer ca dans rutorrents:
## début config syncthing ##
location ^~ /syncthing/{
include /etc/nginx/conf.d/syncthing.mondomain.ovh.conf;
proxy_set_header Host 127.0.0.1;
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_pass http://127.0.0.1:8384/;
}
## fin config syncthing ##
le nginx passe le test mais toujours d'acces a syncthing...
bref je seche.... 🙁