transmission: Run from behind Apache

- Introduce Apache configuration for plinth.

- Remove Transmission service file for firewalld.

- Enable transmission on install.

- Enable/disable Apache configuration on Transmission on enable/disable.

- Remove IP address whilelisting as 127.0.0.1 is the default setting and
  is sufficient for Apache to reverse proxy.

- Update UI URL.
This commit is contained in:
Sunil Mohan Adapa committed 2015-05-01 19:00:56 +05:30
1 parent f94d0d5414
commit 69adf1cfc5
8 files changed
+31 -32

No files matched your search

+4
View File
@@ -79,10 +79,14 @@ def subcommand_enable(_):
"""Start Transmission service."""
set_service_enable(enable=True)
subprocess.call(['service', 'transmission-daemon', 'start'])
subprocess.call(['a2enconf', 'transmission-plinth'])
subprocess.call(['service', 'apache2', 'reload'])
def subcommand_disable(_):
"""Stop Transmission service."""
subprocess.call(['a2disconf', 'transmission-plinth'])
subprocess.call(['service', 'apache2', 'reload'])
subprocess.call(['service', 'transmission-daemon', 'stop'])
set_service_enable(enable=False)