This commit is contained in:
Mateusz Gruszczyński committed 2026-10-07 22:22:54 +02:00
1 parent e84df445c6
commit e87a382a7e
109 files changed
+1092 -2925

No files matched your search

+6 -6
View File
@@ -1,6 +1,6 @@
# Nginx Proxy Manager migration
RustProxy ships `scripts/migrate_npm.py` for a one-time, dry-run-first migration of
RustProxy ships `scripts/migration/migrate_npm.py` for a one-time, dry-run-first migration of
Nginx Proxy Manager (NPM) proxy hosts from its SQLite database.
The tool reads NPM only. It does not modify the NPM database and it never imports
@@ -9,7 +9,7 @@ reads the current revision, merges generated vhosts into the existing configurat
and writes only when `--apply` is supplied.
`migrate_npm.py` is the CLI entry point and requires the sibling modules
`scripts/migrate_npm_core.py` and `scripts/migrate_npm_api.py`. They use only the
`scripts/migration/migrate_npm_core.py` and `scripts/migration/migrate_npm_api.py`. They use only the
Python standard library, so no `pip` packages are required. If the migrator is copied
or mounted outside the RustProxy source tree, keep all three files in the same directory.
@@ -58,7 +58,7 @@ Set the password in the environment or omit it and use the interactive prompt:
export RUSTPROXY_USERNAME=admin
export RUSTPROXY_PASSWORD='...'
python3 scripts/migrate_npm.py \
python3 scripts/migration/migrate_npm.py \
--database /path/to/npm/data/database.sqlite \
--rustproxy https://rustproxy.example.net:9090
```
@@ -89,7 +89,7 @@ same Force SSL policy to every imported host. Select explicit listener IDs when
After reviewing `npm-migration-plan.json`:
```bash
python3 scripts/migrate_npm.py \
python3 scripts/migration/migrate_npm.py \
--database /path/to/npm/data/database.sqlite \
--rustproxy https://rustproxy.example.net:9090 \
--apply
@@ -109,9 +109,9 @@ RustProxy directory:
docker run --rm -it \
--network host \
-v /path/to/npm/data:/npm:ro \
-v "$PWD/scripts:/rustproxy-scripts:ro" \
-v "$PWD/scripts/migration:/rustproxy-migration:ro" \
python:3.13-alpine \
python /rustproxy-scripts/migrate_npm.py \
python /rustproxy-migration/migrate_npm.py \
--database /npm/database.sqlite \
--rustproxy https://127.0.0.1:9090 \
--insecure-admin-tls