Skip to content

Instantly share code, notes, and snippets.

@SergioLarios
Last active April 19, 2018 19:22
Show Gist options
  • Save SergioLarios/84381b4a72724af55aaa71097720df9b to your computer and use it in GitHub Desktop.
Save SergioLarios/84381b4a72724af55aaa71097720df9b to your computer and use it in GitHub Desktop.
var AlexaAppServer = require('alexa-app-server');
var instance = AlexaAppServer.start({
server_root: __dirname,
public_html: "public_html",
app_dir: "apps", // - Carpeta con los modulos alexa-app
app_root: "/alexa/", // - Prefijo del path para generar los endpoints, por ejemplo '/alexa/[app-name]'
port: 9090, // - Puerto a usar para http
debug: true,
httpsPort: 443, // - Importante que este activado el https para
httpsEnabled: true, // que se pueda conectar alexa
privateKey: 'private-key.pem', // - Certificados generados como se explica en:
certificate: 'certificate.pem' // https://developer.amazon.com/docs/custom-skills/configure-web-service-self-signed-certificate.html
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment