Deluge: ssl and base url options

I have nginx as SSL proxy for deluge web-ui. There is also an option for deluge to change default url. My current deluge url is https://x.x.x.x:8081/tor
Check this thread if you have any questions: http://forum.deluge-torrent.org/viewtopic.php?f=7&t=10165&start=20