<commit_before># docker-nginx
Docker image of nginx with more throrough settings and a FastCGI connection to an HHVM Docker image.

## General config

The content root is configured for the Debian default, which is `/usr/share/nginx/html`.

Gzip compression is enabled for many common MIME types. See the included `nginx.conf`.

The default website is configured in `/etc/nginx/conf.d/default.conf`. It's set up to redirect all traffic to 443. It also provides an unencrypted location for load balancing health checks (e.g. `http://example.com/lb-ping`).

## HHVM

The default website dispatches all `.hh` and `.php` requests to a FastCGI backend listening on port 9000. You must launch this container using the `--link your-container-name:fpm` argument.

## SSL

There are three files that will be automatically generated if they're not provided by you.

* `/etc/ssl/dhparam.pem`: Diffie-Hellman parameter for DHE ciphersuites (will auto-generate a 2048 bit file if not provided)
* `/etc/ssl/private/key.pem`: RSA private key (will auto-generate a 4096 bit key if not provided)
* `/etc/ssl/cert.pem`: X.509 public certificate (will aut-generate a self-signed certificate if not provided)<commit_msg>Updating README<commit_after># docker-nginx
Docker image of nginx with more throrough settings and a FastCGI connection to an HHVM Docker image.

## General config

The content root is configured for the Debian default, which is `/usr/share/nginx/html`.

Gzip compression is enabled for many common MIME types. See the included `nginx.conf`.

The default website is configured in `/etc/nginx/conf.d/default.conf`. It's set up to redirect all traffic to 443. It also provides an unencrypted location for load balancing health checks (e.g. `http://example.com/lb-ping`).

## HHVM

The default website dispatches all `.hh` and `.php` requests to a FastCGI backend listening on port 9000. You must launch this container using the `--link your-container-name:fpm` argument.

## SSL

There are three files that will be automatically generated if they're not provided by you.

* `/etc/ssl/dhparam.pem`: Diffie-Hellman parameter for DHE ciphersuites (will auto-generate a 2048 bit file if not provided)
* `/etc/ssl/private/key.pem`: RSA private key (will auto-generate a 4096 bit key if not provided)
* `/etc/ssl/cert.pem`: X.509 public certificate (will auto-generate a self-signed certificate if not provided)

### CA Certificates
You can mount a volume to `/usr/local/share/ca-certificates` that contains any certificate authorities you wish to accept as trusted. Debian's `update-ca-certificates` is run before nginx executes.
{'fraction_non_alphanumeric': 0.08504958047292144, 'fraction_numerical': 0.013729977116704805, 'mean_word_length': 4.309716599190283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '278367', 'n_tokens_mistral': 805, 'n_tokens_neox': 741, 'n_words': 345}