|
|
@@ -1,7 +1,7 @@ |
|
|
|
具体操作命令见package.json |
|
|
|
|
|
|
|
编译了后放在nginx上,配置如下 |
|
|
|
|
|
|
|
``` |
|
|
|
server { |
|
|
|
listen 48082; |
|
|
|
server_name localhost; |
|
|
@@ -26,8 +26,6 @@ server { |
|
|
|
{ |
|
|
|
expires 1d; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
location /srv/ { |
|
|
@@ -56,10 +54,10 @@ server { |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
frpc.ini配置如下 |
|
|
|
|
|
|
|
``` |
|
|
|
[common] |
|
|
|
server_addr = 39.105.85.176 |
|
|
|
server_port = 47000 |
|
|
@@ -86,9 +84,10 @@ remote_port = 63089 |
|
|
|
# 在本地hosts文件里面 配置 39.105.85.176 绑定到 w80.wangqy.frp (自定义域名) |
|
|
|
# http://w80.wangqy.frp:60080/ => http://localhost:80 |
|
|
|
custom_domains = tx.lecooai.com |
|
|
|
|
|
|
|
``` |
|
|
|
|
|
|
|
frps.ini配置如下: |
|
|
|
``` |
|
|
|
[common] |
|
|
|
bind_port = 47000 |
|
|
|
bind_udp_port = 47001 |
|
|
@@ -113,4 +112,5 @@ token = Lecooai2021 |
|
|
|
# specify udp packet size, unit is byte. If not set, the default value is 1500. |
|
|
|
# This parameter should be same between client and server. |
|
|
|
# It affects the udp and sudp proxy. |
|
|
|
udp_packet_size = 1500 |
|
|
|
udp_packet_size = 1500 |
|
|
|
``` |