nestjs - 如何使用 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地址中运行,它只是在本地运行。
解决方案
推荐阅读
- mysql - MySQL查询时间段和最大下降值与之前的最大值
- python - 在 Python 中使用 pandas 根据条件计数
- python - 禁用八卦、交际和心跳对芹菜工人有什么后果?
- java - 单击该面板时如何在面板上设置新的背景颜色?
- javascript - Highcharter 工具提示和绘图选项 - 关键字 this
- jhipster - JHipster Registry 无法显示客户端应用程序指标
- c++ - 如何调整我的代码以确保我的迭代器代码接受用户输入?
- typescript - 尝试使用 TypeScript 和 vue-property-decorator 汇总 Vue
- crash - 为什么在 Glide 4.9.0 中使用 .asBitmap() 会崩溃
- c# - 在显示阴影时准确设置表单边界