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
- Host: GitHub
- URL: https://github.com/bilalalpaslan/otoconf
- Owner: BilalAlpaslan
- License: mit
- Created: 2022-09-05T10:02:02.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T05:04:59.000Z (almost 4 years ago)
- Last Synced: 2025-05-16T08:09:24.015Z (about 1 year ago)
- Topics: cli, nginx, nginx-configuration, python
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`