You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,6 +40,7 @@ Nginx WAF - Advanced Nginx Management Platform offers full support for major ope
40
40
|**New Server (Production)**|`./scripts/deploy.sh`| Full installation of Nginx + ModSecurity + Backend + Frontend with systemd services |
41
41
|**Development/Testing**|`./scripts/quickstart.sh`| Quick run in dev mode (no Nginx installation, no root required) |
42
42
|**Upgrade New Version**|`./scripts/update.sh`| Full update to new version |
43
+
|**Migrate PostgreSQL → SQLite**|`./scripts/migrate-postgres-to-sqlite.sh`| Migrate existing PostgreSQL data to SQLite (see [Migration Guide](docs/MIGRATION_POSTGRES_TO_SQLITE.md)) |
43
44
44
45
| Use Case | Port | Description |
45
46
|----------|--------|-------------|
@@ -69,6 +70,32 @@ git pull
69
70
bash scripts/update.sh
70
71
```
71
72
73
+
### 🔄 Migrating from PostgreSQL to SQLite
74
+
75
+
If you have an existing installation using PostgreSQL and want to migrate to SQLite:
76
+
77
+
```bash
78
+
# Navigate to your nginx-love directory
79
+
cd nginx-love
80
+
81
+
# Run the migration script (requires root)
82
+
sudo bash scripts/migrate-postgres-to-sqlite.sh
83
+
```
84
+
85
+
**What the migration script does:**
86
+
- ✅ Exports all data from PostgreSQL (users, domains, SSL certificates, rules, etc.)
0 commit comments