dockerfiles/anylink/server/conf/server.toml

44 lines
909 B
TOML
Raw Normal View History

2021-12-29 11:43:26 +08:00
#示例配置信息
#其他配置文件,可以使用绝对路径
#或者相对于 anylink 二进制文件的路径
#数据文件
db_type = "sqlite3"
db_source = "./conf/anylink.db"
#证书文件
2022-02-16 14:23:17 +08:00
cert_file = "./conf/vpn_cert.crt"
2021-12-29 11:43:26 +08:00
cert_key = "./conf/vpn_cert.key"
files_path = "./conf/files"
2022-02-16 14:23:17 +08:00
log_level = "debug"
2021-12-29 11:43:26 +08:00
#系统名称
issuer = "XX公司VPN"
#后台管理用户
admin_user = "admin"
#pass 123456
admin_pass = "$2a$10$UQ7C.EoPifDeJh6d8.31TeSPQU7hM/NOM2nixmBucJpAuXDQNqNke"
jwt_secret = "abcdef.0123456789.abcdef"
#服务监听地址
server_addr = ":443"
#后台服务监听地址
admin_addr = ":8800"
2023-04-26 22:17:10 +08:00
#客户端分配的ip地址池
ipv4_master = "eth0"
ipv4_cidr = "192.168.90.0/24"
ipv4_gateway = "192.168.90.1"
ipv4_start = "192.168.90.100"
ipv4_end = "192.168.90.200"
#是否自动添加nat
iptables_nat = true
#客户端显示详细错误信息(线上环境慎开启)
display_error = false
2021-12-29 11:43:26 +08:00