Skip to content
This repository was archived by the owner on Dec 18, 2023. It is now read-only.

部署完了不能公网访问 #8

Closed
jiangtao69039 opened this issue Sep 10, 2019 · 2 comments
Closed

部署完了不能公网访问 #8

jiangtao69039 opened this issue Sep 10, 2019 · 2 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@jiangtao69039
Copy link

部署在阿里云实例上
部署完成后不能公网访问
似乎把docker-compose.yml中端口映射的127.0.0.1:3000:3000改成3000:3000就可以了

@jinfeijie
Copy link
Owner

@jiangtao69039 这个是一个安全策略,直接将服务暴露到公网不仅占用端口,而且会有未知风险。建议前面加一层网关类的服务。
如果真的有需求需要直接暴露出来,可以按你这么改。

后面的链接是如何用nginx代理后端服务的conf文件:Nginx 配置

@jinfeijie jinfeijie added the good first issue Good for newcomers label Sep 11, 2019
@jinfeijie jinfeijie self-assigned this Sep 11, 2019
@jinfeijie jinfeijie pinned this issue Sep 11, 2019
@PhageT2
Copy link

PhageT2 commented Sep 9, 2022

配置了Nginx 502,腾讯云轻量级服务器

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants