Add the yt-cipher service
This commit is contained in:
@@ -0,0 +1 @@
|
||||
base
|
||||
15
config/root/etc/s6-overlay/s6-rc.d/yt-cipher/run
Executable file
15
config/root/etc/s6-overlay/s6-rc.d/yt-cipher/run
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
set -e
|
||||
cd /app/yt-cipher
|
||||
chown -R root:app .
|
||||
|
||||
command -v deno >/dev/null || \
|
||||
/app/install_deno.sh
|
||||
|
||||
HOST=127.0.0.1
|
||||
PORT=8011
|
||||
export HOST PORT
|
||||
|
||||
exec s6-setuidgid app \
|
||||
deno run --allow-env --allow-net --allow-read --allow-write server.ts
|
||||
1
config/root/etc/s6-overlay/s6-rc.d/yt-cipher/type
Normal file
1
config/root/etc/s6-overlay/s6-rc.d/yt-cipher/type
Normal file
@@ -0,0 +1 @@
|
||||
longrun
|
||||
Reference in New Issue
Block a user