Help config nginx proxy for transmission on other server

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
kirill
Posts: 2
Joined: Sun Jan 07, 2024 4:29 pm

Help config nginx proxy for transmission on other server

Post by kirill »

Please help me config nginx ssl-proxy. Some times (I think one of updates broke working scheme).
I have 2 servers: 1 - nginx ssl-proxy 10.10.2.10 (proxmox server), 2 - transmission virtual pc 10.10.2.23.
virtual pc:

Code: Select all

[root@torrent ~]# uname -a
Linux torrent 5.15.131-2-pve #1 SMP PVE 5.15.131-3 (2023-12-01T13:42Z) x86_64 x86_64 x86_64 GNU/Linux
[root@torrent ~]# cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.9 (Midnight Oncilla)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.9"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.9 (Midnight Oncilla)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.9"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.9"
[root@torrent ~]# rpm -qi transmission-daemon
Name        : transmission-daemon
Version     : 3.00
Release     : 1.el8
Architecture: x86_64
Install Date: Сб 14 ноя 2020 15:26:34
Group       : Unspecified
Size        : 615241
License     : MIT and GPLv2
Signature   : RSA/SHA256, Чт 02 июл 2020 20:23:17, Key ID 21ea45ab2f86d6a1
Source RPM  : transmission-3.00-1.el8.src.rpm
Build Date  : Чт 02 июл 2020 20:17:58
Build Host  : buildvm-x86-08.iad2.fedoraproject.org
Relocations : (not relocatable)
Packager    : Fedora Project
Vendor      : Fedora Project
URL         : http://www.transmissionbt.com
Bug URL     : https://bugz.fedoraproject.org/transmission
Summary     : Transmission daemon
Description :
Transmission BitTorrent client daemon.
Last config for ssl-nginx config:

Code: Select all

upstream transmission_backend {
        server          10.10.2.23:9091;
        keepalive       32;
}

server {
        listen          443 ssl;
	listen          [::]:443 ssl http2;
        server_name     torrent.*;

    	access_log  /var/log/nginx/transmission.access.log;
    	error_log  /var/log/nginx/transmission.error.log;

        send_timeout    100m;

	#include /etc/nginx/authentik-server.conf;

        gzip            on;
        gzip_vary       on;
        gzip_min_length 1000;
        gzip_proxied    any;
        gzip_types      text/plain text/css text/xml application/xml text/javascript application/x-javascript image/svg+xml;
        gzip_disable "MSIE [1-6]\.";

        client_max_body_size 0;

	proxy_hide_header X-Frame-Options; # this should allow iframe

    location / {
        proxy_read_timeout  300;
        proxy_set_header    Host                 $host;
        proxy_set_header    X-Forwarded-Proto    $scheme;
        proxy_set_header    X-Forwarded-Protocol $scheme;
        proxy_set_header    X-Real-IP            $remote_addr;
        proxy_pass_header   X-Transmission-Session-Id;
        proxy_set_header    X-Forwarded-Host     $host;
        proxy_set_header    X-Forwarded-Server   $host;
        proxy_set_header    X-Forwarded-For      $proxy_add_x_forwarded_for;
        proxy_pass          http://transmission_backend;
    }
}
I try different solutions for proxy to transmission-daemon or nginx on this virtual pc, but I always have nginx error 500 when upload torrent file
ss_20240107_184624_1.png
ss_20240107_184624_1.png (89.25 KiB) Viewed 1136 times
.
When I try direct open nginx from this virtual pc I see Conflict 409 too, but upload torrent work.
ss_20240107_184817_1.png
ss_20240107_184817_1.png (44.24 KiB) Viewed 1136 times
kirill
Posts: 2
Joined: Sun Jan 07, 2024 4:29 pm

Re: Help config nginx proxy for transmission on other server

Post by kirill »

After update from this repository (http://geekery.altervista.org/dokuwiki/doku.php) I see errors in console, but file uploaded.
ss_20240107_221537_6.png
ss_20240107_221537_6.png (37.42 KiB) Viewed 1127 times
killemov
Posts: 542
Joined: Sat Jul 31, 2010 5:04 pm

Re: Help config nginx proxy for transmission on other server

Post by killemov »

If the proxy just passes on the errors then that is ok. The 409 error is documented here.
Post Reply