Skip to content

monadbobo/ngx_scaffold

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

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

About

generate nginx module template

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages