Transmission with a Nginx Proxy

Transmission has a great web UI. But it's a bit hard to try new UI's out on, not to mention that unsightly URL. Lets take the power of Nginx and use it to serve the app up.

Lets start out just proxing web requests into Transmission.

server {
	listen       80 default;

	location /rpc {
		proxy_pass	http://127.0.0.1:9091/transmission/rpc;
	}

	location /transmission {
		proxy_pass	http://127.0.0.1:9091/transmission/;
		# Should you have massive .torrent files to upload.
		client_max_body_size	15M;
	}

	location / {
		proxy_pass	http://127.0.0.1:9091/transmission/web/;
	}
}

From here rules can be added to make the URL look even better.

Or we can pass replace the UI and serve it with Nginx rather than load it into Transmission and restart it.

 	location / {
		root /home/transweb/replace_ui;
	}