Merge pull request 'testing' (#1) from testing into prod
Reviewed-on: #1
This commit is contained in:
commit
3a1a60c9ee
4 changed files with 169 additions and 0 deletions
95
files/core.conf
Normal file
95
files/core.conf
Normal file
|
@ -0,0 +1,95 @@
|
|||
{
|
||||
"file": 1,
|
||||
"format": 1
|
||||
}{
|
||||
"add_paused": false,
|
||||
"allow_remote": false,
|
||||
"auto_manage_prefer_seeds": false,
|
||||
"auto_managed": true,
|
||||
"cache_expiry": 60,
|
||||
"cache_size": 512,
|
||||
"copy_torrent_file": true,
|
||||
"daemon_port": 58846,
|
||||
"del_copy_torrent_file": false,
|
||||
"dht": true,
|
||||
"dont_count_slow_torrents": false,
|
||||
"download_location": "/mnt/deluge/dlownloading",
|
||||
"download_location_paths_list": [],
|
||||
"enabled_plugins": [],
|
||||
"enc_in_policy": 1,
|
||||
"enc_level": 2,
|
||||
"enc_out_policy": 1,
|
||||
"geoip_db_location": "/usr/share/GeoIP/GeoIP.dat",
|
||||
"ignore_limits_on_local_network": true,
|
||||
"info_sent": 0.0,
|
||||
"listen_interface": "",
|
||||
"listen_ports": [
|
||||
6881,
|
||||
6891
|
||||
],
|
||||
"listen_random_port": null,
|
||||
"listen_reuse_port": true,
|
||||
"listen_use_sys_port": false,
|
||||
"lsd": true,
|
||||
"max_active_downloading": 5,
|
||||
"max_active_limit": 250,
|
||||
"max_active_seeding": 250,
|
||||
"max_connections_global": 200,
|
||||
"max_connections_per_second": 20,
|
||||
"max_connections_per_torrent": -1,
|
||||
"max_download_speed": -1.0,
|
||||
"max_download_speed_per_torrent": -1,
|
||||
"max_half_open_connections": 50,
|
||||
"max_upload_slots_global": 4,
|
||||
"max_upload_slots_per_torrent": -1,
|
||||
"max_upload_speed": -1.0,
|
||||
"max_upload_speed_per_torrent": -1,
|
||||
"move_completed": true,
|
||||
"move_completed_path": "/mnt/deluge/seeding",
|
||||
"move_completed_paths_list": [],
|
||||
"natpmp": true,
|
||||
"new_release_check": true,
|
||||
"outgoing_interface": "",
|
||||
"outgoing_ports": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"path_chooser_accelerator_string": "Tab",
|
||||
"path_chooser_auto_complete_enabled": true,
|
||||
"path_chooser_max_popup_rows": 20,
|
||||
"path_chooser_show_chooser_button_on_localhost": true,
|
||||
"path_chooser_show_hidden_files": false,
|
||||
"peer_tos": "0x00",
|
||||
"plugins_location": "/srv/deluge/.config/deluge/plugins",
|
||||
"pre_allocate_storage": false,
|
||||
"prioritize_first_last_pieces": false,
|
||||
"proxy": {
|
||||
"anonymous_mode": false,
|
||||
"force_proxy": false,
|
||||
"hostname": "",
|
||||
"password": "",
|
||||
"port": 8080,
|
||||
"proxy_hostnames": true,
|
||||
"proxy_peer_connections": true,
|
||||
"proxy_tracker_connections": true,
|
||||
"type": 0,
|
||||
"username": ""
|
||||
},
|
||||
"queue_new_to_top": false,
|
||||
"random_outgoing_ports": true,
|
||||
"random_port": false,
|
||||
"rate_limit_ip_overhead": true,
|
||||
"remove_seed_at_ratio": false,
|
||||
"seed_time_limit": 180,
|
||||
"seed_time_ratio_limit": 7.0,
|
||||
"send_info": false,
|
||||
"sequential_download": false,
|
||||
"share_ratio_limit": 2.0,
|
||||
"shared": false,
|
||||
"stop_seed_at_ratio": false,
|
||||
"stop_seed_ratio": 2.0,
|
||||
"super_seeding": false,
|
||||
"torrentfiles_location": "/mnt/deluge/torrent_files",
|
||||
"upnp": true,
|
||||
"utpex": true
|
||||
}
|
30
files/web.conf
Normal file
30
files/web.conf
Normal file
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
"file": 2,
|
||||
"format": 1
|
||||
}{
|
||||
"base": "/",
|
||||
"cert": "ssl/daemon.cert",
|
||||
"default_daemon": "",
|
||||
"enabled_plugins": [],
|
||||
"first_login": false,
|
||||
"https": false,
|
||||
"interface": "0.0.0.0",
|
||||
"language": "",
|
||||
"pkey": "ssl/daemon.pkey",
|
||||
"port": 8112,
|
||||
"pwd_salt": "c26ab3bbd8b137f99cd83c2c1c0963bcc1a35cad",
|
||||
"pwd_sha1": "2ce1a410bcdcc53064129b6d950f2e9fee4edc1e",
|
||||
"session_timeout": 3600,
|
||||
"sessions": {
|
||||
"8e30a3af17558bd5874e8689380aa531cbb2b37170aa07af4121b61cec637385": {
|
||||
"expires": 1728365717.0,
|
||||
"level": 10,
|
||||
"login": "admin"
|
||||
}
|
||||
},
|
||||
"show_session_speed": false,
|
||||
"show_sidebar": true,
|
||||
"sidebar_multiple_filters": true,
|
||||
"sidebar_show_zero": false,
|
||||
"theme": "gray"
|
||||
}
|
|
@ -1,2 +1,13 @@
|
|||
---
|
||||
# handlers file for deluge
|
||||
- name: restart deluged
|
||||
service:
|
||||
name: deluged
|
||||
state: restarted
|
||||
listen: restart deluge
|
||||
|
||||
- name: restart deluge-web
|
||||
service:
|
||||
name: deluge-web
|
||||
state: restarted
|
||||
listen: restart deluge
|
||||
|
|
|
@ -4,3 +4,36 @@
|
|||
ansible.builtin.package:
|
||||
name: deluge
|
||||
state: present
|
||||
|
||||
- name: create deluge directories
|
||||
ansible.builtin.file:
|
||||
path: "{{ item }}"
|
||||
state: directory
|
||||
owner: deluge
|
||||
group: deluge
|
||||
with_items:
|
||||
- /srv/deluge
|
||||
- /srv/deluge/.config
|
||||
- /srv/deluge/.config/deluge/
|
||||
|
||||
- name: deploy deluge config
|
||||
ansible.builtin.copy:
|
||||
src: "files/{{ item }}"
|
||||
dest: "/srv/deluge/.config/deluge/{{ item }}"
|
||||
notify: restart deluge
|
||||
with_items:
|
||||
- core.conf
|
||||
- web.conf
|
||||
|
||||
- name: ensure deluged is running
|
||||
service:
|
||||
name: deluged
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
- name: ensure deluge-web is running
|
||||
service:
|
||||
name: deluge-web
|
||||
state: started
|
||||
enabled: yes
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue