https://github.com/opennti/nti.recipes.haproxy
https://github.com/opennti/nti.recipes.haproxy
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/opennti/nti.recipes.haproxy
- Owner: OpenNTI
- License: other
- Created: 2021-08-30T19:31:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-24T18:05:14.000Z (about 3 years ago)
- Last Synced: 2025-03-11T02:51:37.477Z (about 1 year ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
- Authors: AUTHORS
Awesome Lists containing this project
README
====================
nti.recipes.haproxy
====================
.. image:: https://travis-ci.org/NextThought/nti.recipes.json.svg?branch=master
:target: https://travis-ci.org/NextThought/nti.recipes.json
.. image:: https://coveralls.io/repos/github/NextThought/nti.recipes.json/badge.svg?branch=master
:target: https://coveralls.io/github/NextThought/nti.recipes.json?branch=master
This is a ``zc.buildout`` recipe that programatically creates JSON files
Lets look at an example using a buildout part::
[nodeserver-env]
recipe = nti.recipes.json
output-file = /home/user/etc/nodeserver-env.json
contents-section = nodeserver-env-root
[nodeserver-env-root]
stripe-section = nodeserver-stripe
jquery-payment-section = nodeserver-jquery.payment
[nodeserver-jquery.payment]
requires =
jquery
stripe
**end-list**
url = https://my.server.com/libs/jquery.payment/1.3.2/jquery.payment.min.js
definesSymbol = jQuery.payment
[nodeserver-stripe]
url = https://js.stripe.com/v2/
definesSymbol = Stripe
The output for /home/user/etc/nodeserver-env.json will be::
{
"jquery-payment": {
"definesSymbol": "jQuery.payment",
"requires": [
"jquery",
"stripe"
],
"url": "https://my.server.com/libs/jquery.payment/1.3.2/jquery.payment.min.js"
},
"stripe": {
"definesSymbol": "Stripe",
"url": "https://js.stripe.com/v2/"
}
}