nginx-headless
时间: 2023-10-05 13:06:49 浏览: 155
Nginx-Headless是一个设置代理的方式,它允许将特定路径上的所有WebSocket连接转发到运行该代码的守护程序。要设置Nginx-Headless,你需要安装Node.js并克隆存储库。然后,运行npm install来安装依赖项。接下来,编辑headless.yaml文件,将以下内容添加到文件中:
apiVersion: v1
kind: Service
metadata:
name: service-headless
namespace: dev
spec:
selector:
app: nginx-pod
clusterIP: None
type: ClusterIP
ports:
- port: 80
targetPort: 80
配置完成后,你可以运行start.js来启动守护程序,并将所有传入的WebSocket连接转发到它。具体的Nginx配置示例可以在文档中找到。 <span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [intervalue-headless-1.0-testnet:无头钱包](https://download.csdn.net/download/weixin_42161497/18818952)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [trustnote-headless](https://download.csdn.net/download/weixin_42165583/18224143)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [Kubernetes----HeadLess类型的Service](https://blog.csdn.net/redrose2100/article/details/123945024)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文