我在试着部署nginx入口
kubectl run nginx --image=nginx
kubectl get pod
NAME READY STATUS RESTARTS AGE
nginx-65899c769f-wf7dl 1/1 Running 0 9m
kubectl expose deploy nginx --port 80
NAME TYPE CLUSTER-
我有跟踪装置。
网络A Nginx / SSL
网络B App1/preprod (环斗篷预preprod、野蝇 preprod、数据库preprod)
网络C Nginx /SSL
网络D app1/测试(键盘斗篷测试、野战测试、数据库测试)
来文:
A <-> B
A <-> C
C <-> D
我试图:
NGINX A -> APP 1 preprod --- that is ok
NGINX A -> NGINX C -> APP 1 test --- that's what i am tryng to figure out
我有两个服务运行在Azure应用程序服务中的Docker容器中。我想公开来自每个服务的一些API,其中一个服务也使用套接字。如果在本地使用Docker容器(不使用SSL),但在使用Azure are时,一切都很好:如果我前往服务的前端,例如,那么创建WebSocket连接时就会出现错误。DevTools说他们正在尝试连接到DevTools
它们都是Python服务。一个是酒瓶服务,另一个是Streamlit。
nginx.conf:
server {
listen 8502;
# One service runs on port 5000 (Python Flask).
我希望Nginx在处理没有444头的请求时使用host。
我读过http://nginx.org/en/docs/http/request_processing.html和未定义时Nginx默认主机,上面写着:
"If its value does not match any server name, or the request does not contain
this header field at all, then nginx will route the request to the default server
for this port."
我已经配置
ser