v2fly / v2ray-step-by-step

This repo is a fork of ToutyRater/v2ray-guide, we aim to provide a new step-by-step guide of v2ray
https://guide.v2fly.org
Creative Commons Attribution 4.0 International
745 stars 425 forks source link

[feature] 高级篇 TCP + TLS + Web 页面建议增加 Nginx 配置 #217

Closed ImAmelie closed 3 years ago

ImAmelie commented 3 years ago

关联或新增的页面

tcp_tls_web.md

描述

为了方便不使用HaProxy,只用Nginx的用户,请在 TCP + TLS + Web 页面填加 Nginx 的配置,谢谢

kslr commented 3 years ago

里面明明有的

ImAmelie commented 3 years ago

@kslr

server {
  listen 8080;
  server_name example.com;
  root /var/www/html;
}

里面只有这5行,可是这5行并无法实现 TCP + TLS + Web 的功能

kslr commented 3 years ago

你可能需要认真看下原理一节

ImAmelie commented 3 years ago

@kslr

谢谢提醒,是我糊涂了