https://github.com/bird-house/birdhousebuilder.recipe.nginx
buildout recipe to install and configure nginx with anaconda
Science Score: 10.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
○codemeta.json file
-
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.1%) to scientific vocabulary
Keywords
buildout
nginx
python
recipe
Last synced: 6 months ago
·
JSON representation
Repository
buildout recipe to install and configure nginx with anaconda
Basic Info
- Host: GitHub
- Owner: bird-house
- License: other
- Language: Python
- Default Branch: master
- Size: 110 KB
Statistics
- Stars: 0
- Watchers: 9
- Forks: 2
- Open Issues: 5
- Releases: 0
Archived
Topics
buildout
nginx
python
recipe
Created over 11 years ago
· Last pushed about 5 years ago
Metadata Files
Readme
Changelog
License
README.rst
*****************************
birdhousebuilder.recipe.nginx
*****************************
.. image:: https://travis-ci.org/bird-house/birdhousebuilder.recipe.nginx.svg?branch=master
:target: https://travis-ci.org/bird-house/birdhousebuilder.recipe.nginx
:alt: Travis Build
Introduction
************
``birdhousebuilder.recipe.nginx`` is a `Buildout`_ recipe to install `Nginx`_ from an `Anaconda`_ channel and to deploy a site configuration for your application.
This recipe is used by the `Birdhouse`_ project.
.. _`Buildout`: http://buildout.org/
.. _`Anaconda`: http://continuum.io/
.. _`Nginx`: http://nginx.org/
.. _`Mako`: http://www.makotemplates.org
.. _`Birdhouse`: http://bird-house.github.io
Usage
*****
The recipe requires that Anaconda is already installed. You can use the buildout option ``anaconda-home`` to set the prefix for the anaconda installation. Otherwise the environment variable ``CONDA_PREFIX`` (variable is set when activating a conda environment) is used as conda prefix.
The recipe will install the ``nginx`` package from a conda channel in a conda enviroment defined by ``CONDA_PREFIX``. The intallation folder is given by the ``prefix`` buildout option. It deploys a Nginx site configuration for your application. The configuration will be deployed in ``${prefix}/etc/nginx/conf.d/myapp.conf``. Nginx can be started with ``${prefix}/etc/init.d/nginx start``.
The recipe depends on ``birdhousebuilder.recipe.conda`` and ``zc.recipe.deployment``.
Supported options
=================
This recipe supports the following options:
**anaconda-home**
Buildout option pointing to the root folder of the Anaconda installation. Default: ``$HOME/anaconda``.
Buildout part options for the program section:
**prefix**
Deployment option to set the prefix of the installation folder. Default: ``/``
**user**
Deployment option to set the run user.
**etc-user**
Deployment option to set the user of the ``/etc`` directory. Default: ``root``
**name**
The name of your application.
**input**
The path to a `Mako`_ template with a Nginx configuration for your application.
**worker-processes**
The number of worker processes started (use ``auto`` for dynamic value). Default: 1
**keepalive-timeout**
Timeout during keep-alive client connection will stay open on the server side. Default: 5s
**organization**
The organization name for the certificate. Default: ``Birdhouse``
**organization-unit**
The organization unit for the certificate. Default: ``Demo``
**ssl-verify-client**
Nginx option to verify SSL client certificates. Possible values: ``off`` (default), ``on``, ``optional``.
https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_verify_client
**ssl-client-certificate**
Nginx option with the name of the bundle of CA certificates for the client. Default: ``esgf-ca-bundle.crt``.
https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_client_certificate
**ssl-client-certificate-url**
Optional URL to download a bundle of CA certificates for ``ssl-client-certificate``. Default:
https://github.com/ESGF/esgf-dist/raw/master/installer/certs/esgf-ca-bundle.crt
All additional options can be used as parameters in your Nginx site configuration.
Example usage
=============
The following example ``buildout.cfg`` installs Nginx with a site configuration for ``myapp``::
[buildout]
parts = myapp_nginx
anaconda-home = /opt/anaconda
[myapp_nginx]
recipe = birdhousebuilder.recipe.nginx
name = myapp
prefix = /
user = www-data
input = ${buildout:directory}/templates/myapp_nginx.conf
hostname = localhost
port = 8081
An example Mako template for your Nginx configuration could look like this::
upstream myapp {
server unix:///tmp/myapp.socket fail_timeout=0;
}
server {
listen ${port};
server_name ${hostname};
root ${prefix}/var/www;
index index.html index.htm;
location / {
# checks for static file, if not found proxy to app
try_files $uri @proxy_to_phoenix;
}
location @proxy_to_phoenix {
proxy_pass http://myapp;
}
}
Owner
- Name: bird-house
- Login: bird-house
- Kind: organization
- Website: http://bird-house.github.io/
- Repositories: 63
- Profile: https://github.com/bird-house
Making Web Processing Services easy
GitHub Events
Total
- Member event: 2
Last Year
- Member event: 2
Committers
Last synced: about 2 years ago
Top Committers
| Name | Commits | |
|---|---|---|
| Carsten Ehbrecht | e****t@d****e | 140 |
| Carsten Ehbrecht | c****n@l****g | 2 |
| Ag Stephens | a****s@s****k | 1 |
| Florian Klemme | m****l@f****e | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 9
- Total pull requests: 5
- Average time to close issues: over 1 year
- Average time to close pull requests: about 4 hours
- Total issue authors: 2
- Total pull request authors: 3
- Average comments per issue: 1.0
- Average comments per pull request: 1.2
- Merged pull requests: 5
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- cehbrecht (8)
- fmigneault (1)
Pull Request Authors
- cehbrecht (3)
- agstephens (1)
- fklemme (1)
Top Labels
Issue Labels
enhancement (6)
bug (4)
help wanted (1)
duplicate (1)
Pull Request Labels
enhancement (2)
bug (1)
Packages
- Total packages: 1
-
Total downloads:
- pypi 119 last-month
- Total dependent packages: 0
- Total dependent repositories: 6
- Total versions: 24
- Total maintainers: 1
pypi.org: birdhousebuilder.recipe.nginx
A Buildout recipe to install and configure Nginx with conda.
- Homepage: https://github.com/bird-house/birdhousebuilder.recipe.nginx
- Documentation: https://birdhousebuilder.recipe.nginx.readthedocs.io/
- License: Apache License 2
-
Latest release: 0.4.2
published about 5 years ago
Rankings
Dependent repos count: 6.0%
Dependent packages count: 10.1%
Average: 18.9%
Forks count: 19.1%
Downloads: 20.3%
Stargazers count: 38.8%
Maintainers (1)
Last synced:
6 months ago