An open API service indexing awesome lists of open source software.

https://github.com/bilalalpaslan/otoconf

proxy conf file compiler from microservice conf files
https://github.com/bilalalpaslan/otoconf

cli nginx nginx-configuration python

Last synced: about 1 month ago
JSON representation

proxy conf file compiler from microservice conf files

Awesome Lists containing this project

README

          

# generate configuration for proxy tools(just nginx for now)
```js
server {
listen 443 ssl;
server_name example.com;

ssl_certificate cert/fullchain.pem;
ssl_certificate_key cert/example.com.key;

@{% 'user/.conf' %}
@{% 'product/.conf' %}
@{% 'sms/.conf' %}
@{% 'mail/.conf' %}
location / {
proxy_pass http://frontend:3000;
}
}
```

## Installation

```bash
pip install otoconf
```

## Usage

```bash
python -m otoconf
```
or
```bash
python -m otoconf -t nginx --conf /path/to/nginx.conf --output /path/to/oto.conf
```

for more information, please run `python -m otoconf --help`