Skip to content

Commit

Permalink
Example updated so that it fully complies to working syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcrockwell committed Feb 2, 2014
1 parent 7ce7d77 commit fffa151
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/sslOnly.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Tonto = require('./'),
var Tonto = require('../'),
tonto = new Tonto();

tonto.virtualHost('*:443', function (subDirectives) {
Expand Down
15 changes: 7 additions & 8 deletions lib/tonto.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@
* ## Using Tonto.js
*
* ```javascript
*
* var Tonto = require('./'),
* tonto = new Tonto();
* var Tonto = require('../'),
* tonto = new Tonto();
*
* tonto.virtualHost('*:443', function (subDirectives) {
*
* 'use strict';
* 'use strict';
*
* subDirectives
* .serverName('somesite.com')
Expand All @@ -56,14 +55,14 @@
* .proxyPassReverse('/ http://localhost:8080')
*
* .sslcertificateFile('/var/node/myApp/certificates/somehost_com.crt')
* .sslkeyFile('/var/node/myApp/certificates/somehost_com.key')
* .sslchainFile('/var/node/myApp/certificates/somehost_com_DigiCertCA.crt');
* .sslcertificateKeyFile('/var/node/myApp/certificates/somehost_com.key')
* .sslcertificateChainFile('/var/node/myApp/certificates/somehost_com_DigiCertCA.crt');
*
* });
*
* tonto.virtualHost('*:80', function (subDirectives) {
*
* 'use strict';
* 'use strict';
*
* subDirectives
* .serverName('somesite.com')
Expand All @@ -74,7 +73,7 @@
*
* });
*
* var configFileContents = tonto.render();
* console.log(tonto.render());
* ```
*
* @class Tonto
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"version": "0.0.0",
"author": "FreeAllMedia, LLC <fam-operations@freeallmedia.com>",
"description": "Tonto.js: Apache Config File Generator",
"repository": {
"type": "git",
"url": "https://github.com/FreeAllMedia/tonto"
},
"contributors": [
{
"name": "Dallas John Slieker",
Expand Down

0 comments on commit fffa151

Please sign in to comment.