Skip to content

Commit 2fbc597

Browse files
committed
VERSION='2.7.0' - Fixing issues from the last release (2.6.0)!
The code has undergone significant modifications. Need to check if everything is good before adding the new feature!
1 parent d8fc179 commit 2fbc597

File tree

2 files changed

+2541
-1314
lines changed

2 files changed

+2541
-1314
lines changed

README.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,45 @@ BASE_DIR="/path/nginx_proxy_script/data"
236236
🔖 Full options:
237237
./nginx_proxy_manager_cli.sh -d example.com -i 192.168.1.10 -p 8080 -f https -c true -b true -w true -a 'proxy_set_header X-Real-IP $remote_addr;' -l '[{"path":"/api","forward_host":"192.168.1.11","forward_port":8081}]'
238238
```
239-
239+
240+
### backup
241+
242+
```bash
243+
./nginx_proxy_manager_cli.sh --backup
244+
```
245+
246+
247+
### Schema of the backup directory:
248+
```
249+
📁 data/ # Root directory
250+
├── 📁 backups/ # Backup directories
251+
│ └── 📁 [IP]_[PORT]/ # NPM Instance (IP:PORT)
252+
│ ├── 📁 .access_lists/ # Access Lists configurations
253+
│ ├── 📁 .proxy_configs/ # Proxy configurations
254+
│ │ └── 📁 proxy_[ID]_[DOMAIN]/ # Directory for each proxy
255+
│ │ ├── 📄 proxy_config.json # Proxy configuration
256+
│ │ ├── 📄 nginx.conf # Nginx configuration
257+
│ │ ├── 📄 access.log # Access logs
258+
│ │ ├── 📄 error.log # Error logs
259+
│ │ ├── 📄 ssl_certificate.json # SSL certificate data
260+
│ │ ├── 📄 certificate.pem # Certificate
261+
│ │ ├── 📄 private.key # Private key
262+
│ │ └── 📄 chain.pem # Chain of certificates
263+
│ ├── 📁 .Proxy_Hosts/ # Host configurations
264+
│ │ ├── 📄 all_hosts_[DATE].json # List of all hosts
265+
│ │ └── 📄 all_hosts_latest.json # Symlink to latest backup
266+
│ ├── 📁 .settings/ # NPM settings
267+
│ ├── 📁 .ssl/ # SSL certificates
268+
│ ├── 📁 .user/ # User configurations
269+
│ ├── 📄 full_config_[DATE].json # Full backup
270+
│ └── 🔗 full_config_latest.json # Symlink to latest backup
271+
272+
└── 📁 token/ # Token directory
273+
├── 📄 token_[IP]_[PORT].txt # Authentication token
274+
└── 📄 expiry_[IP]_[PORT].txt # Token expiry date
275+
276+
```
277+
240278
#### update
241279
##### update specific fields of an existing proxy host
242280

0 commit comments

Comments
 (0)