Skip to content

Commit 7375bfd

Browse files
authored
Update README.md
Add update-host list fields.
1 parent 4d865cc commit 7375bfd

File tree

1 file changed

+34
-9
lines changed

1 file changed

+34
-9
lines changed

README.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,9 @@ BASE_DIR="/path/nginx_proxy_script/data"
164164

165165
##### Verifying the Configuration
166166

167-
###### Info
168-
169167
Some info of settings in the script with `./nginx_proxy_manager_cli_.sh --info`
170168

171-
169+
##### info
172170
```bash
173171
./nginx_proxy_manager_cli_.sh --info
174172

@@ -186,7 +184,7 @@ Script Variables Information:
186184
```
187185

188186

189-
**How to activate SSL ?**
187+
##### **How to activate SSL ?**
190188

191189
By following these steps, you can enable SSL for your proxy host for the first time using Let's Encrypt.
192190

@@ -202,8 +200,8 @@ By following these steps, you can enable SSL for your proxy host for the first t
202200
3 tutu.fun enabled ✅
203201

204202

205-
##### SSL
206-
Enable SSL for the Host:
203+
204+
##### Enable SSL for the Host
207205

208206
Assuming the host ID is *1*, you would enable SSL for the host as follows:
209207

@@ -219,11 +217,38 @@ Enable SSL for the Host:
219217
2 titi.fun disable ✅
220218
3 tutu.fun enabled ✅
221219

222-
223-
Et Voilà.
220+
221+
##### update specific fields of an existing proxy host
224222

223+
The `--update-host` command allows you to **update specific fields** of an existing proxy host in Nginx Proxy Manager **without recreating it**.
225224

226-
**Other Exemple command:**
225+
Simply specify the **proxy host ID** and the **field you want to update**, like this:
226+
227+
```bash
228+
./nginx_proxy_manager_cli.sh --update-host 42 forward_host=new.backend.local
229+
```
230+
231+
| Field Name | Type | Description |
232+
|--------------------------|-----------|-----------------------------------------------------------------------------|
233+
| `domain_names` | `array` | List of domains handled by this proxy. |
234+
| `forward_host` | `string` | The destination (backend) hostname or IP. |
235+
| `forward_port` | `integer` | The destination port (e.g., `8000`, `443`). |
236+
| `forward_scheme` | `string` | The scheme: `http` or `https`. |
237+
| `enabled` | `boolean` | Whether the proxy is enabled (`true` or `false`). |
238+
| `ssl_forced` | `boolean` | Redirect all HTTP requests to HTTPS. |
239+
| `certificate_id` | `integer` | The ID of the SSL certificate to use. |
240+
| `meta.letsencrypt_agree` | `boolean` | Agree to Let's Encrypt TOS (`true` or `false`). |
241+
| `meta.dns_challenge` | `boolean` | Use DNS challenge for SSL cert (`true` or `false`). |
242+
| `allow_websocket_upgrade`| `boolean` | Enable WebSocket support (`true` or `false`). |
243+
| `http2_support` | `boolean` | Enable HTTP/2 (`true` or `false`). |
244+
| `caching_enabled` | `boolean` | Enable caching (`true` or `false`). |
245+
| `block_exploits` | `boolean` | Block known exploits (`true` or `false`). |
246+
| `advanced_config` | `string` | Custom Nginx directives (multiline string). |
247+
| `locations` | `array` | Custom location blocks (advanced use). |
248+
249+
250+
251+
##### **Other Exemple command:**
227252

228253

229254
Host proxy info command `--host-show id`

0 commit comments

Comments
 (0)