-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add two torrent folders and two media folders
- Loading branch information
Dmytro Galushko
committed
Jan 17, 2024
1 parent
29085ad
commit df025d6
Showing
23 changed files
with
103 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
RABBITMQ_DEFAULT_USER=rabbit_user | ||
RABBITMQ_DEFAULT_PASS=rabbit_pswrd | ||
RABBIT_PORT=5672 | ||
RABBIT_IP=<input> | ||
TORRENT_IP="[{\"ip\": \"<input>\",\"port\": \"9093\"}, {\"name\": \"hdd\",\"ip\": \"<input>\",\"port\": \"9092\"}]" | ||
|
||
BOT_TOKEN=<input> | ||
BOT_NAME=<input> | ||
BOT_TRUSTED_USERS=<input> | ||
|
||
LONG_PAUSE_MILIS=10000 | ||
MEDIUM_PAUSE_MILIS=5000 | ||
SMALL_PAUSE_MILIS=500 | ||
|
||
PING=/ping | ||
PONG=pong | ||
|
||
LOGS_LEVEL=info |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 19 additions & 19 deletions
38
config/examples/docker-compose/docker-compose-bot_debug.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
version: '3.7' | ||
|
||
x-common-variables: &common-variables | ||
extends: | ||
file: constants.yml | ||
service: common-variables | ||
services: | ||
torrent_debug: | ||
image: halushko/cinema-torrent:beta | ||
environment: *common-variables | ||
restart: always | ||
container_name: "torrent_debug" | ||
volumes: | ||
- ./workdir/config/transmission:/home/app/transmission_config | ||
- ./workdir/config/logs:/home/app/logs | ||
network_mode: host | ||
# torrent_debug: | ||
# image: halushko/cinema-torrent:beta | ||
# env_file: | ||
# - constants.env | ||
# restart: always | ||
# container_name: "torrent_debug" | ||
# volumes: | ||
# - ./workdir/config/transmission:/home/app/transmission_config | ||
# - ./workdir/config/logs:/home/app/logs | ||
# network_mode: host | ||
bot_debug: | ||
image: halushko/cinema-bot:beta | ||
environment: *common-variables | ||
env_file: | ||
- constants.env | ||
restart: always | ||
container_name: "bot_debug" | ||
volumes: | ||
- ./workdir/config/logs:/home/app/logs | ||
networks: | ||
at_private_network_debug: | ||
bot_network_debug: | ||
text_debug: | ||
image: halushko/cinema-text:beta | ||
environment: *common-variables | ||
env_file: | ||
- constants.env | ||
restart: always | ||
container_name: "text_debug" | ||
volumes: | ||
- ./workdir/config/logs:/home/app/logs | ||
networks: | ||
at_private_network_debug: | ||
bot_network_debug: | ||
file_debug: | ||
image: halushko/cinema-file:beta | ||
environment: *common-variables | ||
env_file: | ||
- constants.env | ||
restart: always | ||
container_name: "file_debug" | ||
volumes: | ||
- ./workdir/config/files_from_telegram:/home/torrent_files/ | ||
- ./workdir/config/logs:/home/app/logs | ||
networks: | ||
at_private_network_debug: | ||
bot_network_debug: | ||
networks: | ||
bot_network_debug: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...les/etc/systemd/services/bot_down.service → ...les/etc/systemd/services/bot-down.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...les/etc/systemd/services/bot_pull.service → ...les/etc/systemd/services/bot-pull.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,54 @@ | ||
#!/bin/bash | ||
|
||
systemctl stop bot.service | ||
systemctl stop bot_debug_down.service | ||
systemctl stop bot_down.service | ||
systemctl stop bot_pull.service | ||
systemctl stop media_server.service | ||
systemctl stop media_server_down.service | ||
systemctl stop media_server_pull.service | ||
systemctl stop message_broker.service | ||
systemctl stop message_broker_down.service | ||
systemctl stop message_broker_pull.service | ||
systemctl stop bot-debug-down.service | ||
systemctl stop bot-down.service | ||
systemctl stop bot-pull.service | ||
systemctl stop media-server.service | ||
systemctl stop media-server-down.service | ||
systemctl stop media-server-pull.service | ||
systemctl stop message-broker.service | ||
systemctl stop message-broker-down.service | ||
systemctl stop message-broker-pull.service | ||
systemctl stop torrent.service | ||
systemctl stop torrent_down.service | ||
systemctl stop torrent_pull.service | ||
systemctl stop torrent-down.service | ||
systemctl stop torrent-pull.service | ||
systemctl stop torrent-hdd.service | ||
systemctl stop torrent-hdd-down.service | ||
systemctl stop torrent-hdd-pull.service | ||
|
||
systemctl disable bot.service | ||
systemctl disable bot_debug_down.service | ||
systemctl disable bot_down.service | ||
systemctl disable bot_pull.service | ||
systemctl disable media_server.service | ||
systemctl disable media_server_down.service | ||
systemctl disable media_server_pull.service | ||
systemctl disable message_broker.service | ||
systemctl disable message_broker_down.service | ||
systemctl disable message_broker_pull.service | ||
systemctl disable bot-debug-down.service | ||
systemctl disable bot-down.service | ||
systemctl disable bot-pull.service | ||
systemctl disable media-server.service | ||
systemctl disable media-server-down.service | ||
systemctl disable media-server-pull.service | ||
systemctl disable message-broker.service | ||
systemctl disable message-broker-down.service | ||
systemctl disable message-broker-pull.service | ||
systemctl disable torrent.service | ||
systemctl disable torrent_down.service | ||
systemctl disable torrent_pull.service | ||
systemctl disable torrent-down.service | ||
systemctl disable torrent-pull.service | ||
systemctl disable torrent-hdd.service | ||
systemctl disable torrent-hdd-down.service | ||
systemctl disable torrent-hdd-pull.service | ||
|
||
cp -f *.service /etc/systemd/system | ||
|
||
systemctl enable bot.service | ||
systemctl enable bot_debug_down.service | ||
systemctl enable bot_down.service | ||
systemctl enable bot_pull.service | ||
systemctl enable media_server.service | ||
systemctl enable media_server_down.service | ||
systemctl enable media_server_pull.service | ||
systemctl enable message_broker.service | ||
systemctl enable message_broker_down.service | ||
systemctl enable message_broker_pull.service | ||
systemctl enable bot-debug-down.service | ||
systemctl enable bot-down.service | ||
systemctl enable bot-pull.service | ||
systemctl enable media-server.service | ||
systemctl enable media-server-down.service | ||
systemctl enable media-server-pull.service | ||
systemctl enable message-broker.service | ||
systemctl enable message-broker-down.service | ||
systemctl enable message-broker-pull.service | ||
systemctl enable torrent.service | ||
systemctl enable torrent_down.service | ||
systemctl enable torrent_pull.service | ||
systemctl enable torrent-down.service | ||
systemctl enable torrent-pull.service | ||
systemctl enable torrent-hdd.service | ||
systemctl enable torrent-hdd-down.service | ||
systemctl enable torrent-hdd-pull.service |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ystemd/services/media_server_pull.service → ...ystemd/services/media-server-pull.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...etc/systemd/services/media_server.service → ...etc/systemd/services/media-server.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...temd/services/message_broker_pull.service → ...temd/services/message-broker-pull.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...c/systemd/services/message_broker.service → ...c/systemd/services/message-broker.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...etc/systemd/services/torrent_pull.service → ...etc/systemd/services/torrent-pull.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.