aethernal-agent 0.4.2 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6e35a58db28ece4a11621fb3e4ad4b75a0d23879d589e4b8a8203a353f14f491
4
- data.tar.gz: 2b01f0a0d161ab5ebcb55d26f251ce13ba20557e8b7eedb45c45f5b4c91a1633
3
+ metadata.gz: 7512f727dc2bc11ac4ccc0b99d54d2c2d4be4b2272cdaffe14531e4c38f07a67
4
+ data.tar.gz: 703a042fd9f900995764274e2f12341d8db2a727c33c320fab32e0b2d3e2359b
5
5
  SHA512:
6
- metadata.gz: '0594005e2d34724bb37ee4bfcb03cf3c49ada03d4909aa403305ac60f8129ed4194f0b5f7b4c0cfc18afc59a9e47d79e100b434e921539337735e9487557e066'
7
- data.tar.gz: b5b3adc1f2cac8ba656b4f73fe2fc727c754eeb5296211434e59f034b89ab8e9398d5e2dd0a1a698ef87f4b7fdeded7bf6430401ceff9c801d9842320151bc2e
6
+ metadata.gz: 9f2ae9c5bad3a3ce7250e0c15f75e654d65c4759541f882c20efb900f0de3b24d5364db4c978cced3ea698c534d08dd07987899c322c14ac963c591969f8d536
7
+ data.tar.gz: 553eea6341338f48c6552698ebe989fcc4e9a9f29ade58b3591618bb25ded13d7231c82a75475665c8b2dd8ca6dc8fe524acb4bbede3ce05b287eb8f166c4b75
data/Gemfile.lock CHANGED
@@ -1,10 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aethernal-agent (0.4.2)
5
- activesupport
4
+ aethernal-agent (0.4.3)
5
+ activesupport (~> 6.0.3.4)
6
6
  bcrypt
7
7
  docker-api (~> 1.34.2)
8
+ ruby2_keywords (= 0.0.2)
8
9
  sinatra (~> 2.0.7)
9
10
  sinatra-contrib
10
11
  sqlite3
@@ -20,7 +21,7 @@ GEM
20
21
  minitest (~> 5.1)
21
22
  tzinfo (~> 1.1)
22
23
  zeitwerk (~> 2.2, >= 2.2.2)
23
- backports (3.18.2)
24
+ backports (3.20.1)
24
25
  bcrypt (3.1.16)
25
26
  coderay (1.1.3)
26
27
  concurrent-ruby (1.1.7)
@@ -28,11 +29,11 @@ GEM
28
29
  docker-api (1.34.2)
29
30
  excon (>= 0.47.0)
30
31
  multi_json
31
- excon (0.78.0)
32
- i18n (1.8.5)
32
+ excon (0.78.1)
33
+ i18n (1.8.7)
33
34
  concurrent-ruby (~> 1.0)
34
35
  method_source (1.0.0)
35
- minitest (5.14.2)
36
+ minitest (5.14.3)
36
37
  multi_json (1.15.0)
37
38
  mustermann (1.1.1)
38
39
  ruby2_keywords (~> 0.0.1)
@@ -93,7 +94,7 @@ GEM
93
94
  thor (1.0.1)
94
95
  thread_safe (0.3.6)
95
96
  tilt (2.0.10)
96
- tzinfo (1.2.8)
97
+ tzinfo (1.2.9)
97
98
  thread_safe (~> 0.1)
98
99
  unicode-display_width (1.7.0)
99
100
  zeitwerk (2.4.2)
@@ -109,4 +110,4 @@ DEPENDENCIES
109
110
  serverspec
110
111
 
111
112
  BUNDLED WITH
112
- 2.1.4
113
+ 2.2.5
@@ -38,6 +38,7 @@ Gem::Specification.new do |spec|
38
38
  spec.add_development_dependency "serverspec"
39
39
  spec.add_development_dependency "pry"
40
40
  spec.add_dependency "activesupport" # We leave this loose to not interfere with Rails projects
41
+ spec.add_dependency "ruby2_keywords", "0.0.2" # We leave this loose to not interfere with Rails projects
41
42
  spec.add_dependency "sinatra", "~> 2.0.7"
42
43
  spec.add_dependency "sinatra-contrib"
43
44
  spec.add_dependency "sqlite3"
