2019-02-03 17:25:00 +08:00
|
|
|
appname = nps
|
2019-02-09 17:07:47 +08:00
|
|
|
#Boot mode(dev|pro)
|
2019-04-08 17:01:08 +08:00
|
|
|
runmode = dev
|
2019-03-01 17:23:14 +08:00
|
|
|
|
2019-03-05 09:23:18 +08:00
|
|
|
#HTTP(S) proxy port, no startup if empty
|
2019-04-01 23:54:03 +08:00
|
|
|
http_proxy_ip=0.0.0.0
|
2019-03-05 09:23:18 +08:00
|
|
|
http_proxy_port=80
|
2019-03-23 22:19:59 +08:00
|
|
|
https_proxy_port=443
|
2019-03-19 22:41:40 +08:00
|
|
|
https_just_proxy=true
|
2019-04-01 23:54:03 +08:00
|
|
|
#default https certificate setting
|
|
|
|
|
https_default_cert_file=conf/server.pem
|
|
|
|
|
https_default_key_file=conf/server.key
|
2019-02-01 02:06:30 +08:00
|
|
|
|
2019-03-05 09:23:18 +08:00
|
|
|
##bridge
|
|
|
|
|
bridge_type=tcp
|
|
|
|
|
bridge_port=8024
|
|
|
|
|
bridge_ip=0.0.0.0
|
2019-02-13 03:54:00 +08:00
|
|
|
|
|
|
|
|
# Public password, which clients can use to connect to the server
|
|
|
|
|
# After the connection, the server will be able to open relevant ports and parse related domain names according to its own configuration file.
|
2019-03-05 09:23:18 +08:00
|
|
|
public_vkey=123
|
2019-02-13 03:54:00 +08:00
|
|
|
|
2019-02-23 23:29:48 +08:00
|
|
|
#Traffic data persistence interval(minute)
|
|
|
|
|
#Ignorance means no persistence
|
2022-10-19 17:46:42 +08:00
|
|
|
flow_store_interval=1
|
2019-02-16 20:43:26 +08:00
|
|
|
|
2019-03-05 09:23:18 +08:00
|
|
|
# log level LevelEmergency->0 LevelAlert->1 LevelCritical->2 LevelError->3 LevelWarning->4 LevelNotice->5 LevelInformational->6 LevelDebug->7
|
2022-10-29 23:59:53 +08:00
|
|
|
log_level=6
|
2022-10-19 17:46:42 +08:00
|
|
|
log_path=nps.log
|
2019-02-24 13:17:43 +08:00
|
|
|
|
|
|
|
|
#Whether to restrict IP access, true or false or ignore
|
2019-03-05 09:23:18 +08:00
|
|
|
#ip_limit=true
|
2019-02-24 13:17:43 +08:00
|
|
|
|
2019-03-05 09:23:18 +08:00
|
|
|
#p2p
|
2019-04-12 05:43:03 +08:00
|
|
|
#p2p_ip=127.0.0.1
|
|
|
|
|
#p2p_port=6000
|
2019-03-01 17:23:14 +08:00
|
|
|
|
2019-03-05 09:23:18 +08:00
|
|
|
#web
|
2019-03-15 14:03:49 +08:00
|
|
|
web_host=a.o.com
|
2019-03-05 09:23:18 +08:00
|
|
|
web_username=admin
|
|
|
|
|
web_password=123
|
2022-10-19 17:46:42 +08:00
|
|
|
web_port = 8081
|
2019-03-05 09:23:18 +08:00
|
|
|
web_ip=0.0.0.0
|
2019-05-10 16:29:55 +00:00
|
|
|
web_base_url=
|
2019-12-14 17:39:46 +08:00
|
|
|
web_open_ssl=false
|
|
|
|
|
web_cert_file=conf/server.pem
|
|
|
|
|
web_key_file=conf/server.key
|
2019-05-10 16:29:55 +00:00
|
|
|
# if web under proxy use sub path. like http://host/nps need this.
|
|
|
|
|
#web_base_url=/nps
|
2019-03-23 22:19:59 +08:00
|
|
|
|
|
|
|
|
#Web API unauthenticated IP address(the len of auth_crypt_key must be 16)
|
2020-01-13 17:29:25 +08:00
|
|
|
#Remove comments if needed
|
|
|
|
|
#auth_key=test
|
2024-01-02 22:02:03 +08:00
|
|
|
auth_key=123
|
|
|
|
|
#获取服务端authKey时的aes加密密钥,16位
|
|
|
|
|
auth_crypt_key =213
|
2019-03-01 17:23:14 +08:00
|
|
|
|
2019-03-15 14:03:49 +08:00
|
|
|
#allow_ports=9001-9009,10001,11000-12000
|
2019-03-26 11:13:07 +08:00
|
|
|
|
2019-03-26 15:23:39 +08:00
|
|
|
#Web management multi-user login
|
2019-04-08 17:01:08 +08:00
|
|
|
allow_user_login=false
|
|
|
|
|
allow_user_register=false
|
|
|
|
|
allow_user_change_username=false
|
|
|
|
|
|
2019-04-04 17:46:06 +08:00
|
|
|
#extension
|
2022-10-19 17:46:42 +08:00
|
|
|
#流量限制
|
|
|
|
|
allow_flow_limit=true
|
|
|
|
|
#带宽限制
|
|
|
|
|
allow_rate_limit=true
|
|
|
|
|
#客户端最大隧道数限制
|
|
|
|
|
allow_tunnel_num_limit=true
|
2019-04-08 17:01:08 +08:00
|
|
|
allow_local_proxy=false
|
2022-10-19 17:46:42 +08:00
|
|
|
#客户端最大连接数
|
|
|
|
|
allow_connection_num_limit=true
|
|
|
|
|
#每个隧道监听不同的服务端端口
|
|
|
|
|
allow_multi_ip=true
|
|
|
|
|
system_info_display=true
|
|
|
|
|
|
|
|
|
|
#获取用户真实ip
|
|
|
|
|
http_add_origin_header=true
|
2019-04-08 17:01:08 +08:00
|
|
|
|
|
|
|
|
#cache
|
2019-04-08 18:02:54 +08:00
|
|
|
http_cache=false
|
2019-04-08 17:01:08 +08:00
|
|
|
http_cache_length=100
|
2019-04-04 17:46:06 +08:00
|
|
|
|
2020-01-13 18:31:03 +08:00
|
|
|
#get origin ip
|
2024-05-28 17:56:36 +08:00
|
|
|
#http_add_origin_header=false
|
2020-02-09 16:54:40 +08:00
|
|
|
|
|
|
|
|
#pprof debug options
|
|
|
|
|
#pprof_ip=0.0.0.0
|
|
|
|
|
#pprof_port=9999
|
2020-05-07 23:29:45 +08:00
|
|
|
|
|
|
|
|
#client disconnect timeout
|
|
|
|
|
disconnect_timeout=60
|
2022-10-27 13:39:29 +08:00
|
|
|
|
|
|
|
|
#管理面板开启验证码校验
|
2024-01-02 22:02:03 +08:00
|
|
|
open_captcha=false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 是否开启tls
|
2024-02-27 16:57:47 +08:00
|
|
|
tls_enable=true
|
|
|
|
|
tls_bridge_port=8025
|