-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
27 lines (20 loc) · 1000 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
this is for auto generate nginx module template
use:
[diaoliang@T-diaoliang ngx_scaffold]$ ./ngx_scaffold.py -h
usage: ngx_scaffold.py [-h] --module_type MODULE_TYPE --module_name
MODULE_NAME [--module_path MODULE_PATH]
[--module_conf MODULE_CONF]
Nginx module scaffold.
optional arguments:
-h, --help show this help message and exit
--module_type MODULE_TYPE, -mt MODULE_TYPE
module type (filter[f]/content_handler[c]/upstream[u])
--module_name MODULE_NAME, -mn MODULE_NAME
module name
--module_path MODULE_PATH, -mp MODULE_PATH
module_path
--module_conf MODULE_CONF, -mc MODULE_CONF
module_conf(pre/post/main/srv/loc/all)
example:
./ngx_scaffold.py --module_type=upstream --module_name=test --module_conf="pre|loc"
this will generate upstream module template(module name is test, module conf include pre and loc) in current dir