v0.42.0
This commit is contained in:
1 parent
6df256cdbb
commit
0d6249e383
159 files changed
+16737
-1971
No files matched your search
@@ -37,17 +37,13 @@ RustProxy ${RUSTPROXY_VERSION}
|
||||
Deploy an externally issued pair to an existing manual certificate id
|
||||
./dev.sh tls reload Re-read and hot-apply configured certificate files without changing config revision
|
||||
./dev.sh config reload Revalidate the current runtime configuration
|
||||
./dev.sh repair Preserve known legacy files; no compilation required
|
||||
./dev.sh doctor Check source layout and show available build tools
|
||||
./dev.sh doctor Check core source files and show available build tools
|
||||
./dev.sh token Compatibility alias for admin setup-token
|
||||
./dev.sh config get Export the running desired config as JSON
|
||||
./dev.sh config apply FILE Validate, persist and hot-apply a JSON document
|
||||
./dev.sh config validate FILE
|
||||
Validate only; works without a running server
|
||||
./dev.sh backup DIRECTORY Back up SQLite and configured certificates using Python 3
|
||||
./dev.sh mock [--port 9001] Start a random-data HTTP origin (Python only; Ctrl+C to stop)
|
||||
./dev.sh mock-auth [--port 9300]
|
||||
Start a LOOPBACK-ONLY fake Tinyauth peer (never production)
|
||||
./dev.sh acme --doctor Check local Certbot availability without network access
|
||||
./dev.sh acme --cert-dir DIR Read provider request JSON from stdin; stage PEM files
|
||||
./dev.sh test Check all Rust targets and run Rust tests
|
||||
@@ -63,20 +59,20 @@ Set RUST_PROXY_DEMO=1 to explicitly start a diagnostic origin and seed a NEW dat
|
||||
Configuration options: .env.example, README.md, docs/API.md, ./dev.sh run --help.
|
||||
HELP
|
||||
exit 0 ;;
|
||||
run|admin|token|config|tls|repair|doctor|backup|test|build|release|fmt|check|mock|mock-auth|acme) ;;
|
||||
run|admin|token|config|tls|doctor|backup|test|build|release|fmt|check|acme) ;;
|
||||
*) printf 'Unknown command: %s. Use ./dev.sh help\n' "$mode" >&2; exit 2 ;;
|
||||
esac
|
||||
if [[ "$mode" == "backup" ]]; then
|
||||
exec python3 tools/legacy/backup.py --data-dir "${RUST_PROXY_DATA_DIR:-$ROOT/data}" "$@"
|
||||
fi
|
||||
if ! command -v python3 >/dev/null 2>&1; then
|
||||
printf 'Python 3.10+ is required for source preflight and upgrade safety checks.\n' >&2
|
||||
printf 'Python 3.10+ is required for build assets.\n' >&2
|
||||
exit 127
|
||||
fi
|
||||
python3 -c 'import sys; sys.exit(0 if sys.version_info >= (3, 10) else "Python 3.10+ is required.")'
|
||||
if [[ "$mode" == "doctor" ]]; then
|
||||
python3 scripts/preflight.py
|
||||
printf 'Source layout: OK\n'
|
||||
printf 'Core source files: OK\n'
|
||||
for tool in cargo rustc cc python3; do
|
||||
printf '%s: ' "$tool"
|
||||
command -v "$tool" || printf 'NOT FOUND\n'
|
||||
@@ -84,10 +80,7 @@ if [[ "$mode" == "doctor" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
if [[ "$mode" == "acme" ]]; then exec python3 scripts/runtime/acme_provider.py "$@"; fi
|
||||
if [[ "$mode" == "mock-auth" ]]; then exec python3 tools/dev/mock_auth.py "$@"; fi
|
||||
if [[ "$mode" == "mock" ]]; then exec python3 tools/dev/mock_server.py "$@"; fi
|
||||
python3 scripts/preflight.py --repair-known
|
||||
if [[ "$mode" == "repair" ]]; then printf 'Source preflight: OK\n'; exit 0; fi
|
||||
python3 scripts/preflight.py
|
||||
if ! command -v cargo >/dev/null 2>&1; then
|
||||
cat >&2 <<'MISSING'
|
||||
Rust/Cargo is not installed or not in PATH.
|
||||
|
||||
Reference in new issue
Block a user