mirror of
https://github.com/mtan93/Apps-Community.git
synced 2026-03-08 05:31:59 +00:00
deluge port fix
This commit is contained in:
@@ -19,8 +19,12 @@
|
|||||||
extport2: '58846'
|
extport2: '58846'
|
||||||
intport3: '58946'
|
intport3: '58946'
|
||||||
extport3: '58946'
|
extport3: '58946'
|
||||||
intport4: '8118'
|
intport4: '5418'
|
||||||
extport4: '8118'
|
extport4: '5418'
|
||||||
|
intport5: '5419'
|
||||||
|
extport5: '5419'
|
||||||
|
intport6: '8118'
|
||||||
|
extport6: '8118'
|
||||||
image: 'binhex/arch-delugevpn'
|
image: 'binhex/arch-delugevpn'
|
||||||
|
|
||||||
# CORE (MANDATORY) ############################################################
|
# CORE (MANDATORY) ############################################################
|
||||||
@@ -84,7 +88,9 @@
|
|||||||
- '{{ports.stdout}}{{extport}}:{{intport}}'
|
- '{{ports.stdout}}{{extport}}:{{intport}}'
|
||||||
- '{{ports.stdout}}{{extport2}}:{{intport2}}'
|
- '{{ports.stdout}}{{extport2}}:{{intport2}}'
|
||||||
- '{{ports.stdout}}{{extport3}}:{{intport3}}'
|
- '{{ports.stdout}}{{extport3}}:{{intport3}}'
|
||||||
- '{{ports.stdout}}{{extport4}}:{{intport4}}'
|
- '{{extport4}}:{{intport4}}'
|
||||||
|
- '{{extport5}}:{{intport5}}'
|
||||||
|
- '{{ports.stdout}}{{extport6}}:{{intport6}}'
|
||||||
volumes: '{{pg_volumes}}'
|
volumes: '{{pg_volumes}}'
|
||||||
env: '{{pg_env}}'
|
env: '{{pg_env}}'
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
@@ -274,6 +280,41 @@
|
|||||||
regexp: '"seed_time_ratio_limit".*'
|
regexp: '"seed_time_ratio_limit".*'
|
||||||
line: '"seed_time_ratio_limit": 1.0,'
|
line: '"seed_time_ratio_limit": 1.0,'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: set outgoing_ports
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"outgoing_ports".*'
|
||||||
|
line: '"outgoing_ports": [{{intport5}}, {{intport5}}],'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set random_port
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"random_port".*'
|
||||||
|
line: '"random_port": false,'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set random_outgoing_ports
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"random_outgoing_ports".*'
|
||||||
|
line: '"random_outgoing_ports": false,'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set listen_random_port
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"listen_random_port".*'
|
||||||
|
line: '"listen_random_port": null,'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set listen_ports
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"listen_ports".*'
|
||||||
|
line: '"listen_ports": [{{intport4}},{{intport4}}],'
|
||||||
|
state: present
|
||||||
when: not confcheck.stat.exists
|
when: not confcheck.stat.exists
|
||||||
|
|
||||||
- name: Restart {{pgrole}}
|
- name: Restart {{pgrole}}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
#
|
#
|
||||||
# Title: PGBlitz (Reference Title File)
|
# Title: PGBlitz (Reference Title File)
|
||||||
# Author(s): Admin9705
|
# Authors: Admin9705, Deiteq, and many PGBlitz Contributors
|
||||||
# URL: https://pgblitz.com - http://github.pgblitz.com
|
# URL: https://pgblitz.com - http://github.pgblitz.com
|
||||||
# GNU: General Public License v3.0
|
# GNU: General Public License v3.0
|
||||||
################################################################################
|
################################################################################
|
||||||
@@ -19,6 +19,10 @@
|
|||||||
extport2: '58846'
|
extport2: '58846'
|
||||||
intport3: '58946'
|
intport3: '58946'
|
||||||
extport3: '58946'
|
extport3: '58946'
|
||||||
|
intport4: '5418'
|
||||||
|
extport4: '5418'
|
||||||
|
intport5: '5419'
|
||||||
|
extport5: '5419'
|
||||||
image: 'linuxserver/deluge'
|
image: 'linuxserver/deluge'
|
||||||
|
|
||||||
# CORE (MANDATORY) ############################################################
|
# CORE (MANDATORY) ############################################################
|
||||||
@@ -78,6 +82,8 @@
|
|||||||
- '{{ports.stdout}}{{extport}}:{{intport}}'
|
- '{{ports.stdout}}{{extport}}:{{intport}}'
|
||||||
- '{{ports.stdout}}{{extport2}}:{{intport2}}'
|
- '{{ports.stdout}}{{extport2}}:{{intport2}}'
|
||||||
- '{{extport3}}:{{intport3}}'
|
- '{{extport3}}:{{intport3}}'
|
||||||
|
- '{{extport4}}:{{intport4}}'
|
||||||
|
- '{{extport5}}:{{intport5}}'
|
||||||
volumes: '{{pg_volumes}}'
|
volumes: '{{pg_volumes}}'
|
||||||
env: '{{pg_env}}'
|
env: '{{pg_env}}'
|
||||||
restart_policy: unless-stopped
|
restart_policy: unless-stopped
|
||||||
@@ -267,6 +273,41 @@
|
|||||||
regexp: '"seed_time_ratio_limit".*'
|
regexp: '"seed_time_ratio_limit".*'
|
||||||
line: '"seed_time_ratio_limit": 1.0,'
|
line: '"seed_time_ratio_limit": 1.0,'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: set outgoing_ports
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"outgoing_ports".*'
|
||||||
|
line: '"outgoing_ports": [{{intport5}}, {{intport5}}],'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set random_port
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"random_port".*'
|
||||||
|
line: '"random_port": false,'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set random_outgoing_ports
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"random_outgoing_ports".*'
|
||||||
|
line: '"random_outgoing_ports": false,'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set listen_random_port
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"listen_random_port".*'
|
||||||
|
line: '"listen_random_port": null,'
|
||||||
|
state: present
|
||||||
|
|
||||||
|
- name: set listen_ports
|
||||||
|
lineinfile:
|
||||||
|
path: '/opt/appdata/{{pgrole}}/core.conf'
|
||||||
|
regexp: '"listen_ports".*'
|
||||||
|
line: '"listen_ports": [{{intport4}},{{intport4}}],'
|
||||||
|
state: present
|
||||||
when: not confcheck.stat.exists
|
when: not confcheck.stat.exists
|
||||||
|
|
||||||
- name: Restart {{pgrole}}
|
- name: Restart {{pgrole}}
|
||||||
|
|||||||
Reference in New Issue
Block a user