<commit_before>[buildout]

extends = versions.cfg

develop = .

# buildout options
show-picked-versions = true
newest = false
download-cache = downloads
log-level = INFO

## extensions

# use python site-packages
# https://pypi.python.org/pypi/buildout.locallib/ 
extensions = buildout.locallib

parts =
    conda
    phoenix
    phoenix_config
    gunicorn
    supervisor
    nginx
    celery

[settings]
prefix =  ${environment:HOME}/birdhouse
user = ${environment:USER}
etc-user = ${:user}
hostname = localhost
http-port = 8081
https-port = 8443
project = Phoenix
version = 0.5.0
phoenix-secret = f4e044d933767d6d0e022d1020508db3
phoenix-password = 
log-level = ${buildout:log-level}
supervisor-url = http://localhost:9001
mongodb-host = localhost
mongodb-port = 27027
phoenix-wms = false
wms-host = ${:hostname}
wms-port = 8080
wms-url = http://${:wms-host}:${:wms-port}/ncWMS2
phoenix-solr = false
solr-host = ${:hostname}
solr-port = 8983
solr-url = http://${:solr-host}:${:solr-port}/solr/birdhouse
phoenix-redis = false
redis-host = localhost
redis-port = 6379
redis-url = redis://${:redis-host}:${:redis-port}/0
phoenix-csw = false
csw-host = ${:hostname}
csw-port = 8082
csw-url = http://${:csw-host}:${:csw-port}/csw
phoenix-wizard = true
wps-host = ${:hostname}
wps-port = 8091
wps-url = http://${:wps-host}:${:wps-port}/wps
esgf-search-url = http://136.172.30.96/esg-search
swift-auth-url = http://localhost/auth/v1.0
swift-auth-version = 1
github-consumer-key = '#######'
github-consumer-secret = '######'
ceda-consumer-key = '#######'
ceda-consumer-secret = '######'
ceda-consumer-redirect-uri = https://${:hostname}/account/auth/ceda

[deployment]
recipe = zc.recipe.deployment
name = phoenix
prefix = ${settings:prefix}
user = ${settings:user}
etc-user = ${settings:etc-user}

[environment]
recipe = collective.recipe.environment

[conda]
recipe = birdhousebuilder.recipe.conda
channels = defaults birdhouse
pkgs = 
        celery=3.1.19
        kombu=3.0.32
        mongodb=2.4.6
        nginx=1.8.0
        supervisor=3.1.3
        gunicorn=19.1.0
        gevent=1.1.1
        lxml=3.6.0
        mako=1.0.4 
        dateutil=2.4.1 
        requests=2.10.0 
        pyyaml=3.11
        pygments=2.1.3 
        owslib=0.11.2
        pymongo=3
        pyopenssl
        pytz=2016.4
        python-swiftclient=2.4.0
        threddsclient=0.3.4       
        python-ldap=2.4.13
        funcsigs=1.0.2
        bird-feeder=0.2.0
        pywps=3.2.5
 
[phoenix]
recipe = zc.recipe.egg
eggs = 
    Phoenix
extra-paths = 
    ${deployment:etc-prefix}/celery
interpreter = python

[phoenix_config]
recipe = collective.recipe.template[genshi]:genshi
input = ${buildout:directory}/templates/phoenix.ini
output = ${deployment:etc-directory}/phoenix.ini

# generate secret
# python -c "import os; print(''.join('%02x' % ord(x) for x in os.urandom(16)))"
# gunicorn service
socket = ${deployment:var-prefix}/run/phoenix.socket
workers = 3
worker_class = gevent
timeout = 30
# upload storage
upload_dir = ${deployment:lib-directory}/uploads
max_file_size = 1024

[gunicorn]
recipe = zc.recipe.egg
eggs =
    gunicorn
    ${phoenix:eggs}
extra-paths = 
    ${deployment:etc-prefix}/celery
scripts =
    gunicorn=gunicorn

[supervisor]
recipe = birdhousebuilder.recipe.supervisor
name = phoenix
prefix = ${deployment:prefix}
user = ${deployment:user}
etc-user = ${deployment:etc-user}
program = ${:name}
command = ${buildout:bin-directory}/gunicorn --paste ${phoenix_config:output}

[mongodb]
recipe = birdhousebuilder.recipe.mongodb
name = mongodb
prefix = ${deployment:prefix}
user = ${deployment:user}
etc-user = ${deployment:etc-user}
port = ${settings:mongodb-port}

[nginx]<commit_msg>use mongodb<3<commit_after>[buildout]

extends = versions.cfg

develop = .

# buildout options
show-picked-versions = true
newest = false
download-cache = downloads
log-level = INFO

