<commit_before>[nginx_build]

parts =
    nginx_debian
    nginx_macosx
    nginx_redhat
    nginx_www
    nginx_sites
    nginx_config
    nginx_ssl
    nginx_deploy

[nginx_debian]
recipe = collective.recipe.cmd
on_install = true
cmds =
    if [ -f /etc/debian_version ] ; then
        sudo apt-get -y --force-yes install nginx-full
    fi

[nginx_macosx]
recipe = collective.recipe.cmd
on_install = true
cmds =
    if [ `uname -s` = "Darwin" ] ; then
        brew install nginx
    fi

[nginx_redhat]
recipe = collective.recipe.cmd
on_install = true
cmds =
    if [ -f /etc/redhat-release ] ; then
       sudo yum -y install nginx
    fi

[nginx_www]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
    sudo mkdir -p /usr/share/nginx/www
    sudo cp -r ${buildout:directory}/share/www /usr/share/nginx

[nginx_sites]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/nginx-phoenix.conf
output = ${buildout:parts-directory}/nginx/phoenix

socket = ${phoenix_config:socket}

[nginx_config]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/nginx.conf
output = ${buildout:parts-directory}/nginx/nginx.conf
users = www-data

[nginx_ssl]
recipe = collective.recipe.cmd
on_install = true
on_update = false
cmds =
     sudo openssl req -batch -x509 -nodes -days 365 \
        -subj '/C=DE/ST=Hamburg/L=Hamburg/O=Phoenix/CN=${server:hostname}' \
        -newkey rsa:1024 -keyout /etc/nginx/phoenix.cert -out /etc/nginx/phoenix.cert


[nginx_deploy]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
    if [ -e /etc/nginx/sites-enabled/default ]; then
       sudo rm -f /etc/nginx/sites-enabled/default
    fi 
    sudo cp ${buildout:directory}/share/nginx/proxy_params /etc/nginx/proxy_params
    sudo cp ${nginx_config:output} /etc/nginx/nginx.conf
    sudo cp ${nginx_sites:output} /etc/nginx/sites-available/phoenix
    sudo ln -sf /etc/nginx/sites-available/phoenix /etc/nginx/sites-enabled/phoenix 
    sudo service nginx stop
    sudo service nginx start



<commit_msg>fixed nginx config ... false user variable<commit_after>[nginx_build]

parts =
    nginx_debian
    nginx_macosx
    nginx_redhat
    nginx_www
    nginx_sites
    nginx_config
    nginx_ssl
    nginx_deploy

[nginx_debian]
recipe = collective.recipe.cmd
on_install = true
cmds =
    if [ -f /etc/debian_version ] ; then
        sudo apt-get -y --force-yes install nginx-full
    fi

[nginx_macosx]
recipe = collective.recipe.cmd
on_install = true
cmds =
    if [ `uname -s` = "Darwin" ] ; then
        brew install nginx
    fi

[nginx_redhat]
recipe = collective.recipe.cmd
on_install = true
cmds =
    if [ -f /etc/redhat-release ] ; then
       sudo yum -y install nginx
    fi

[nginx_www]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
    sudo mkdir -p /usr/share/nginx/www
    sudo cp -r ${buildout:directory}/share/www /usr/share/nginx

[nginx_sites]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/nginx-phoenix.conf
output = ${buildout:parts-directory}/nginx/phoenix

socket = ${phoenix_config:socket}

[nginx_config]
recipe = collective.recipe.template
input = ${buildout:directory}/templates/nginx.conf
output = ${buildout:parts-directory}/nginx/nginx.conf
user = www-data

[nginx_ssl]
recipe = collective.recipe.cmd
on_install = true
on_update = false
cmds =
     sudo openssl req -batch -x509 -nodes -days 365 \
        -subj '/C=DE/ST=Hamburg/L=Hamburg/O=Phoenix/CN=${server:hostname}' \
        -newkey rsa:1024 -keyout /etc/nginx/phoenix.cert -out /etc/nginx/phoenix.cert


[nginx_deploy]
recipe = collective.recipe.cmd
on_install = true
on_update = true
cmds =
    if [ -e /etc/nginx/sites-enabled/default ]; then
       sudo rm -f /etc/nginx/sites-enabled/default
    fi 
    sudo cp ${buildout:directory}/share/nginx/proxy_params /etc/nginx/proxy_params
    sudo cp ${nginx_config:output} /etc/nginx/nginx.conf
    sudo cp ${nginx_sites:output} /etc/nginx/sites-available/phoenix
    sudo ln -sf /etc/nginx/sites-available/phoenix /etc/nginx/sites-enabled/phoenix 
    sudo service nginx stop
    sudo service nginx start




{'fraction_non_alphanumeric': 0.11289549376797699, 'fraction_numerical': 0.004793863854266539, 'mean_word_length': 3.266871165644172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2831451', 'n_tokens_mistral': 1621, 'n_tokens_neox': 1526, 'n_words': 323}