Skip to content

Commit

Permalink
nginx: fix docs about nginx-proxy-gen (#617)
Browse files Browse the repository at this point in the history
The script was renamed.
  • Loading branch information
filippocarletti authored Jun 28, 2024
1 parent c4a3de9 commit 7dd5116
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The `location` object can contain any `nginx` directive, plus the following spec

If a directive can be used multiple times, it's represented as a UCI list.

The `nginx-proxy` utility reads all the location objects from UCI config and creates the nginx configuration
The `nginx-proxy-gen` utility reads all the location objects from UCI config and creates the nginx configuration
inside `/etc/nginx/conf.d/<server>.proxy` files, like `/etc/nginx/conf.d/_lan.proxy`.
Then, the generated files must be explicitly added to the `include` option of the server object.

Expand All @@ -48,7 +48,7 @@ config location 'ns_location1'

To enable the rule:
```
nginx-proxy
nginx-proxy-gen
uci add_list nginx._lan.include='conf.d/_lan.proxy'
uci commit nginx
/etc/init.d/nginx restart
Expand All @@ -67,7 +67,7 @@ config location 'ns_server2_location1'

To enable the rule:
```
nginx-proxy
nginx-proxy-gen
uci add_list nginx.ns_server2.include='conf.d/ns_server2.proxy'
uci commit nginx
/etc/init.d/nginx restart
Expand Down Expand Up @@ -102,6 +102,6 @@ config server 'ns_server1'

To enable the rule:
```
nginx-proxy
nginx-proxy-gen
/etc/init.d/nginx restart
```

0 comments on commit 7dd5116

Please sign in to comment.