Permalink
Browse files

Force content type on doT generated html strings

  • Loading branch information...
zone117x committed May 22, 2014
1 parent 9a36709 commit c3555ec95963440f88ff765e980e8e0d52ac4d34
Showing with 8 additions and 3 deletions.
  1. +6 −2 README.md
  2. +1 −1 init.js
  3. +1 −0 libs/website.js
@@ -132,6 +132,12 @@ Usage
##### Seriously
Those are legitimate requirements. If you use old versions of Node.js or Redis that may come with your system package manager then you will have problems. Follow the linked instructions to get the last stable versions.
[**Redis security warning**](http://redis.io/topics/security): be sure firewall access to redis - an easy way is to
include `bind 127.0.0.1` in your `redis.conf` file. Also it's a good idea to learn about and understand software that
you are using - a good place to start with redis is [data persistence](http://redis.io/topics/persistence).
#### 0) Setting up coin daemon
Follow the build/install instructions for your coin daemon. Your coin.conf file should end up looking something like this:
```
@@ -152,8 +158,6 @@ a good pool operator. For starters be sure to read:
#### 1) Downloading & Installing
[**Redis security warning**](http://redis.io/topics/security): be sure firewall access to redis - an easy way is to include `bind 127.0.0.1` in your `redis.conf` file
Clone the repository and run `npm update` for all the dependencies to be installed:
```bash
@@ -223,7 +223,7 @@ var spawnPoolWorkers = function(){
worker.type = 'pool';
poolWorkers[forkId] = worker;
worker.on('exit', function(code, signal){
logger.error('Master', 'PoolSpanwer', 'Fork ' + forkId + ' died, spawning replacement worker...');
logger.error('Master', 'PoolSpawner', 'Fork ' + forkId + ' died, spawning replacement worker...');
setTimeout(function(){
createPoolWorker(forkId);
}, 2000);
@@ -218,6 +218,7 @@ module.exports = function(logger){
var route = function(req, res, next){
var pageId = req.params.page || '';
if (pageId in indexesProcessed){
res.header('Content-Type', 'text/html');
res.end(indexesProcessed[pageId]);
}
else

0 comments on commit c3555ec

Please sign in to comment.