<commit_before># rapid-service-template
A docker-compose + MEAN template for rapid service development

## install
1. git clone
2. ln -s compose/development.yml docker-compose.yml
3. scripts/generate_secret_key.sh
4. docker-compose up -d
5. scripts/init_admin.sh "your_desired_username" "secret_password"
<commit_msg>adding system nginx config example to readme<commit_after># rapid-service-template
A docker-compose + MEAN template for rapid service development

## install
1. git clone
2. ln -s compose/development.yml docker-compose.yml
3. scripts/generate_secret_key.sh
4. docker-compose up -d
5. scripts/init_admin.sh "your_desired_username" "secret_password"
6. add proxy_pass config to system-wide nginx (see below)


## system nginx config to route to your app
```
  location /template {
    return 302 /template/;
  }

  location /template/ {
    proxy_pass http://localhost:3333/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    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-Host $server_name;
    proxy_cache_bypass $http_upgrade;
  }
```

{'fraction_non_alphanumeric': 0.08901363271852446, 'fraction_numerical': 0.01603849238171612, 'mean_word_length': 4.379310344827586, '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': '2688409', 'n_tokens_mistral': 435, 'n_tokens_neox': 401, 'n_words': 112}