data/bin/install-aa CHANGED
@@ -105,7 +105,8 @@ main() {
105
105
  echo "Docker not installed, doing that now"
106
106
  run curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
107
107
  add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
108
- run apt-get install -y docker-ce
108
+ # This will break when we support multiple Ubuntu versions
109
+ run apt-get install -y --allow-downgrades docker-ce=5:19.03.13~3-0~ubuntu-bionic containerd.io=1.3.9-1 docker-ce-cli=5:19.03.13~3-0~ubuntu-bionic
109
110
  fi
110
111
 
111
112
  if [[ "$1" = "from-ci" ]];then
@@ -373,5 +373,6 @@ module AethernalAgent
373
373
 
374
374
  return sha.hexdigest
375
375
  end
376
+
376
377
  end
377
378
  end
@@ -55,6 +55,11 @@ class AethernalAgent::Deluge < AethernalAgent::App
55
55
  deluge_config_path('hostlist.conf'),
56
56
  vars,
57
57
  {owner: vars[:user]})
58
+
59
+ write_template(template_path('ltconfig.conf.erb'),
60
+ deluge_config_path('ltconfig.conf'),
61
+ vars,
62
+ {owner: vars[:user]})
58
63
  end
59
64
  end
60
65
 
@@ -15,7 +15,7 @@
15
15
  "dont_count_slow_torrents": false,
16
16
  "download_location": "<%= @home %>/Downloads",
17
17
  "download_location_paths_list": [],
18
- "enabled_plugins": [],
18
+ "enabled_plugins": ["ltConfig"],
19
19
  "enc_in_policy": 1,
20
20
  "enc_level": 2,
21
21
  "enc_out_policy": 1,
@@ -0,0 +1,21 @@
1
+ {
2
+ "file": 1,
3
+ "format": 1
4
+ }{
5
+ "apply_on_start": true,
6
+ "settings": {
7
+ "allow_multiple_connections_per_ip": true,
8
+ "suggest_mode": 0,
9
+ "mixed_mode_algorithm": 0,
10
+ "low_prio_disk": false,
11
+ "alert_queue_size": 30000,
12
+ "max_queued_disk_bytes": 5242880,
13
+ "utp_dynamic_sock_buf": true,
14
+ "max_allowed_in_request_queue": 1000,
15
+ "file_pool_size": 100,
16
+ "inactivity_timeout": 20,
17
+ "max_failcount": 1,
18
+ "send_redundant_have": true,
19
+ "peer_timeout": 20
20
+ }
21
+ }
@@ -81,4 +81,4 @@ actions:
81
81
  estimated_size_mb: 80
82
82
  package:
83
83
  docker:
84
- image: "crazymax/rtorrent-rutorrent"
84
+ image: "crazymax/rtorrent-rutorrent:3.9-0.9.8-0.13.8"
@@ -1,3 +1,3 @@
1
1
  module AethernalAgent
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.7"
3
3
  end
@@ -49,6 +49,12 @@ module AethernalAgent
49
49
  end
50
50
  end
51
51
 
52
+ post "/refresh_apache_configuration" do
53
+ options = {custom_domains: params['custom_domains'], user: params['user']}
54
+ apache = AethernalAgent::Apache.new(options)
55
+ apache.ensure_base_config(options)
56
+ end
57
+
52
58
  post "/plugins/:app_name/:method_name/?:wait?" do
53
59
  app = params['app_name']
54
60
  method = params['method_name']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aethernal-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maran
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-12-11 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: ruby2_keywords
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '='
88
+ - !ruby/object:Gem::Version
89
+ version: 0.0.2
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '='
95
+ - !ruby/object:Gem::Version
96
+ version: 0.0.2
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: sinatra
85
99
  requirement: !ruby/object:Gem::Requirement
@@ -250,6 +264,7 @@ files:
250
264
  - lib/aethernal_agent/plugins/deluge/templates/deluge.apache.conf.erb
251
265
  - lib/aethernal_agent/plugins/deluge/templates/deluged.service.erb
252
266
  - lib/aethernal_agent/plugins/deluge/templates/hostlist.conf.erb
267
+ - lib/aethernal_agent/plugins/deluge/templates/ltconfig.conf.erb
253
268
  - lib/aethernal_agent/plugins/deluge/templates/web.conf.erb
254
269
  - lib/aethernal_agent/plugins/filebrowser/filebrowser.rb
255
270
  - lib/aethernal_agent/plugins/filebrowser/files/filebrowser.service
@@ -396,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
396
411
  - !ruby/object:Gem::Version
397
412
  version: '0'
398
413
  requirements: []
399
- rubygems_version: 3.0.3
414
+ rubygems_version: 3.2.5
400
415
  signing_key:
401
416
  specification_version: 4
402
417
  summary: Aethernal Agent for Aethernal.host.