<commit_before>#!/bin/bash

# nginx
sudo tee /etc/yum.repos.d/nginx.repo <<-'EOF'
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/x86_64/
gpgcheck=0
enabled=1
EOF
sudo yum update
sudo yum install -y nginx
# ws-proxy
echo "nginx soft nofile 4096" > /etc/security/limits.d/nginx.conf
echo "nginx hard nofile 65535" >> /etc/security/limits.d/nginx.conf
# proxy
semanage port -a -t http_port_t -p tcp 8080
setsebool httpd_can_network_connect 1 -P<commit_msg>feat: nginx limit<commit_after>#!/bin/bash

# nginx
sudo tee /etc/yum.repos.d/nginx.repo <<-'EOF'
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/x86_64/
gpgcheck=0
enabled=1
EOF
sudo yum update
sudo yum install -y nginx
# ws-proxy
echo "nginx soft nofile 4096" > /etc/security/limits.d/nginx.conf
echo "nginx hard nofile 65535" >> /etc/security/limits.d/nginx.conf
# proxy
semanage port -a -t http_port_t -p tcp 8080
setsebool httpd_can_network_connect 1 -P
# limit https://plone.lucidsolutions.co.nz/web/reverseproxyandcache/increase-nginx-file-limits
mkdir -p /lib/systemd/system/nginx.service.d
sudo tee /lib/systemd/system/nginx.service.d/worker_files_limit.conf <<-'EOF'
[Service]
LimitNOFILE=100000
EOF
{'fraction_non_alphanumeric': 0.13238967527060783, 'fraction_numerical': 0.03996669442131557, 'mean_word_length': 4.539170506912442, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, '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': '7616501', 'n_tokens_mistral': 539, 'n_tokens_neox': 475, 'n_words': 107}