Run the token web server with deno
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
upstream token_server {
|
||||
server 127.0.0.2:4416 down;
|
||||
server 127.0.0.1:4406 max_fails=0;
|
||||
}
|
||||
|
||||
server {
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
base
|
||||
tubesync-init
|
||||
28
config/root/etc/s6-overlay/s6-rc.d/bgutil-ytdlp-pot-provider-build/run
Executable file
28
config/root/etc/s6-overlay/s6-rc.d/bgutil-ytdlp-pot-provider-build/run
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
set -eu
|
||||
cd /app/bgutil-ytdlp-pot-provider/server
|
||||
|
||||
command -v deno >/dev/null || \
|
||||
/app/install_deno.sh
|
||||
|
||||
test '!' -d build || \
|
||||
test '!' -f build/main.js || \
|
||||
test '!' -d node_modules || \
|
||||
exit 0 # nothing needs to be built
|
||||
|
||||
command -v node > /dev/null || \
|
||||
install -v -t /usr/local/bin ../node
|
||||
|
||||
chown -R app:app .
|
||||
|
||||
s6-setuidgid app \
|
||||
env DENO_COMPAT=1 deno run -A npm:npm ci --no-fund
|
||||
|
||||
s6-setuidgid app \
|
||||
env DENO_COMPAT=1 deno run -A npm:npm audit fix
|
||||
|
||||
s6-setuidgid app \
|
||||
../node typescript:/tsc
|
||||
|
||||
chown -R root:app .
|
||||
@@ -0,0 +1 @@
|
||||
oneshot
|
||||
3
config/root/etc/s6-overlay/s6-rc.d/bgutil-ytdlp-pot-provider-build/up
Executable file
3
config/root/etc/s6-overlay/s6-rc.d/bgutil-ytdlp-pot-provider-build/up
Executable file
@@ -0,0 +1,3 @@
|
||||
#!/command/execlineb -P
|
||||
|
||||
/etc/s6-overlay/s6-rc.d/bgutil-ytdlp-pot-provider-build/run
|
||||
@@ -0,0 +1,2 @@
|
||||
base
|
||||
bgutil-ytdlp-pot-provider-build
|
||||
7
config/root/etc/s6-overlay/s6-rc.d/bgutil-ytdlp-pot-provider/run
Executable file
7
config/root/etc/s6-overlay/s6-rc.d/bgutil-ytdlp-pot-provider/run
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/command/with-contenv bash
|
||||
|
||||
set -e
|
||||
cd /app/bgutil-ytdlp-pot-provider
|
||||
|
||||
exec s6-setuidgid app \
|
||||
./node server/build/main.js -p 4406
|
||||
@@ -0,0 +1 @@
|
||||
longrun
|
||||
@@ -1 +1,2 @@
|
||||
tubesync-init
|
||||
base
|
||||
tubesync-init
|
||||
|
||||
0
config/root/etc/s6-overlay/s6-rc.d/huey-database/run
Normal file → Executable file
0
config/root/etc/s6-overlay/s6-rc.d/huey-database/run
Normal file → Executable file
0
config/root/etc/s6-overlay/s6-rc.d/huey-filesystem/run
Normal file → Executable file
0
config/root/etc/s6-overlay/s6-rc.d/huey-filesystem/run
Normal file → Executable file
0
config/root/etc/s6-overlay/s6-rc.d/huey-net-limited/run
Normal file → Executable file
0
config/root/etc/s6-overlay/s6-rc.d/huey-net-limited/run
Normal file → Executable file
0
config/root/etc/s6-overlay/s6-rc.d/huey-network/run
Normal file → Executable file
0
config/root/etc/s6-overlay/s6-rc.d/huey-network/run
Normal file → Executable file
@@ -1 +1,2 @@
|
||||
gunicorn
|
||||
base
|
||||
gunicorn
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
base
|
||||
Reference in New Issue
Block a user