<commit_before># dw-media_docker

Dockerized media server module <br>
Tested with dw-proxy ( https : https://github.com/DINA-Web/proxy-docker  ) <br>
**NB 1:** on which URL is your mediaserver residing ?<br>

0. Make sure to update the /etc/hosts-file default : 
1. The mediaserver is set up with URL = 'api.nrm.se'
1. that is configured in the 'docker-compose.yml'
2. that is configured in the nginx-conf/mediaserver.conf
3. that is configured in the 'mysql-autoload/update-admin_config.sql' (update this file before  db-creation)

<br>
**NB 2:** Test: post an image to the mediaserver server <br>
**before** : check nr of files , ./self-test/db_count.sh 

1. use the file ./self-test/Makefile to post an image
2. default-values are : HOST=api.nrm.se, SIZE = 1000
3. post an image size 1000: cd ./self-test , run 'make'
4. post an image size 5000: cd ./self-test , run 'make SIZE=5000'
<commit_msg>more accurate info, using proxy-docker in front (branch max-body-size)<commit_after># dw-media_docker

Dockerized media server module <br>
Tested with proxy-docker ( nginx reverse proxy : https://github.com/DINA-Web/proxy-docker  ) branch 'max-body-size' for large files<br>


**NB 1:** on which URL is your mediaserver residing ?<br>

0. Make sure to update the /etc/hosts-file default : 
1. The mediaserver is set up with URL = 'api.nrm.se'
1. that is configured in the 'docker-compose.yml'
2. that is configured in the nginx-conf/mediaserver.conf
3. that is configured in the 'mysql-autoload/update-admin_config.sql' (update this file before  db-creation)

<br>
**NB 2:** Test: post an image to the mediaserver server <br>
**before** : check nr of files , ./self-test/db_count.sh 

1. use the file ./self-test/Makefile to post an image
2. default-values are : HOST=api.nrm.se, SIZE = 1000
3. post an image size 1000: cd ./self-test , run 'make'
4. post an image size 5000: cd ./self-test , run 'make SIZE=5000'

{'fraction_non_alphanumeric': 0.12023000522739154, 'fraction_numerical': 0.028227914270778882, 'mean_word_length': 3.7611940298507465, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 2, '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': '2417451', 'n_tokens_mistral': 713, 'n_tokens_neox': 637, 'n_words': 254}