Compare commits

..

No commits in common. "9f123a6d66bc85a64b339d400718e9ddba5fe8f1" and "ede27f9905f7ce2c8075af522b1b01123ba14477" have entirely different histories.

3 changed files with 10 additions and 12 deletions

View file

@ -2,13 +2,13 @@ FROM alpine:3.21
RUN apk upgrade -U && apk add bash sed grep nmap-ncat socat file findutils jq curl argon2 RUN apk upgrade -U && apk add bash sed grep nmap-ncat socat file findutils jq curl argon2
WORKDIR /httpsh WORKDIR /app
COPY . . COPY . .
EXPOSE 1337 EXPOSE 1337
VOLUME /httpsh/app VOLUME /app/app
VOLUME /httpsh/config VOLUME /app/config
VOLUME /httpsh/storage VOLUME /app/storage
VOLUME /httpsh/secret VOLUME /app/secret
CMD ["/httpsh/http.sh"] CMD ["/app/http.sh"]

View file

@ -1,16 +1,15 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# template.sh - basic templating engine # template.sh - basic templating engine
_tpl_newline=$'\01'
_tpl_ctrl=$'\02'
# nightmare fuel # nightmare fuel
# render(array, template_file, recurse) # render(array, template_file, recurse)
function render() { function render() {
local _tpl_newline=$'\01'
local _tpl_ctrl=$'\02'
if [[ "$3" != true ]]; then if [[ "$3" != true ]]; then
local template="$(tr -d "${_tpl_newline}${_tpl_ctrl}" < "$2" | sed 's/\&/<2F>UwU<77>/g')" local template="$(tr -d ${_tpl_newline}${_tpl_ctrl} < "$2" | sed 's/\&/<2F>UwU<77>/g')"
else else
local template="$(tr -d "${_tpl_ctrl}" < "$2" | sed -E 's/\\/\\\\/g')" local template="$(tr -d ${_tpl_ctrl} < "$2" | sed -E 's/\\/\\\\/g')"
fi fi
local buf= local buf=
local -n ref=$1 local -n ref=$1

View file

@ -5,7 +5,6 @@
function worker_add() { function worker_add() {
if [[ -x "${cfg[namespace]}/workers/$1/worker.sh" ]]; then if [[ -x "${cfg[namespace]}/workers/$1/worker.sh" ]]; then
echo "[WRKR] adding worker $1" echo "[WRKR] adding worker $1"
touch "${cfg[namespace]}/workers/$1/control"
{ {
shopt -s extglob shopt -s extglob
x() { declare -p data;} # for notORM x() { declare -p data;} # for notORM