Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改nginx配置 #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

onlyone-tsq
Copy link

修改nginx.conf配置,让nginx直接通过容器bridge网络,内部代理golang,这样不用将golang的3000端口映射到宿主机,提高安全性,配置golang的 ./services/golang/etc/fec-go/config.ini也会简单方便

docker-compose启动的容器都在同一bridge网络下,nginx应用可以直接反向代理golang应用,不用将golang的3000端口映射到宿主机,
通过容器的bridge网络,nginx直接在内部网络反向代理golang,可以不用将3000端口映射到宿主机。./services/golang/etc/fec-go/config.ini  文件中直接配置httpHost = 0.0.0.0:3000就可以了
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant