当前位置: 首页 > news >正文

k8s nginx+ingress 配置

1 nginx> ingress 配置:

 

 

2 nginx >service 配置

 3 nginx pod配置:

4 nginx.conf 配置文件:

    # web端v1server{listen 30006;add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";#add_header Content-Security-Policy "default-src 'self' http://test123.realize.cn; font-src 'self' data:; script-src unsafe-inline; script-src-elem unsafe-inline";add_header X-XSS-Protection "1; mode=block";add_header X-Frame-Options "SAMEORIGIN always";add_header X-Content-Type-Options "nosniff";# 转发websocket需要的设置proxy_set_header X-Real_IP $remote_addr;proxy_set_header Host $host;proxy_set_header X_Forward_For $proxy_add_x_forwarded_for;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';location / {proxy_pass http://frontdongmi-official-v1.rz-dt:30001/;}       location /rzwebgateway/ {client_max_body_size 1024M;client_body_buffer_size 1024M;proxy_pass http://realize-gateway.rz-dt:9300/;}location /gateway/ {proxy_set_header Connection 'keep-alive';proxy_pass http://gatewayserver.rz-dt:30001/;}
}# 采集平台
server
{listen 30004;add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";# 转发websocket需要的设置proxy_set_header X-Real_IP $remote_addr;proxy_set_header Host $host;proxy_set_header X_Forward_For $proxy_add_x_forwarded_for;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';location / {proxy_pass http://spiderflow.rz-dt:30001/;}access_log /var/log/nginx/spider.reize.cn.log;
}# 视频营销server{listen 30005;add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";# 转发websocket需要的设置proxy_set_header X-Real_IP $remote_addr;proxy_set_header Host idtcdn.oss-cn-hangzhou.aliyuncs.com;proxy_set_header X_Forward_For $proxy_add_x_forwarded_for;proxy_http_version 1.1;proxy_set_header Upgrade $http_upgrade;proxy_set_header Connection 'upgrade';location / {proxy_pass http://reize.oss-cn-hangzhou.aliyuncs.com/;}access_log /var/log/nginx/video.reize.cn.log;}
}

 

http://www.lryc.cn/news/110134.html

相关文章:

  • 探索Streamlit中强大而灵活的 st.write() 函数(五):构建丰富多样的应用界面
  • LinAlgError: Singular matrix 问题解决
  • 【ASP.NET MVC】使用动软(五)(13)
  • MongoDB面试题
  • Python Web 开发 Flask 介绍
  • 本地mvn仓库清理无用jar包
  • MySQL的常用函数大全
  • 一百四十三、Linux——Linux的CentOS 7系统语言由中文改成英文
  • 一 关于idea如何在svn进行项目下载并运行成功
  • python使用selenium 打开谷歌浏览器闪退, 怎么解决
  • .net 6 efcore一个model映射到多张表(非使用IEntityTypeConfiguration)
  • CISCO MDS 9148 SAN Switch 交换机命令配置方法:
  • 图的深度、广度优先探索(数据结构)
  • c语言小知识点
  • C++ - 模板分离编译
  • 如何把非1024的采样数放入aac编码器
  • linux安装nodejs和vue
  • spring整合mybatis
  • Spring指定bean在哪个应用加载
  • 二维网格划分 LRU缓存设计
  • C++中使用 sizeof 确定变量的长度
  • 我们的衣物收纳商品政策
  • 代码随想录算法训练营第25天| 第七章 回溯算法part02: leetcode 216、leetcode 17
  • WebAPI文档与自动化测试
  • netty架构
  • 拉普拉斯平滑算法
  • Java课题笔记~ IoC 控制反转
  • 【Spring】Spring中的设计模式
  • 【ChatGLM_02】LangChain知识库+Lora微调chatglm2-6b模型+提示词Prompt的使用原则
  • 构建未来移动应用:探索安卓、iOS和HarmonyOS的技术之旅