Skip to content

感谢作者的努力,刚部署成功了,提点优化建议。 #29

@letmebe

Description

@letmebe

目前只测试了rdp客户端

可以考虑将windows客户端直接部署为服务,就可以随机启动了:

winsw/winsw: A wrapper executable that can run any executable as a Windows service, in a permissive license.
https://github.com/winsw/winsw

只需要在frpc客户端文件夹下:
将winsw.exe放进去改名为例如frpcs.exe,然后增加同名的配置文件frpcs.xml

<configuration>
  
  <!-- ID of the service. It should be unique accross the Windows system-->
  <id>Frpc</id>
  <!-- Display name of the service -->
  <name>Frpc Service</name>
  <!-- Service description -->
  <description>网络映射服务</description>
  
  <!-- Path to the executable, which should be started -->
  <executable>%BASE%\frpc.exe</executable>

</configuration>

同时修改open.bat 安装并启动服务:

frpcs install
sc start Frpc

我把这三个文件添加到现有jar包,重新打包后build docker镜像,实验下载客户端没问题。

客户端配置文件frpc.ini 中的 server_addr 是IP地址,这个我感觉算是个bug,因为已经配置了服务器的域名但没有用上,建议后期修复。

建议加上auth_token 配置项,采用默认值token不太安全。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions