I hereby claim:
- I am NickNaso on github.
- I am nicknaso (https://keybase.io/nicknaso) on keybase.
- I have a public key whose fingerprint is E4C8 FE7F 27F4 F780 4334 7978 39E9 BBA6 417F A66E
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
echo '[Unit] | |
Description=High-performance, schema-free document-oriented database | |
After=syslog.target network.target | |
[Service] | |
User=mongodb | |
Group=mongodb | |
ExecStart=/usr/bin/mongod -f /etc/mongod.conf | |
[Install] |
'use strict' | |
const express = require('express') | |
const http = require('http') | |
const app = express() | |
function handleGet (req, res) { | |
res.send('/GET handler') | |
} |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
'use strict' | |
const express = require('express') | |
const http = require('http') | |
const app = express() | |
////////////////////////////////// ROUTER ///////////////////////////////////// | |
const router = express.Router() |
var db = mongoose.connect('mongodb://localhost:27017/DB'); | |
// In middleware | |
app.use(function (req, res, next) { | |
// action after response | |
var afterResponse = function() { | |
logger.info({req: req}, "End request"); | |
// any other clean ups |
#user nobody; | |
#Defines which Linux system user will own and run the Nginx server | |
worker_processes 1; | |
#Referes to single threaded process. Generally set to be equal to the number of CPUs or cores. | |
#error_log logs/error.log; #error_log logs/error.log notice; | |
#Specifies the file where server logs. |
... | |
"scripts": { | |
"test": "npm install --build-from-source && nodeunit test", | |
"install": "node-gyp rebuild" | |
}, | |
"dependencies": { | |
"bindings": "1.3.0", | |
"node-addon-api": "1.1.0" | |
}, | |
"gypfile": true, |