请指教 frp 配置 https 穿透内网的问题

2018-10-23 11:51:48 +08:00
 nothing2

公网:

	vhost_http_port = 8080
    vhost_https_port = 8081
	subdomain_host = abc.xyz
server {
	listen 443;
	server_name abc.xyz;
	charset utf-8;

	ssl_certificate /etc/letsencrypt/live/abc.xyz/fullchain.pem;
	ssl_certificate_key /etc/letsencrypt/live/abc.xyz/privkey.pem;

	location / {
		proxy_ssl_server_name on;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_set_header X-Forwarded-Proto $scheme;
		proxy_set_header Host $host;
		proxy_pass https://$host:8081;
	}
 }

内网:

[common]
server_addr = x.x.x.x
server_port = 7000
token = xxxx

[server]
type = https
local_ip = 192.168.12.10
local_port = 443
custom_domains = abc.xyz
remote_port = 8081
SSLEngine on

SSLCertificateFile	/root/.acme.sh/abc.xyz/abc.xyz.cer
SSLCertificateKeyFile /root/.acme.sh/abc.xyz/abc.xyz.key
SSLCertificateChainFile /root/.acme.sh/abc.xyz/fullchain.cer

现在的问题是:

5110 次点击
所在节点    问与答
1 条回复
darkt
2018-11-28 03:12:18 +08:00
解决了吗

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/500150

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX