I’m trying to use MUPX and SSL and am having trouble. The first thing I tried was just setting the SSL options in mup.json:
“ssl”: {
“certificate”: “./server.crt”,
“key”: “./server.key”,
“port”: 443
}
This worked in that “https://mysite.com” was reachable. But so was “http://mysite.com”. I want to always use HTTPS.
So I added the “force-ssl” package to my app and re-deployed. Now “http://mysite.com” gives me “unable to connect” and “https://mysite.com” gives me “502 Bad Gateway” from nginx 1.8.0. I also get the following errors from “mupx deploy”:
[mysite.com] x Verifying deployment: FAILED
-----------------------------------STDERR----------------------------------- le@0.0.0 No description npm WARN package.json meteor-dev-bundle@0.0.0 No repository field. npm WARN package.json meteor-dev-bundle@0.0.0 No README data => Starting meteor app on port:80
/bundle/bundle/programs/server/node_modules/fibers/fibers.js:16 throw new Error('`'+ modPath+ '.node` is missing. Try reinstalling `node-fibers' ^ Error: `/bundle/bundle/programs/server/node_modules/fibers/bin/linux-x64-v8-3.14/fibers.node` is missing. Try reinst at Object.<anonymous> (/bundle/bundle/programs/server/node_modules/fibers/fibers.js:16:8) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (/bundle/bundle/programs/server/boot.js:1:75) at Module._compile (module.js:456:26) at Object.Module._extensions..js (module.js:474:10) -----------------------------------STDOUT-----------------------------------
To see more logs type 'mup logs --tail=50'
----------------------------------------------------------------------------
I’ve tried “mupx setup” again to see if anything is wrong there, but it completes successfully. It looks like a problem with missing node-fibers but I don’t know how to reinstall that module.
Any suggestions?