Skip to content

Commit

Permalink
Upate AriaNg
Browse files Browse the repository at this point in the history
  • Loading branch information
wy580477 committed Dec 2, 2022
1 parent 7e7f7df commit e26976c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN apk add --no-cache curl caddy jq runit tzdata fuse p7zip bash findutils \
&& pipx install --pip-args='--no-cache-dir' pyload-ng[plugins] \
&& pipx install --pip-args='--no-cache-dir' gallery-dl \
&& apk del .build-deps \
&& wget -O - https://github.com/mayswind/AriaNg/releases/download/1.2.5/AriaNg-1.2.5.zip | busybox unzip -qd /workdir/ariang - \
&& wget -O - https://github.com/mayswind/AriaNg/releases/download/1.3.2/AriaNg-1.3.2.zip | busybox unzip -qd /workdir/ariang - \
&& wget -O - https://github.com/rclone/rclone-webui-react/releases/download/v2.0.5/currentbuild.zip | busybox unzip -qd /workdir/rcloneweb - \
&& wget -O - https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip | busybox unzip -qd /workdir/homer - \
&& wget -O - https://github.com/WDaan/VueTorrent/releases/latest/download/vuetorrent.zip | busybox unzip -qd /workdir - \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.lite
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ENV STATE_DIR=/mnt/data/videos/.metube
RUN apk add --no-cache curl caddy jq runit tzdata fuse bash findutils \
&& python3 -m pip install --user --no-cache-dir pipx \
&& pipx install --pip-args='--no-cache-dir' gallery-dl \
&& wget -O - https://github.com/mayswind/AriaNg/releases/download/1.2.5/AriaNg-1.2.5.zip | busybox unzip -qd /workdir/ariang - \
&& wget -O - https://github.com/mayswind/AriaNg/releases/download/1.3.2/AriaNg-1.3.2.zip | busybox unzip -qd /workdir/ariang - \
&& wget -O - https://github.com/rclone/rclone-webui-react/releases/download/v2.0.5/currentbuild.zip | busybox unzip -qd /workdir/rcloneweb - \
&& wget -O - https://github.com/bastienwirtz/homer/releases/latest/download/homer.zip | busybox unzip -qd /workdir/homer - \
&& wget -O - https://github.com/WDaan/VueTorrent/releases/latest/download/vuetorrent.zip | busybox unzip -qd /workdir - \
Expand Down
4 changes: 2 additions & 2 deletions content/service/caddy/run
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh

# Configure AriaNG & Rclone WebUI
sed -i 's|6800|'"${CADDY_WEB_PORT}"'|g' /workdir/ariang/js/aria-ng-42c21d0551.min.js
sed -i 's|rpcInterface:"jsonrpc"|rpcInterface:"'"${GLOBAL_PORTAL_PATH/\//}"'/jsonrpc"|g' /workdir/ariang/js/aria-ng-42c21d0551.min.js
sed -i 's|6800|'"${CADDY_WEB_PORT}"'|g' /workdir/ariang/js/aria-ng-3fcc0271ed.min.js
sed -i 's|rpcInterface:"jsonrpc"|rpcInterface:"'"${GLOBAL_PORTAL_PATH/\//}"'/jsonrpc"|g' /workdir/ariang/js/aria-ng-3fcc0271ed.min.js
sed -i 's|ipAddress:a|ipAddress:`${window.location.protocol}//${window.location.hostname}:'"${CADDY_WEB_PORT}"''"${GLOBAL_PORTAL_PATH}"'/rclonerc`|g' /workdir/rcloneweb/build/static/js/3.90421092.chunk.js

# Configure homer
Expand Down

0 comments on commit e26976c

Please sign in to comment.