Setup aria2 in docker

This commit is contained in:
2023-09-15 23:59:56 +02:00
parent af83f72dac
commit 631abcb5d2
6 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
root = true
[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = tab
indent_size = tab
[{*.yaml,*.yml, .nix}]
indent_style = space
indent_size = 2

8
.env.example Normal file
View File

@@ -0,0 +1,8 @@
# IMPORTANT: Change that to actually secure your aria2 connection
RPC_SECRET=wertyui
# User/Group IDs of newly downloaded files. To know your ids, run the `id` command.
PUID=$UID
PGID=$GID
# vi: ft=sh

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.env

View File

@@ -10,3 +10,14 @@ services:
restart: on-failure
volumes:
- ./api:/app
env_file:
- .env
aria2:
image: p3terx/aria2-pro
ports:
- "6888:6888"
- "6888:6888/udp"
restart: on-failure
env_file:
- .env

View File

@@ -4,3 +4,14 @@ services:
api:
build: ./api
restart: on-failure
env_file:
- .env
aria2:
image: p3terx/aria2-pro
ports:
- "6888:6888"
- "6888:6888/udp"
restart: on-failure
env_file:
- .env

View File

@@ -2,5 +2,6 @@
pkgs.mkShell {
packages = with pkgs; [
go
aria
];
}