<commit_before># Icecast Server Setup

Author: Daniel "MaTachi" Jonsson
License: [MIT License](LICENSE)

## Features:

* **Distribution:** Debian 8 Jessie
* **Server:** Icecast2
* **Source:** mpd

## Setup

    $ sudo docker build -t matachi/icecast .

## Run

    $ sudo docker run -i -t -p 127.0.0.1:8000:8000 matachi/icecast

Inside the Docker container:

    $ python3 /home/auth.py

Next, open Firefox, SMPlayer, Clementine, VLC, or any other program that is
able to play an ogg vorbis audio stream. Then open
<http://127.0.0.1:8000/stream.ogg> and enjoy!

## About and what it does

The mount point `/stream.ogg` has url authentication turned on. The
authentication's `listener_add` value points to `http://127.0.0.1:5000/auth`.
At that port there is a local Python 3 Flask site running, started with<commit_msg>Add a line break to a place in README<commit_after># Icecast Server Setup

Author: Daniel "MaTachi" Jonsson  
License: [MIT License](LICENSE)

## Features:

* **Distribution:** Debian 8 Jessie
* **Server:** Icecast2
* **Source:** mpd

## Setup

    $ sudo docker build -t matachi/icecast .

## Run

    $ sudo docker run -i -t -p 127.0.0.1:8000:8000 matachi/icecast

Inside the Docker container:

    $ python3 /home/auth.py

Next, open Firefox, SMPlayer, Clementine, VLC, or any other program that is
able to play an ogg vorbis audio stream. Then open
<http://127.0.0.1:8000/stream.ogg> and enjoy!

## About and what it does

The mount point `/stream.ogg` has url authentication turned on. The
authentication's `listener_add` value points to `http://1172.16.58.3:5000/auth`.
At that port there is a local Python 3 Flask site running, started with
{'fraction_non_alphanumeric': 0.11531531531531532, 'fraction_numerical': 0.04744744744744745, 'mean_word_length': 3.857142857142857, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 6, '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': '4112837', 'n_tokens_mistral': 604, 'n_tokens_neox': 533, 'n_words': 209}