<commit_before>express-force-ssl
=================
####Only tested on express 3.x

Extremely simple middleware for requiring some or all pages
to be visited over SSL.
####v0.2.0 - Added support for ports other than 80/443 for non-secure/secure ports.
### For example, if you host your non-ssl site on port 8080 and your secure site on 8443, version 0.1.x did not support it.
### Now, out of the box your non-ssl site port will be recognized, and to specify a port other than 443 for your ssl port
### you just have to add a setting in your express config like so:
### app.use('httpsPort', 8443);
### and the plugin will check for it and use it. Defaults to 443 of course.
####v0.1.1 - Bug fix; thanks Tim!


####Possible uses
#####All pages SSL
```coffeescript
express = require('express')
forceSSL = require('express-force-ssl')
https = require('https')
http = require('http')

options =<commit_msg>Markdown fail fix<commit_after>express-force-ssl
=================
####Only tested on express 3.x

Extremely simple middleware for requiring some or all pages
to be visited over SSL.
####v0.2.0 - Added support for ports other than 80/443 for non-secure/secure ports.

For example, if you host your non-ssl site on port 8080 and your secure site on 8443, version 0.1.x did not support it.
Now, out of the box your non-ssl site port will be recognized, and to specify a port other than 443 for your ssl port
you just have to add a setting in your express config like so:
````javascript
app.use('httpsPort', 8443);
````
and the plugin will check for it and use it. Defaults to 443 of course.

####v0.1.1 - Bug fix; thanks Tim!


####Possible uses
#####All pages SSL
```coffeescript
express = require('express')
forceSSL = require('express-force-ssl')
https = require('https')
http = require('http')

options =
{'fraction_non_alphanumeric': 0.1256921373200443, 'fraction_numerical': 0.035437430786267994, 'mean_word_length': 4.346153846153846, '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': '5743688', 'n_tokens_mistral': 572, 'n_tokens_neox': 513, 'n_words': 259}