*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[Solved] Transmission over https

Transmission bittorrent server.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

[Solved] Transmission over https

#1

Post by chrisf4lc0n »

Hi all,
Tried to look for some info on how to secure Transmission over https and managed to get it working but for some reason WebGUI did not load when messed about with lighttpd.conf...
Tried at least a dozen of different configs but I failed. I really need some help.
Has someone managed to configure lighttpd.conf the way it also works with WebGUI?
Last edited by chrisf4lc0n on 25 Jul 2013 06:09, edited 1 time in total.
Watercooling is just the beginning ;)

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: Transmission over https

#2

Post by chrisf4lc0n »

OK, nobody wanted to help so I went to my neighbor again :) Thanks Vandit!
Here we go:
In shell type in:

Code: Select all

nano /etc/rc.d/lighttpd
then your "server modules" section needs to look like that:

Code: Select all

server.modules = (
  "mod_access",
  "mod_auth",
  "mod_proxy",
  "mod_simple_vhost",
  "mod_accesslog",
  "mod_cgi" )
then just below:

Code: Select all

cgi.assign = (".php" => "/usr/local/bin/php-cgi")
add:

Code: Select all

include "/var/etc/lighttpd-transmission.conf"
Now we need to create "lighttpd-transmission.conf" file so we:

Code: Select all

nano /var/etc/lighttpd-transmission.conf
then in the file we need to add:

Code: Select all

$SERVER["socket"] == "YOUR NAS IP:5555" {

     proxy.server  = ( "" => 
        (( "host" => "YOUR NAS IP", "port" => 9091 ))
    )

    server.document-root = "/usr/local/share/transmission/web" 
    accesslog.filename = "/var/log/transmission-ssl.access.log" 
    ssl.engine = "enable"
    ssl.pemfile = "/var/etc/cert.pem"

}
I chose to use 9091 for the unsecured transmission and port 5555 for transmission over https. If you choose to use different ports then change accordingly!
Last edited by chrisf4lc0n on 09 Aug 2013 19:08, edited 2 times in total.
Watercooling is just the beginning ;)

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5116
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Transmission over https

#3

Post by raulfg3 »

congratulations.

Remenber that your changes are lose if you update/upgrade Nas4Free, so a good idea is to make a copy of modified file and restore once you upgrade ( I do the same for /usr/local/www/diag_log.inc when add more services to log webGUI, like serviio log file or minidlna logfile).

PD: A high level addon , can be to add a posinit that copy from data disk to proper location desired files, to do not need remember to copy changed file when upgrade, but manual system is enought for me.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

chrisf4lc0n
Advanced User
Advanced User
Posts: 264
Joined: 07 May 2013 13:15
Location: West Drayton (London)
Status: Offline

Re: Transmission over https

#4

Post by chrisf4lc0n »

raulfg3 wrote:congratulations.

Remenber that your changes are lose if you update/upgrade Nas4Free, so a good idea is to make a copy of modified file and restore once you upgrade ( I do the same for /usr/local/www/diag_log.inc when add more services to log webGUI, like serviio log file or minidlna logfile).

PD: A high level addon , can be to add a posinit that copy from data disk to proper location desired files, to do not need remember to copy changed file when upgrade, but manual system is enought for me.
Thanks mate. I am aware of vanishing config files after the upgrade... so I normally copy them over somewhere safe. I also keep an exact copy of my USB stick with the OS on it, just in case I mess something up and need to revert to previous stage :)
Watercooling is just the beginning ;)

Post Reply

Return to “BitTorrent”