Home > Topics > Pagoda Panel > body text

Let's talk about how Pagoda installs NodeJS Api and configures https

藏色散人
Release: 2021-12-17 14:50:31
forward
4951 people have browsed it

This article is provided by the tutorial column of Pagoda to introduce to you the tutorial on installing the NodeJS Api program and configuring https on the Pagoda panel. I hope it will be helpful to you if you need it!

This article is also known as: Pagoda uses pm2 to start the node service and bind the domain name

First refer to the author大水瓜: <span style="color: rgb(127, 127, 127);">https://www.bilibili.com/video/av67066415?t=91</span> Get a general understanding of the process;
Then refer to the author Zhuying Pingxi:
<span style="color: rgb(127, 127, 127);">https://www.bwmelon.com/archives/27/</span> Follow along;


# 5. Mapping program (the fifth step of synchronizing Big Watermelon)

No need here Limit the mapped port number, such as api.no0a.cn:3000 written by the author 大西瓜, which can be written as: api.no0a.cn ;
After the mapping is completed, you can see an extra site in the website list of the panel;

It is worth noting that, for example, my own project is based on port 4000, then

  • Need to open port 4000 (Both Pagoda and Alibaba Cloud security groups need to be opened)

  • You need to access the api like this: api.no0a.cn:4000

# 6. Domain name reverse generation (sixth step of synchronizing Big Watermelon)

Always cannot access the api when actually accessing it api.no0a.cn:4000/api/login This way, it is a bit ugly.
As written by the author 大西瓜, just configure it:

location / {
    proxy_pass http://127.0.0.1:4000;
}
Copy after login

Like this You can access our api through port 80

# 7. Configure https (the seventh step of synchronizing Big Watermelon)

This step is even simpler, directly Download the certificate from Alibaba Cloud SSL, then copy and paste the certificate content into the SSL configuration of the Pagoda site


# 8. Finally

Lets talk about how Pagoda installs NodeJS Api and configures https


The above is the detailed content of Let's talk about how Pagoda installs NodeJS Api and configures https. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template