search
HomeTopicsPagoda PanelLet's talk about how Pagoda installs NodeJS Api and configures https

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;
}

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!

Statement
This article is reproduced at:segmentfault. If there is any infringement, please contact admin@php.cn delete

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.