Sto provando ad installare un server HTTPS locale per il test in Sails.js? Non riesco a trovare alcun puntatore come farlo in sails.js? Per express,come configurare https in sails.js
var express = require('express');
var https = require('https');
var http = require('http');
var fs = require('fs');
// This line is from the Node.js HTTPS documentation.
var options = {
key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem')
};
// Create a service (the app object is just a callback).
var app = express();
// Create an HTTP service.
http.createServer(app).listen(80);
// Create an HTTPS service identical to the HTTP service.
https.createServer(options, app).listen(443);
Qualche idea su sails.js?
http://jsbot.io/node/http-and-https-handle-with-sailsjs –
[Guarda questa risposta su StackOverflow] (http://stackoverflow.com/a/37432523/3567365) – user3567365