feat: provide image with nginx

This commit is contained in:
Walid Mujahid
2024-10-21 02:05:45 -04:00
parent 1cd90e0e57
commit 81268162ee
12 changed files with 305 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/with-contenv /bin/bash
cd /srv/ledgersmb
# start ledgersmb
# --preload-app allows application initialization to kill the entire
# starman instance (instead of just the worker, which will immediately
# get restarted) on error; it also has a positive effect on memory use
LSMB_CONFIG_FILE=${LSMB_CONFIG_FILE:-./local/conf/ledgersmb.yaml}
export LSMB_CONFIG_FILE
echo '--------- LEDGERSMB CONFIGURATION: ledgersmb.conf'
cat ${LSMB_CONFIG_FILE}
echo '--------- LEDGERSMB CONFIGURATION --- END'
exec starman --listen 0.0.0.0:5762 --workers ${LSMB_WORKERS:-5} -I lib -I old/lib --preload-app bin/ledgersmb-server.psgi