mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
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:
1 parent
f94d0d5414
commit
69adf1cfc5
8 files changed
+31
-32
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user