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
WORKDIR /httpsh
WORKDIR /app
COPY . .
EXPOSE 1337
VOLUME /httpsh/app
VOLUME /httpsh/config
VOLUME /httpsh/storage
VOLUME /httpsh/secret
VOLUME /app/app
VOLUME /app/config
VOLUME /app/storage
VOLUME /app/secret
CMD ["/httpsh/http.sh"]
CMD ["/app/http.sh"]

View file

@ -1,16 +1,15 @@
#!/usr/bin/env bash
# template.sh - basic templating engine
_tpl_newline=$'\01'
_tpl_ctrl=$'\02'
# nightmare fuel
# render(array, template_file, recurse)
function render() {
local _tpl_newline=$'\01'
local _tpl_ctrl=$'\02'
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
local template="$(tr -d "${_tpl_ctrl}" < "$2" | sed -E 's/\\/\\\\/g')"
local template="$(tr -d ${_tpl_ctrl} < "$2" | sed -E 's/\\/\\\\/g')"
fi
local buf=
local -n ref=$1

View file

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