diff --git a/group_vars/all.yml b/group_vars/all.yml index a34f55c4..140a5090 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -357,6 +357,8 @@ transmission_external_port: "51414" transmission_openvpn_webui_port: "9091" transmission_openvpn_external_port: "51415" transmission_openvpn_proxy_port: "3128" +transmission_openvpn_ratio_limit_enabled: "true" +transmission_openvpn_ratio_limit: 2 # Transmission VPN Credentials # If you're using Transmission with a VPN, you'll need to set these credentials. diff --git a/tasks/transmission_with_openvpn.yml b/tasks/transmission_with_openvpn.yml index cbfaa865..9966cced 100644 --- a/tasks/transmission_with_openvpn.yml +++ b/tasks/transmission_with_openvpn.yml @@ -16,22 +16,27 @@ pull: true volumes: - "/etc/localtime:/etc/localtime:ro" - - "{{ transmission_download_directory }}:/storage/downloads:rw" + - "{{ transmission_download_directory }}:/downloads:rw" - "{{ transmission_config_directory }}:/config:rw" - - "{{ transmission_watch_directory }}:/storage/watch:rw" + - "{{ transmission_watch_directory }}:/watch:rw" - "/etc/timezone:/etc/timezone:ro" ports: - "{{ transmission_openvpn_webui_port }}:9091" - "{{ transmission_openvpn_external_port }}:51413" + - "{{ transmission_openvpn_proxy_port }}:3128" env: TRANSMISSION_HOME: "/config" - TRANSMISSION_DOWNLOAD_DIR: "/storage/downloads/complete" - TRANSMISSION_INCOMPLETE_DIR: "/storage/downloads/incomplete" - TRANSMISSION_WATCH_DIR: "/storage/watch" + TRANSMISSION_DOWNLOAD_DIR: "/downloads" + TRANSMISSION_INCOMPLETE_DIR: "/downloads/.incomplete" + TRANSMISSION_WATCH_DIR: "/watch" + TRANSMISSION_RATIO_LIMIT: "{{ transmission_openvpn_ratio_limit }}" + TRANSMISSION_RATIO_LIMIT_ENABLED: "{{ transmission_openvpn_ratio_limit_enabled }}" OPENVPN_PROVIDER: "{{ openvpn_provider }}" OPENVPN_USERNAME: "{{ openvpn_username }}" OPENVPN_PASSWORD: "{{ openvpn_password }}" OPENVPN_CONFIG: "{{ openvpn_config }}" + WEBPROXY_ENABLED: "true" + WEBPROXY_PORT: "3128" PUID: "{{ transmission_user_id }}" PGID: "{{ transmission_group_id }}" LOCAL_NETWORK: "{{ transmission_local_network }}"