Skip to content

Commit

Permalink
release 0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
killmenot committed Sep 25, 2018
1 parent cc2fc0d commit d7d28b8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# CHANGELOG

<a name="0.1.0"></a>
### 0.1.0 (2018-09-25)

* Initial release
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
# browl-plugin-nginx

[![Build Status](https://travis-ci.org/killmenot/browl-plugin-nginx.svg?branch=master)](https://travis-ci.org/killmenot/browl-plugin-nginx) [![Coverage Status](https://coveralls.io/repos/github/killmenot/browl-plugin-yaml/badge.svg?branch=master)](https://coveralls.io/github/killmenot/browl-plugin-nginx?branch=master) [![Dependency Status](https://david-dm.org/killmenot/browl-plugin-nginx.svg)](hhttps://david-dm.org/killmenot/browl-plugin-nginx) [![npm version](https://img.shields.io/npm/v/browl-plugin-nginx.svg)](https://www.npmjs.com/package/browl-plugin-nginx)
[![Build Status](https://travis-ci.org/killmenot/browl-plugin-nginx.svg?branch=master)](https://travis-ci.org/killmenot/browl-plugin-nginx) [![Coverage Status](https://coveralls.io/repos/github/killmenot/browl-nginx/badge.svg?branch=master)](https://coveralls.io/github/killmenot/browl-plugin-nginx?branch=master) [![Dependency Status](https://david-dm.org/killmenot/browl-plugin-nginx.svg)](https://david-dm.org/killmenot/browl-plugin-nginx) [![npm version](https://img.shields.io/npm/v/browl-plugin-nginx.svg)](https://www.npmjs.com/package/browl-plugin-nginx)

Browl plugin that create/delete nginx config file for the instance


## Configuration

### path
### template
Type: `string`
The absolute or relative path (relative to deployed instance directory) to configuration
*Default*: './config'
The absolute or relative path (relative to repo config) to nginx template
*Default*: './templates/nginx.tmpl'

### destination
Type: `string`
The absolute path where nginx congifuration should be created. By default the file is created in `rootConfig.nginx.conf_dir` directory with pattern `${repo}_${branch}.conf`


## getTemplateData

To pass custom data to nginx template strategy should implement `getTemplateData` method that returns object that will be used to bind to the template.


## Example

```ini
**rootConfig**
[nginx]
conf_dir = /etc/nginx/conf.d
```

**repoConfig**
```ini
[nginx]
template = /path/to/template
```

## License

The MIT License (MIT)

Copyright (c) Alexey Kucherenko

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
]
},
"dependencies": {
"browl-util": "killmenot/browl-util",
"browl-util": "^0.1.0",
"debug": "^4.0.1"
},
"devDependencies": {
"browl-null": "github:killmenot/browl-null",
"browl-null": "^0.1.0",
"chai": "^4.1.2",
"coveralls": "^3.0.2",
"eslint": "^4.9.0",
Expand Down

0 comments on commit d7d28b8

Please sign in to comment.