首页 > 解决方案 > 如何使用 nginx 在数字海洋中运行nestjs?

问题描述

安装 Nginx 并运行后。

 `location / {
         proxy_pass http://localhost:8000;
         proxy_http_version 1.1;
         proxy_set_header Upgrade $http_upgrade;
         proxy_set_header Connection 'upgrade';
         proxy_set_header Host $host;
         proxy_cache_bypass $http_upgrade;
}`

但它不想在液滴IP地址中运行,它只是在本地运行。

标签: nestjsdigital-ocean

解决方案


推荐阅读