这里只看到了require了http,但是因为小程序是要用https的,看来好多其他的示例代码也到看不到https,不知道是否和nginx有关,如果是,需要在nginx如何配置使之关联。我的nginx已经可以做到https://www.mywebsite.com访问index页面了,请问下一步应该如何关联,请教大神。
天蓬老师2017-04-17 16:11:48
nginx’s forwarding basically has nothing to do with what protocol and port you use internally.
You can take a look at nginx reverse proxy related knowledge.
If you have time and trouble, you can directly import the https module, basically there is no problem