* Add deploy hook for nginx proxy manager and npmplus
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
* rename to nginx-proxy-manager
use _post instead of raw curl
support both npmplus and nginx API
create certificate if it doesn't already exist
json_encode values
evaluate and report server return code
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
* - removed jq dependency, replaced with _egrep_o
- fix _secure_debug output for _npm_token
- remove newline from _npm_certname_json
- remove unused variables
- escape backslashes in passwords
- unset _H1 before returning
- tested on nginx proxy manager (image jc21/nginx-proxy-manager:latest)
- tested on NPMplus (image zoeyvid/npmplus:2026-07-24-r1)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
* add "requiresTotp" check for 2FA enablement (npmplus:develop branch)
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
* remove api/schema detection and infer API based on token location
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
* replaced `[[:space:]]`
evaluate `requires_2fa` and `requires_Totp` separately
unset `_H1` on additional return for failure
prefix `nl` `_boundary` `_payload`
add `_npm_payload_format` to strip backslashes, encode for JSON, and remove newlines
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
* remove backslash handling from _npm_payload_format
use _utc_date instead of date
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
---------
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Replaces cronie with supercronic to allow non-root users to have
cronjobs. Creates user/group acme:acme UID:1000/GID:1000 with
home directory pointing to LE_CONFIG_HOME (default: /acme.sh)
'crontab' is generated in LE_CONFIG_HOME which is used by
supercronic.
Note that `acme.sh --installcronjob` and `--uninstallcronjob`
when run as a non-root user will fail but neither of should be
used in `daemon` mode anyway.
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
kislyuk yq (used by Debian packages) does not accept `yq e` and
also returns strings with double quotes.
mikefarah's yq-go (used by Alpine) accepts `yq e` and `yq`.
replace `yq e` with `yq` and also use `-r` switch to remove double
quoting to ensure uniform return values from both yq versions.
Signed-off-by: invario <67800603+invario@users.noreply.github.com>
Deploy-hook to very simply copy files to set directories and then execute whatever reloadcmd
the admin needs afterwards. This can be useful for configurations where the "multideploy"
hook (in development) is used or when an admin wants ACME.SH to renew certs but needs to
manually configure deployment via an external script (e.g. The deploy-freenas script for TrueNAS Core/Scale
https://github.com/danb35/deploy-freenas/
Signed-off-by: invario <67800603+invario@users.noreply.github.com>