diff --git a/.editorconfig b/.editorconfig index e69de29..c0896ac 100644 --- a/.editorconfig +++ b/.editorconfig @@ -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 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..67772a4 --- /dev/null +++ b/.env.example @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 7bac2c4..319640e 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index e180af6..61771f2 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/shell.nix b/shell.nix index b0c9acf..d83b1c2 100644 --- a/shell.nix +++ b/shell.nix @@ -2,5 +2,6 @@ pkgs.mkShell { packages = with pkgs; [ go + aria ]; }