Skip to content

Commit c9a7d40

Browse files
authored
Merge pull request Cloudbox#230 from Cloudbox/develop
Develop
2 parents c040ecc + c1ca950 commit c9a7d40

File tree

145 files changed

+1801
-1646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+1801
-1646
lines changed

.gitignore

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,14 @@
66
/rclone.conf
77
/backup_config.yml
88
/backup_excludes_list.txt
9-
/backup.lock
10-
/cloudbox.retry
119
/*.log
1210

11+
# Ansible
12+
/backup.lock
13+
/cloudbox.retry
1314

1415
# MacOS
1516
.DS_Store
17+
18+
# Python
19+
*.pyc

CHANGELOG.md

Lines changed: 538 additions & 716 deletions
Large diffs are not rendered by default.

CONTRIBUTING.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## Contributing
22

33
1. Fork it.
4-
1. Clone your forked project: `git clone http://github.com/<your_name>/cloudbox`
5-
1. Create a feature branch off of the develop branch: `git checkout -b my-new-feature develop`
4+
1. Clone your forked project on your devbox: `git clone http://github.com/<your_name>/cloudbox`
5+
1. Create a feature branch off of the develop branch: `git checkout -b 'feature/my-new-feature' develop`
6+
1. Keep up to date with latest develop branch changes: `git pull --rebase upstream develop`. <--- Do this often, especially before commiting changes and submitting a PR.
67
1. Commit your changes: `git commit -am 'Added some feature'`
7-
1. Push to the branch: `git push origin my-new-feature`
8-
1. Submit a pull request to develop branch.
8+
1. Push to the branch: `git push origin feature/my-new-feature`
9+
1. Submit a pull request (PR) to the develop branch.

CREDITS.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,21 @@
33
### Developers
44

55
* [l3uddz](https://github.com/l3uddz) - Creator of Cloudbox, Plex Autoscan, Cloudplow, Traktarr, Plex Dupefinder, Plex Patrol, Arrpush, and others.
6-
* [Desimaniac](https://github.com/Desimaniac) - Cloudbox; Cloudbox Wiki; Documentation for Plex Autoscan, Cloudplow, and Traktarr.
6+
* [desimaniac](https://github.com/desimaniac) - Cloudbox; Cloudbox Wiki; Documentation for Plex Autoscan, Cloudplow, and Traktarr.
77

88
### Contributors
99

1010
* [EnorMOZ](https://github.com/EnorMOZ) - Cloudbox.
11-
* [Horjulf](https://github.com/horjulf) - ruTorrent + autodl Docker Image (creator); Plex Autoscan; Traktarr, Plex Patrol, Arrpush, and others.
12-
* [RXWatcher](https://github.com/RXWatcher1) - Cloudbox.
13-
* [Vuur](https://github.com/vuur) - Web Design; Admin of GitHub, Discord, and Reddit.
11+
* [horjulf](https://github.com/horjulf) - Forked version of LSIO ruTorrent Docker image with autodl-irssi (creator); Plex Autoscan; Traktarr, Plex Patrol, Arrpush, and others.
12+
* [RXWatcher1](https://github.com/RXWatcher1) - Cloudbox.
13+
* [Vuur](https://github.com/vuur) - Web Design.
1414
* [TheBradz](https://github.com/TheBradz) - Cloudbox; Cloudbox Wiki.
15-
* [Kasper56](https://github.com/After-Shock) - Cloudbox Wiki.
15+
* [Kasper56](https://github.com/After-Shock) - Cloudbox Wiki. Admin on Discord.
1616
* [Hotio](https://gitlab.com/hotio) - Suitarr Docker Image (creator).
1717
* [Mitchell Klijs](https://github.com/mitchellklijs) - Traktarr; Cloudplow.
18+
* [davemaster223](https://github.com/daghaian) - Traktarr; Cloudplow.
1819
* [MZA](https://github.com/mza921) - Plex Autoscan.
20+
* [andrewkhunn](https://github.com/andrewkhunn) - Forked version of Suitarr Docker image with Sickbeard MP4 Automator (creator).
1921

2022

2123
### Dependencies

README.md

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<br /><br />
44
[![Website](https://img.shields.io/badge/Website-https%3A%2F%2Fcloudbox.works-blue.svg?colorB=177DC1&label=Website)](https://cloudbox.works)
55
[![Wiki](https://img.shields.io/badge/Wiki-http%3A%2F%2Fcloudbox.wiki-blue.svg?colorB=177DC1&label=Wiki)](http://cloudbox.wiki)
6-
[![Reddit](https://img.shields.io/badge/Reddit-%2Fr%2Fcloudbox-blue.svg?colorB=177DC1&label=Reddit)](https://reddit.com/r/Cloudbox)
76
[![Discord](https://img.shields.io/discord/381077432285003776.svg?colorB=177DC1&label=Discord)](https://discord.io/cloudbox)
7+
[![Reddit](https://img.shields.io/badge/Reddit-%2Fr%2Fcloudbox-blue.svg?colorB=177DC1&label=Reddit)](https://reddit.com/r/Cloudbox)
88
[![Feature Requests](https://img.shields.io/badge/Requests-Feathub-blue.svg?colorB=177DC1&label=Requests)](https://feathub.com/Cloudbox/Cloudbox)
99
[![Beerpay](https://beerpay.io/Cloudbox/Cloudbox/badge.svg?style=flat)](https://beerpay.io/Cloudbox/Cloudbox)
1010
[![Beerpay](https://beerpay.io/Cloudbox/Cloudbox/make-wish.svg?style=flat)](https://beerpay.io/Cloudbox/Cloudbox)
@@ -50,29 +50,10 @@ Featured Applications:
5050

5151
***
5252

53-
If you find this project helpful, feel free to make a small donation to the developers:
54-
55-
56-
- [l3uddz](https://github.com/l3uddz) (creator)
57-
58-
- [Monzo](https://monzo.me/jamesbayliss9): Credit Card, Apple Pay, Google Pay
59-
60-
- [Beerpay](https://beerpay.io/Cloudbox/Cloudbox): Credit Card, BTC
61-
62-
- [Paypal: [email protected]](https://www.paypal.me/l3uddz)
63-
64-
- BTC: 3CiHME1HZQsNNcDL6BArG7PbZLa8zUUgjL
65-
66-
- [desimaniac](https://github.com/Desimaniac) (developer)
67-
68-
- [Square Cash](https://cash.me/$desimaniac): Credit Card
69-
70-
- [Beerpay](https://beerpay.io/Cloudbox/Cloudbox): Credit Card, BTC
71-
72-
- [Paypal: [email protected]](https://www.paypal.me/desimaniac123)
73-
74-
- BTC: 3Jz922kDLQwjnFh986igeEmc72c8Hh5T3Y
53+
If you find this project helpful, feel free to make a small donation to the developers.
7554

76-
- LTC: MD2gTjR3Mur2pHZxo1cku3i9U8SuDU8k2B
7755

78-
- ETH: 0xE50B388Aa66593153801e4ff99bA23737c888BF9
56+
| Developers | Roles | Donation Methods |
57+
|:---|:---|:---|
58+
| [l3uddz](https://github.com/l3uddz) | creator, developer | [Beerpay](https://beerpay.io/Cloudbox/Cloudbox), [Paypal ([email protected])](https://www.paypal.me/l3uddz), [Monzo](https://monzo.me/jamesbayliss9) (Apple Pay, Google Pay), [BTC](https://en.cryptobadges.io/donate/3CiHME1HZQsNNcDL6BArG7PbZLa8zUUgjL)
59+
| [desimaniac](https://github.com/desimaniac) | developer | [Beerpay](https://beerpay.io/Cloudbox/Cloudbox), [Paypal ([email protected])](https://www.paypal.me/desimaniac123), [Square Cash](https://cash.me/$desimaniac), [BTC](https://en.cryptobadges.io/donate/3Jz922kDLQwjnFh986igeEmc72c8Hh5T3Y), [ETH](https://en.cryptobadges.io/donate/0xE50B388Aa66593153801e4ff99bA23737c888BF9)|

appveyor.yml

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,45 @@ skip_tags: true
66
skip_commits:
77
files:
88
- '*.md'
9-
- '*.yml.default'
9+
- 'defaults/*'
1010
- 'roles/*/files/*'
1111
message: /\[minor\]/
1212

1313
image: ubuntu
1414

15-
environment:
16-
CLOUDBOX_FOLDER: "/home/appveyor/projects/cloudbox/"
15+
matrix:
16+
fast_finish: true
17+
18+
# to disable automatic builds
19+
build: off
1720

1821
init:
1922
- sh: curl -s https://cloudbox.works/dep.sh | sudo -H sh
2023

2124
install:
22-
- sh: cd ${CLOUDBOX_FOLDER}
23-
- sh: TAG_VERSION=$(curl --silent "https://api.github.com/repos/${APPVEYOR_REPO_NAME}/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 2-)
24-
- sh: BUILD_NUMBER=$(git rev-list $(git rev-list --tags --no-walk --max-count=1)..HEAD --count)
25-
- sh: appveyor UpdateBuild -Version "${TAG_VERSION}-${BUILD_NUMBER}"
2625
- sh: git submodule update --init --recursive
27-
- sh: cp -n defaults/ansible.cfg.default ansible.cfg; cp -n defaults/accounts.yml.default accounts.yml; cp -n defaults/settings.yml.default settings.yml; cp -n defaults/adv_settings.yml.default adv_settings.yml; cp -n defaults/backup_config.yml.default backup_config.yml
26+
- sh: for i in defaults/*; do cp -n $i "$(basename "${i%.*}")"; done
2827
- sh: sudo ansible-playbook cloudbox.yml --syntax-check
2928
- sh: sudo ansible-playbook cloudbox.yml --tags "cloudbox" --skip-tags "settings" --extra-vars '{"continuous_integration":true}'
3029

31-
matrix:
32-
fast_finish: true
30+
# https://boblokerse.github.io/2015/11/03/GitVersion-versioning-made-easy-and-dry/
31+
on_finish:
32+
- ps: |
33+
function gitVersion() {
34+
$env:newhash=git rev-parse HEAD
35+
$env:shorthash=git rev-parse --short HEAD
3336
34-
# to disable automatic builds
35-
build: off
37+
$env:gitCommits=git describe --tags $env:APPVEYOR_REPO_BRANCH | %{$_.split('-')[1]}
38+
$gitVersion=git describe --tags --abbrev=0 $env:APPVEYOR_REPO_BRANCH
39+
$env:newVersion="$gitVersion-$env:gitCommits"
40+
$env:appveyor_info_version="$env:newVersion-$env:APPVEYOR_REPO_BRANCH"
41+
42+
$env:appveyor_build_version="$env:newVersion"
43+
appveyor UpdateBuild -Version "$env:newVersion"
44+
45+
write-host "Using hash for build version: $env:newhash"
46+
write-host "Update appveyor build version to: $env:appveyor_build_version"
47+
write-host "Update appveyor info version to: $env:appveyor_info_version"
48+
}
49+
50+
gitVersion

cloudbox.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
- { role: sanity_check }
1010
- { role: settings, tags: ['always', 'settings'] }
1111
- { role: pre_tasks }
12-
- { role: kernel, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'kernel'] }
13-
- { role: pre_install, tags: ['core', 'cloudbox', 'mediabox', 'feederbox'] }
1412
- { role: backup, tags: ['backup'] }
1513
- { role: restore, tags: ['restore'] }
14+
- { role: user, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'user'] }
15+
- { role: shell, tags: ['core', 'cloudbox', 'mediabox', 'feederbox'], 'shell' }
16+
- { role: kernel, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'kernel'] }
17+
- { role: pre_install, tags: ['core', 'cloudbox', 'mediabox', 'feederbox'] }
1618
- { role: system, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'system'] }
17-
- { role: motd, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'motd'] }
1819
- { role: common, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'common'] }
20+
- { role: motd, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'motd'] }
1921
- { role: docker, tags: ['core', 'cloudbox', 'mediabox', 'feederbox', 'docker'] }
2022
- { role: plexdrive, tags: ['core', 'cloudbox', 'mediabox', 'feederbox'] }
2123
- { role: unionfs, tags: ['core', 'cloudbox', 'mediabox', 'feederbox'] }
@@ -29,20 +31,22 @@
2931
- { role: portainer, tags: ['cloudbox', 'feederbox', 'portainer'] }
3032
- { role: organizr, tags: ['cloudbox', 'feederbox', 'organizr'] }
3133
- { role: cloudplow, tags: ['cloudbox', 'feederbox', 'cloudplow'] }
32-
- { role: nzbget, tags: ['cloudbox', 'feederbox', 'nzbget'], when: [ 'nzbs' ] }
33-
- { role: rutorrent, tags: ['cloudbox', 'feederbox', 'rutorrent'], when: [ 'torrents' ] }
34-
- { role: jackett, tags: ['cloudbox', 'feederbox', 'jackett'], when: [ 'torrents' ] }
35-
- { role: nzbhydra2, tags: ['cloudbox', 'feederbox', 'nzbhydra2'] }
34+
- { role: nzbget, tags: ['cloudbox', 'feederbox', 'nzbget'], when: ['run_nzbs'] }
35+
- { role: rutorrent, tags: ['cloudbox', 'feederbox', 'rutorrent'], when: ['run_torrents'] }
36+
- { role: jackett, tags: ['cloudbox', 'feederbox', 'jackett'], when: ['run_torrents'] }
37+
- { role: nzbhydra2, tags: ['cloudbox', 'feederbox', 'nzbhydra2'], when: ['run_nzbs or run_torrents'] }
3638
- { role: sonarr, tags: ['cloudbox', 'feederbox', 'sonarr'] }
3739
- { role: radarr, tags: ['cloudbox', 'feederbox', 'radarr'] }
38-
- { role: sickbeard_mp4_automator, tags: ['cloudbox', 'feederbox', 'sickbeard_mp4_automator', 'sma'], when: ['sma_enabled'] }
3940
- { role: lidarr, tags: ['cloudbox', 'feederbox', 'lidarr'] }
41+
- { role: sickbeard_mp4_automator, tags: ['cloudbox', 'feederbox', 'sickbeard_mp4_automator', 'sma'], when: ['sma_enabled'] }
4042
- { role: feeder-mount, tags: ['feeder-mount'] }
4143
- { role: feeder-dismount, tags: ['feeder-dismount'] }
44+
- { role: plex_auth_token, tags: ['plex_auth_token'] }
4245
- { role: watchtower, tags: ['watchtower'] }
4346
- { role: plexrequests, tags: ['plexrequests'] }
4447
- { role: resilio-sync, tags: ['resilio-sync'] }
4548
- { role: nextcloud, tags: ['nextcloud'] }
49+
- { role: mariadb, tags: ['mariadb'] }
4650
- { role: emby, tags: ['emby'] }
4751
- { role: nzbhydra, tags: ['nzbhydra'] }
4852
- { role: traktarr, tags: ['traktarr'] }
@@ -62,3 +66,4 @@
6266
- { role: sabnzbd, tags: ['sabnzbd'] }
6367
- { role: nginx, tags: ['nginx'] }
6468
- { role: organizrv1, tags: ['organizrv1'] }
69+
- { role: nzbthrottle, tags: ['nzbthrottle'] }

defaults/adv_settings.yml.default

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
---
2-
install:
3-
auto_restart: yes
4-
kernel:
5-
version: default
62
plex:
73
open_port: no
84
force_auto_adjust_quality: no
95
force_high_output_bitrates: no
106
db_cache_size: default
117
suitarr:
128
version: default
9+
emby:
10+
version: latest
1311
organizr:
1412
direct_domain: no
1513
nginx:

defaults/backup_config.yml.default

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
local:
3-
keep_local_copy: true
4-
destination: /home/{{user}}/Backups/
3+
enable: yes
4+
destination: /home/{{user}}/Backups/Cloudbox
55
rclone:
6-
enabled: false
7-
destination: google:/Backups
6+
enable: yes
7+
destination: google:/Backups/Cloudbox
88
rsync:
9-
enabled: false
10-
dest: rsync://somehost.com/Backups
9+
enable: no
10+
dest: rsync://somehost.com/Backups/Cloudbox
1111
cron:
1212
cron_time: weekly
1313
cron_state: absent

defaults/settings.yml.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rutorrent:
88
downloads:
99
plex:
1010
tag: public
11-
transcodes: /home/{{user}}/transcodes
11+
transcodes: /mnt/local/transcodes
1212
rclone:
1313
version: latest
1414
shell: zsh

roles/backup/files/backup_excludes_list.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#########################################################################
22
# Title: Cloudbox: Backup Excludes List #
3-
# Author(s): Desimaniac #
3+
# Author(s): desimaniac #
44
# URL: https://github.com/Cloudbox/Cloudbox #
55
# -- #
66
# Part of the Cloudbox project: https://cloudbox.works #
@@ -14,7 +14,7 @@
1414
./cloudplow/cloudplow.log.*
1515
./cloudplow/locks/*
1616

17-
./lidarr/app/MediaCover/*
17+
./lidarr/app/logs/*
1818

1919
./plex/Library/Application Support/Plex Media Server/Cache/PhotoTranscoder/*
2020
./plex/Library/Application Support/Plex Media Server/Cache/Transcode/*
@@ -30,13 +30,9 @@
3030
./plexpy/logs/*
3131

3232
./radarr/app/logs/*
33-
./radarr/app/MediaCover/*
3433

3534
./radarr4k/app/logs/*
36-
./radarr4k/app/MediaCover/*
3735

3836
./sonarr/app/logs/*
39-
./sonarr/app/MediaCover/*
4037

4138
./sonarr4k/app/logs/*
42-
./sonarr4k/app/MediaCover/*

roles/backup/tasks/cron.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#########################################################################
22
# Title: Backup: Cron Tasks #
3-
# Author(s): Desimaniac #
3+
# Author(s): desimaniac #
44
# URL: https://github.com/cloudbox/cloudbox #
55
# -- #
66
# Part of the Cloudbox project: https://cloudbox.works #

0 commit comments

Comments
 (0)