12 个版本

0.3.1 2024 年 1 月 18 日
0.3.0 2024 年 1 月 18 日
0.2.2 2023 年 8 月 21 日
0.2.1 2023 年 5 月 21 日
0.1.6 2023 年 4 月 18 日

#708网络编程

每月 44 次下载

MIT/Apache

61KB
1.5K SLoC

文件存储服务

点击 [文件存储客户端]

make config

fss create
root="./store"


[service]
# the local IP address and port that the service listens on.
addr = "0.0.0.0:7556"

# used to verify whether the service_name in the client configuration is correct
service_name = "file-store-service"

# used to verify whether the verify_key in the client configuration is correct.
verify_key = ""

# the timeout period for the server to request the client
request_out_time = 5000

# the existence time of the client peer session. If it exceeds this time, the client peer will be cleared
session_save_time = 5000

## used to configure TLS communication encryption (optional).
## if not provided, TLS will not be used for communication encryption
[tls]
## ca file path (optional)
## if not provided, the client’s certificate will not be verified.
ca = "./tls/ca.crt"

## cert file path
cert = "./tls/server-crt.pem"

## key file path
key = "./tls/server-key.pem"

执行

fss exec

服务安装

fss service install

服务启动

fss service start

服务停止

fss service stop

服务卸载

fss service uninstall

依赖关系

~18–30MB
~562K SLoC