<commit_before>## serendipity

This repository contains the Dockerfile to build an image for Serendipity
http://s9y.org/

The image uses PHP 5.6 and is based upon the official docker PHP image
https://hub.docker.com/_/php/

### Features

* Does not require URL rewriting when called via sub-uri

### Example

    docker run -e SERVER_NAME=www.example.com -e SERVER_ADMIN=<EMAIL> SERENDIPITY_URI=/blog -e LOG_LEVEL=notice -e MAX_SIZE=1000 -p 127.0.0.1:8010:80 volkerwiegand/serendipity:2.0.2

### Environment variables

*SERVER_NAME*

  Usually the name of the host running Serendipity. Used for setting up Apache.

*SERVER_ADMIN*

  Also used for setting up Apache.

*SERENDIPITY_URI*

  This helps to call Serendipity as e.g. https://www.example.com/blog/
  See below for an Nginx configuration example.

*LOG_LEVEL*

  The apache log level (defaults to warn).

*MAX_SIZE*

  The value for memory_limit (only if larget than the default of 128),
  upload_max_filesize and post_max_size. Please enter the number only,
  as the "M" suffix will be appended automatically.

### Nginx example

The following snippet is an Nginx location block proxying
https://www.example.com/blog/ to the docker container
installed using the command line above.

    location /blog {
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_pass https://127.0.0.1:8010;
    }
 <commit_msg>fixed README typos, added license info<commit_after>## serendipity

This repository contains the Dockerfile to build an image for Serendipity
http://s9y.org/

The image uses PHP 5.6 and is based upon the official docker PHP image
https://hub.docker.com/_/php/

### Features

* Does not require URL rewriting when called via sub-uri

### Example

    docker run -e SERVER_NAME=www.example.com -e SERVER_ADMIN=<EMAIL> -e SERENDIPITY_URI=/blog -e LOG_LEVEL=notice -e MAX_SIZE=1000 -p 127.0.0.1:8010:80 volkerwiegand/serendipity:2.0.2

### Environment variables

*SERVER_NAME*

  Usually the name of the host running Serendipity. Used for setting up Apache.

*SERVER_ADMIN*

  Also used for setting up Apache.

*SERENDIPITY_URI*

  This helps to call Serendipity as e.g. https://www.example.com/blog/
  See below for an Nginx configuration example.

*LOG_LEVEL*

  The apache log level (defaults to warn).

*MAX_SIZE*

  The value for memory_limit (only if larger than the default of 128),
  upload_max_filesize and post_max_size. Please enter the number only,
  as the "M" suffix will be appended automatically.

### Nginx example

The following snippet is an Nginx location block proxying
https://www.example.com/blog/ to the docker container
installed using the command line above.

    location /blog {
      proxy_set_header Host $host;
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header X-Forwarded-Proto $scheme;
      proxy_pass https://127.0.0.1:8010;
    }
 
### License

The MIT License (MIT)

Copyright (c) 2015 <NAME>

{'fraction_non_alphanumeric': 0.08261562998405103, 'fraction_numerical': 0.023604465709728868, 'mean_word_length': 3.817204301075269, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 8, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 4, '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': '1709445', 'n_tokens_mistral': 1081, 'n_tokens_neox': 1001, 'n_words': 351}