## extensions

# use python site-packages
# https://pypi.python.org/pypi/buildout.locallib/ 
extensions = buildout.locallib

parts =
    conda
    phoenix
    phoenix_config
    gunicorn
    supervisor
    nginx
    celery

[settings]
prefix =  ${environment:HOME}/birdhouse
user = ${environment:USER}
etc-user = ${:user}
hostname = localhost
http-port = 8081
https-port = 8443
project = Phoenix
version = 0.5.0
phoenix-secret = f4e044d933767d6d0e022d1020508db3
phoenix-password = 
log-level = ${buildout:log-level}
supervisor-url = http://localhost:9001
mongodb-host = localhost
mongodb-port = 27027
phoenix-wms = false
wms-host = ${:hostname}
wms-port = 8080
wms-url = http://${:wms-host}:${:wms-port}/ncWMS2
phoenix-solr = false
solr-host = ${:hostname}
solr-port = 8983
solr-url = http://${:solr-host}:${:solr-port}/solr/birdhouse
phoenix-redis = false
redis-host = localhost
redis-port = 6379
redis-url = redis://${:redis-host}:${:redis-port}/0
phoenix-csw = false
csw-host = ${:hostname}
csw-port = 8082
csw-url = http://${:csw-host}:${:csw-port}/csw
phoenix-wizard = true
wps-host = ${:hostname}
wps-port = 8091
wps-url = http://${:wps-host}:${:wps-port}/wps
esgf-search-url = http://172.16.58.3/esg-search
swift-auth-url = http://localhost/auth/v1.0
swift-auth-version = 1
github-consumer-key = '#######'
github-consumer-secret = '######'
ceda-consumer-key = '#######'
ceda-consumer-secret = '######'
ceda-consumer-redirect-uri = https://${:hostname}/account/auth/ceda

[deployment]
recipe = zc.recipe.deployment
name = phoenix
prefix = ${settings:prefix}
user = ${settings:user}
etc-user = ${settings:etc-user}

[environment]
recipe = collective.recipe.environment

[conda]
recipe = birdhousebuilder.recipe.conda
channels = defaults birdhouse
pkgs = 
        celery=3.1.19
        kombu=3.0.32
        mongodb=2.4.6
        nginx=1.8.0
        supervisor=3.1.3
        gunicorn=19.1.0
        gevent=1.1.1
        lxml=3.6.0
        mako=1.0.4 
        dateutil=2.4.1 
        requests=2.10.0 
        pyyaml=3.11
        pygments=2.1.3 
        owslib=0.11.2
        pymongo=3
        pyopenssl
        pytz=2016.4
        python-swiftclient=2.4.0
        threddsclient=0.3.4       
        python-ldap=2.4.13
        funcsigs=1.0.2
        bird-feeder=0.2.0
        pywps=3.2.5
 
[phoenix]
recipe = zc.recipe.egg
eggs = 
    Phoenix
extra-paths = 
    ${deployment:etc-prefix}/celery
interpreter = python

[phoenix_config]
recipe = collective.recipe.template[genshi]:genshi
input = ${buildout:directory}/templates/phoenix.ini
output = ${deployment:etc-directory}/phoenix.ini

# generate secret
# python -c "import os; print(''.join('%02x' % ord(x) for x in os.urandom(16)))"
# gunicorn service
socket = ${deployment:var-prefix}/run/phoenix.socket
workers = 3
worker_class = gevent
timeout = 30
# upload storage
upload_dir = ${deployment:lib-directory}/uploads
max_file_size = 1024

[gunicorn]
recipe = zc.recipe.egg
eggs =
    gunicorn
    ${phoenix:eggs}
extra-paths = 
    ${deployment:etc-prefix}/celery
scripts =
    gunicorn=gunicorn

[supervisor]
recipe = birdhousebuilder.recipe.supervisor
name = phoenix
prefix = ${deployment:prefix}
user = ${deployment:user}
etc-user = ${deployment:etc-user}
program = ${:name}
command = ${buildout:bin-directory}/gunicorn --paste ${phoenix_config:output}

[mongodb]
recipe = birdhousebuilder.recipe.mongodb
name = mongodb
pkgs = mongodb<3
prefix = ${deployment:prefix}
user = ${deployment:user}
etc-user = ${deployment:etc-user}
port = ${settings:mongodb-port}

[nginx]
{'fraction_non_alphanumeric': 0.1555615623732937, 'fraction_numerical': 0.043519394512771994, 'mean_word_length': 3.5315370483772197, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '150095', 'n_tokens_mistral': 3002, 'n_tokens_neox': 2823, 'n_words': 478}